Skip to content

Instantly share code, notes, and snippets.

@friveroll
Created November 20, 2022 02:47
Show Gist options
  • Save friveroll/40d44baaa0bc17317d2f790017d2fc14 to your computer and use it in GitHub Desktop.
Save friveroll/40d44baaa0bc17317d2f790017d2fc14 to your computer and use it in GitHub Desktop.
Settings VSCode python environments
{
"python.defaultInterpreterPath": "${workspaceFolder}\\.venv\\Scripts\\python.exe",
"python.venvPath": "${workspaceFolder}\\.venv",
"python.terminal.defaultProfile.windows": "pwsh",
"python.terminal.activateEnvironment": true,
"python.linting.pylintEnabled": true,
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestArgs": ["--collect-only"],
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length=79"],
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "basic",
"[python]": {
"editor.formatOnSave": true,
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment