Last active
August 21, 2023 16:52
-
-
Save AksAman/519bd6dfde17b3a266512c011c092db9 to your computer and use it in GitHub Desktop.
vscode settings.json for python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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