add isort and lint

This commit is contained in:
Matteo Savini 2023-03-09 17:54:43 +01:00
parent a9edcf4bcf
commit 9f2b9f7f8d

View File

@ -29,24 +29,34 @@
"vscode": { "vscode": {
"settings": { "settings": {
"editor.formatOnSave": true, "editor.formatOnSave": true,
"python.analysis.autoImportCompletions": true, "isort.args": [
"python.analysis.typeCheckingMode": "basic", "--profile",
"python.defaultInterpreterPath": "/usr/local/bin/python", "black"
// "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", ],
"python.formatting.blackPath": "/usr/local/bin/black", "[python]": {
"python.formatting.provider": "black", "analysis.autoImportCompletions": true,
// "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", "analysis.typeCheckingMode": "basic",
// "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", "defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true, "editor.codeActionsOnSave": {
"python.linting.flake8Enabled": true, "source.organizeImports": true
"python.linting.flake8Path": "/usr/local/bin/flake8", },
"python.linting.mypyEnabled": true, //"editor.defaultFormatter": "ms-python.black-formatter",
"python.linting.mypyPath": "/usr/local/bin/mypy", // "formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.linting.pycodestylePath": "/usr/local/bin/pycodestyle", "formatting.blackPath": "/usr/local/bin/black",
// "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", "formatting.provider": "black",
"python.linting.pylintEnabled": true, // "formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.pylintPath": "/usr/local/bin/pylint", "languageServer": "Pylance",
"python.languageServer": "Pylance" // "linting.banditPath": "/usr/local/py-utils/bin/bandit",
"linting.enabled": true,
"linting.flake8Enabled": true,
"linting.flake8Path": "/usr/local/bin/flake8",
"linting.mypyEnabled": true,
"linting.mypyPath": "/usr/local/bin/mypy",
"linting.pycodestylePath": "/usr/local/bin/pycodestyle",
// "linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"linting.pylintEnabled": true,
"linting.pylintPath": "/usr/local/bin/pylint"
}
}, },
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_vs-code-specific-properties // https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_vs-code-specific-properties
// Add the IDs of extensions you want installed when the container is created. // Add the IDs of extensions you want installed when the container is created.
@ -58,6 +68,7 @@
// python // python
"ms-python.python", "ms-python.python",
"ms-python.vscode-pylance", "ms-python.vscode-pylance",
"ms-python.isort",
// django // django
"batisteo.vscode-django" "batisteo.vscode-django"
] ]