feat: add AI agent governance configs

This commit is contained in:
Cioc Alexandru 2026-04-15 02:47:08 +02:00
parent 2ac89889f4
commit 0a3a12aec5
11 changed files with 564 additions and 0 deletions

View file

@ -0,0 +1,39 @@
---
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