check
Run the repo's gate (make ci and bandit, plus the site build when docs or site/ changed) and fix what it reports. Use before every commit and after any code change.
SKILL.md.agents/skills/check/SKILL.md
GitHubRun from the repo root:
make ci # ruff lint, ruff format check, ty, import-linter, pytest, alembic drift check
uv run bandit -q -c pyproject.toml -r . # CI runs bandit; make ci does not
cd site && npm run build # only when docs/ or site/ changed
Rules:
- Fix failures at the source. Do not add
# noqa,# type: ignore,# nosecor a skipped test to get green. A# nosecis acceptable only for a false positive, on that line, with the reason (seeSECRET_PREFIXinmodules/runpod/service.py). typrints warnings for the whole repo. Only errors fail the gate. Do not add new ones: for SQLAlchemy columns usetyping.cast(int, row.id), notint(row.id).- Tests share one database per session. A test that writes rows deletes them in its fixture teardown, including org secrets, or other tests see them.
alembic checkfails when a model changed without a migration. See themigrationskill.
Report which step failed, what you changed, and the final status of each command.