mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 17:34:52 +03:00
add isort and lint
This commit is contained in:
parent
a9edcf4bcf
commit
9f2b9f7f8d
|
@ -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"
|
||||||
]
|
]
|
||||||
|
@ -69,4 +80,4 @@
|
||||||
// "shutdownAction": "none",
|
// "shutdownAction": "none",
|
||||||
// Uncomment the next line to run commands after the container is created.
|
// Uncomment the next line to run commands after the container is created.
|
||||||
"postCreateCommand": "cat .devcontainer/bashrc.override.sh >> ~/.bashrc"
|
"postCreateCommand": "cat .devcontainer/bashrc.override.sh >> ~/.bashrc"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user