Skip to content

Instantly share code, notes, and snippets.

@tianhuil
Last active June 26, 2024 03:26
Show Gist options
  • Save tianhuil/0f04b032d1c61a889a957590bacf7a26 to your computer and use it in GitHub Desktop.
Save tianhuil/0f04b032d1c61a889a957590bacf7a26 to your computer and use it in GitHub Desktop.
Python Template
{
// Common
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit",
},
// Python
"python.analysis.typeCheckingMode": "basic",
"files.exclude": {
"**/__pycache__": true
},
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.analysis.autoImportCompletions": true,
"ruff.fixAll": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment