Skip to content

Instantly share code, notes, and snippets.

@maheshgawali
Last active February 22, 2019 05:02
Show Gist options
  • Save maheshgawali/658a33053561bf3651d5be06426105aa to your computer and use it in GitHub Desktop.
Save maheshgawali/658a33053561bf3651d5be06426105aa to your computer and use it in GitHub Desktop.
vscode settings for working with python, pylint, yapf, django
{
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintPath": "/Users/abc/Envs/venv/bin/pylint",
"editor.formatOnSave": true,
"python.formatting.yapfPath": "/Users/abc/Envs/venv/bin/yapf",
"python.formatting.provider": "yapf",
"python.formatting.yapfArgs": [
"--style",
"google"
],
"python.pythonPath": "/Users/abc/Envs/venv/bin/python",
"files.autoSave": "onFocusChange",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/__pycache__": true,
"**/site-packages/**/*.py": true,
},
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"python.venvPath": "~/Envs"
}
@maheshgawali
Copy link
Author

use this along with .pylintrc from here which is compatible with yapf and pylint_django

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment