Skip to content

Instantly share code, notes, and snippets.

@JayGwod
Last active July 19, 2021 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayGwod/c06f0dbba6812169107ed5452d737718 to your computer and use it in GitHub Desktop.
Save JayGwod/c06f0dbba6812169107ed5452d737718 to your computer and use it in GitHub Desktop.
[Django vscode configuration]Vscode django project settings. #django #vscode
black
isort
autopep8
pylint
pylint-django
{
"python.defaultInterpreterPath": "venv\\Scripts\\python.exe",
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length=119"],
"python.sortImports.args": ["--profile=black"],
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"python.linting.flake8Enabled": false,
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.pylintArgs": ["--django-settings-module=core.settings"],
"files.associations": {
"**/*.html": "html",
"**/templates/**/*.html": "django-html",
"**/templates/**/*": "django-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment