630837070a
- Steering: emphasize running ruff before committing Python changes - Hook: auto-runs ruff check --fix on services/**/*.py when files are edited
17 lines
385 B
Plaintext
17 lines
385 B
Plaintext
{
|
|
"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
|
|
}
|
|
} |