chore: add ruff lint to steering docs and auto-lint hook

- Steering: emphasize running ruff before committing Python changes
- Hook: auto-runs ruff check --fix on services/**/*.py when files are edited
This commit is contained in:
Celes Renata
2026-04-17 16:38:54 +00:00
parent 76ff7ae00a
commit 630837070a
2 changed files with 19 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
{
"enabled": true,
"name": "Ruff Lint Check",
"description": "Runs ruff check on edited Python service files to catch lint errors before they reach CI",
"version": "1",
"when": {
"type": "fileEdited",
"patterns": [
"services/**/*.py"
]
},
"then": {
"type": "runCommand",
"command": ".venv/bin/ruff check --fix services/",
"timeout": 15
}
}