Skip to content

Instantly share code, notes, and snippets.

@nikiforidi
Last active April 13, 2021 15:06
Show Gist options
  • Select an option

  • Save nikiforidi/d333b565321706fd736e5675182d7b44 to your computer and use it in GitHub Desktop.

Select an option

Save nikiforidi/d333b565321706fd736e5675182d7b44 to your computer and use it in GitHub Desktop.
Visual Studio Code configuration for Django projects using black, pylint and isort
{
"editor.formatOnSave": true,
"python.linting.lintOnSave": true,
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_django",
"--django-settings-module=core.settings",
"--max-line-length=120"
],
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length=120"
],
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment