From 6cd37d9aef00789530535afdd56c7f8739831af4 Mon Sep 17 00:00:00 2001 From: croc100 Date: Mon, 8 Jun 2026 20:26:49 +0900 Subject: [PATCH] docs: update version references and What's new section to v1.3.1 --- README.md | 12 ++++++------ docs/accuracy.md | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4417f20..8428f04 100644 --- a/README.md +++ b/README.md @@ -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 `** — 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 diff --git a/docs/accuracy.md b/docs/accuracy.md index 90329dc..5adbc03 100644 --- a/docs/accuracy.md +++ b/docs/accuracy.md @@ -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 ---