Chore: Dev Container Settings (#2253)

* add isort line length to match black

* format settings

* disable formatting for vue files
This commit is contained in:
Michael Genson 2023-03-23 12:22:06 -05:00 committed by GitHub
parent 329d2c020d
commit 50f50b2b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 7 deletions

35
.vscode/settings.json vendored
View File

@ -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
},
}

View File

@ -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"]