diff --git a/.github/.vscode/settings.json b/.github/.vscode/settings.json new file mode 100644 index 000000000..e4e2d01f8 --- /dev/null +++ b/.github/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "cSpell.words": [ + "autodiff", + "getenv", + "startswith" + ] +} \ No newline at end of file diff --git a/.github/workflows/pr-autodiff.yaml b/.github/workflows/pr-autodiff.yaml index 46c95c65d..67e62159d 100644 --- a/.github/workflows/pr-autodiff.yaml +++ b/.github/workflows/pr-autodiff.yaml @@ -14,9 +14,9 @@ jobs: if: | (github.event_name == 'pull_request') || (github.event_name == 'issue_comment' && - contains(github.event.comment.body, '!pr-diff') && - (github.event.comment.author_association == 'CONTRIBUTOR' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && - github.event.issue.pull_request) + contains(github.event.comment.body, '!pr-diff') && + (github.event.comment.author_association == 'CONTRIBUTOR' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && + github.event.issue.pull_request) steps: - name: Get PR head SHA id: get-pr-sha @@ -118,7 +118,7 @@ jobs: headers = { "Authorization": f"Bearer {os.getenv('GH_TOKEN')}", - "Accept": "application/vnd.github.v3+json" + "Accept": "application.vnd.github.v3+json" } url = f"https://api.github.com/repos/{repo}/issues/{pr_number}/comments" diff --git a/app/.vscode/settings.json b/app/.vscode/settings.json new file mode 100644 index 000000000..2eb70a8cb --- /dev/null +++ b/app/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "files.autoSave": "onFocusChange", + "editor.wordWrap": "on", + "files.exclude": { + "**/.git": false, + "**/.hg": false, + "**/.svn": false + }, + "editor.accessibilitySupport": "on", + "editor.bracketPairColorization.independentColorPoolPerBracketType": true, + "editor.codeActions.triggerOnFocusChange": true +} \ No newline at end of file diff --git a/tests/.vscode/settings.json b/tests/.vscode/settings.json new file mode 100644 index 000000000..65d939f9d --- /dev/null +++ b/tests/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "python.testing.unittestArgs": [ + "-v", + "-s", + ".", + "-p", + "*test.py" + ], + "python.testing.pytestEnabled": false, + "python.testing.unittestEnabled": true +} \ No newline at end of file