Update code quality for vscode

This commit is contained in:
Nitzan Pomerantz
2025-10-31 19:02:21 +02:00
parent 280b0c9b1c
commit 6d2b1ab4ab
4 changed files with 99 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
{
// Ruff integration for automatic code quality
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff"
},
// Ruff configuration
"ruff.enable": true,
"ruff.organizeImports": true,
"ruff.fixAll": true,
// Show lint errors inline
"python.linting.enabled": true,
"python.linting.ruffEnabled": true,
// Test configuration
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.pytestArgs": [
"tests",
"-m",
"not api_health"
],
// Exclude common directories
"files.exclude": {
"**/__pycache__": true,
"**/*.pyc": true,
"**/.pytest_cache": true,
"**/.ruff_cache": true
},
// Auto-save
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000
}