Skip to content

Instantly share code, notes, and snippets.

@AksAman
Last active August 21, 2023 16:52
Show Gist options
  • Select an option

  • Save AksAman/519bd6dfde17b3a266512c011c092db9 to your computer and use it in GitHub Desktop.

Select an option

Save AksAman/519bd6dfde17b3a266512c011c092db9 to your computer and use it in GitHub Desktop.
vscode settings.json for python
{
"files.exclude": {
"**/__pycache__": true,
"**/venv": true
},
"python.analysis.autoImportCompletions": true,
"python.defaultInterpreterPath": "./venv/bin/python",
"flake8.args": [
"--max-line-length=120",
"--ignore=E501, E402, E731, W503, W504"
],
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"black-formatter.args": [
"--line-length=120"
],
"python.testing.unittestArgs": [
"-v",
"-s",
"./tests",
"-p",
"test_*.py"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true,
"python.analysis.typeCheckingMode": "basic",
"python.analysis.fixAll": [
"source.unusedImports",
"source.convertImportFormat"
],
"python.analysis.downloadStubs": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/venv/**",
"**/migrations/**"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment