Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ To suppress all MRT warnings on a line:

Legacy syntax `# mrt: ignore` is still supported for backward compatibility.

## What's new in v1.2.0
## What's new in v1.3.1

- **MRT rule codes** (MRT101-MRT902) on all 44 patterns
- **`# noqa: MRTxxx` suppression** — ruff/flake8-compatible per-line suppression syntax
- **CLI refactored** into `commands/` subpackage
- **`mrt check --since <revision>`** — incremental scan; only checks migrations added since a given revision
- **pre-commit hook** — add to `.pre-commit-config.yaml` and `mrt check` runs automatically before every push
- **Error message quality** — config errors show once at session start instead of repeating for every test
- **`mrt init` fix** — generated `conftest.py` now has correctly quoted `db_url`
- **`mrt check --since` validation** — warns and exits when the revision matches no migrations
- **Django `mrt fix`** — unsupported operations (`AddField` NOT NULL, `RenameField`, etc.) now show a clear manual-fix guide instead of silent no-op
- **Django downgrade fix** — rollback with branch migrations no longer touches unrelated sibling branches

## Changelog

Expand Down
2 changes: 1 addition & 1 deletion docs/accuracy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This document describes what each static analysis pattern in pytest-mrt detects,
and the false-positive risk for each check. The false-positive suite (`tests/test_false_positives.py`)
enforces the "will NOT trigger" column automatically on every CI run.

Last updated: 2026-06-08 · pytest-mrt v1.2.0 · 34 Alembic patterns + 10 Django patterns
Last updated: 2026-06-08 · pytest-mrt v1.3.1 · 34 Alembic patterns + 10 Django patterns

---

Expand Down
Loading