flask/.cursor/rules/governance.mdc
2026-04-15 02:47:08 +02:00

39 lines
910 B
Text

---
description: Governance rules for flask — quality gates, security, conventions
globs:
- "**/*.py"
alwaysApply: true
---
# Governance — flask
> Generated from governance.md by crag. Regenerate: `crag compile --target cursor`
**Stack:** python
## Quality Gates
Run these checks in order before committing:
### Lint
- `uv run ruff check .`
- `uv run ruff format --check .`
- `uv run mypy .`
### Test
- `uv run tox run`
### Build
- `python -m build`
### Ci (inferred from workflow)
- `uv run --locked --no-default-groups --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-files`
- `uv run --locked --no-default-groups --group dev tox run`
- `uv run --locked --no-default-groups --group dev tox run -e typing`
## Security
- No hardcoded secrets — grep for sk_live, AKIA, password= before commit
## Conventions
- Follow project commit conventions
- Runtimes: python