diff --git a/.vscode/settings.json b/.vscode/settings.json index a65a17cabcd0..89b301f013c7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,9 @@ { - "cSpell.enableFiletypes": ["!javascript", "!python", "!yaml"], + "cSpell.enableFiletypes": [ + "!javascript", + "!python", + "!yaml" + ], "cSpell.words": [ "chowdown", "compression", @@ -14,7 +18,9 @@ "source.organizeImports": false }, "editor.formatOnSave": true, - "eslint.workingDirectories": ["./frontend"], + "eslint.workingDirectories": [ + "./frontend" + ], "files.exclude": { "**/__pycache__": true, "**/.DS_Store": true, @@ -23,7 +29,9 @@ "**/.svn": true, "**/CVS": true }, - "i18n-ally.enabledFrameworks": ["vue"], + "i18n-ally.enabledFrameworks": [ + "vue" + ], "i18n-ally.keystyle": "nested", "i18n-ally.localesPaths": "frontend/lang/messages", "i18n-ally.sourceLanguage": "en-US", @@ -32,20 +40,33 @@ "python.linting.enabled": true, "python.linting.flake8Enabled": false, "python.linting.pylintEnabled": false, - "python.linting.pylintArgs": ["--rcfile=${workspaceFolder}/.pylintrc"], + "python.linting.pylintArgs": [ + "--rcfile=${workspaceFolder}/.pylintrc" + ], "python.testing.autoTestDiscoverOnSaveEnabled": false, - "python.testing.pytestArgs": ["tests"], + "python.testing.pytestArgs": [ + "tests" + ], "python.testing.pytestEnabled": true, "python.testing.unittestEnabled": false, "python.analysis.typeCheckingMode": "off", "python.linting.mypyEnabled": true, "search.mode": "reuseEditor", - "python.testing.unittestArgs": ["-v", "-s", "./tests", "-p", "test_*.py"], + "python.testing.unittestArgs": [ + "-v", + "-s", + "./tests", + "-p", + "test_*.py" + ], "explorer.fileNesting.enabled": true, "explorer.fileNesting.patterns": { "package.json": "package-lock.json, yarn.lock, .eslintrc.js, tsconfig.json, .prettierrc, .editorconfig", "pyproject.toml": "poetry.lock, alembic.ini, .pylintrc", "netlify.toml": "runtime.txt", "README.md": "LICENSE, SECURITY.md" - } + }, + "[vue]": { + "editor.formatOnSave": false + }, } diff --git a/pyproject.toml b/pyproject.toml index f4d011029e4a..36dc14e2af4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,9 @@ requires = ["poetry-core>=1.0.0"] line-length = 120 target-version = ["py310"] +[tool.isort] +line_length = 120 + [tool.vulture] exclude = ["**/models/**/*.py", "dir/"] ignore_decorators = ["@*router.*", "@app.on_event", "@validator", "@controller"]