MythosMUD Pre-Commit Checklist
Definition of Done
Work is not done until these pass:
- •Format —
make format - •Type check —
make mypy - •Lint —
make lint(andmake lint-sqlalchemyif touching SQLAlchemy) - •Tests —
make test(fast) ormake test-coverage(with coverage) - •Codacy — After any file edit, run Codacy analysis per project rules (see .cursor/rules/codacy.mdc)
All commands are run from the project root.
Full Pipeline (Optional)
For a full quality run including Codacy tools and OpenAPI spec:
powershell
make all
This runs: format, mypy, lint, lint-sqlalchemy, codacy-tools, build, openapi-spec, test-coverage.
Order
Run in this order: format first (so lint/mypy see formatted code), then mypy, then lint, then tests. Run Codacy analysis for each edited file as specified in the Codacy rule.
Reference
- •Definition of Done: CLAUDE.md "Definition of Done"
- •Codacy after edit: .cursor/rules/codacy.mdc
- •Makefile targets: Makefile (help, format, mypy, lint, test, test-coverage, all)