@@ -137,7 +137,7 @@ pip install pytest-mrt[oracle] # python-oracledb
137137pip install pytest-mrt[mssql] # pymssql
138138```
139139
140- ## Auto-fix missing reverse operations (v1.3.0)
140+ ## Auto-fix missing reverse operations
141141
142142` mrt fix ` generates missing reverse operations for both Alembic and Django migrations.
143143
@@ -158,18 +158,29 @@ mrt clean-backups --db $DATABASE_URL
158158mrt clean-backups --db $DATABASE_URL --label 0042_remove_user_phone --yes
159159```
160160
161- ## pre-commit integration (v1.3.0)
161+ ## pre-commit integration
162162
163163Add to ` .pre-commit-config.yaml ` to run ` mrt check ` automatically before every push:
164164
165165``` yaml
166+ # Alembic
166167- repo : https://github.com/croc100/pytest-mrt
167- rev : v1.3 .0
168+ rev : v1.2 .0
168169 hooks :
169170 - id : mrt-check
171+ args : [alembic/versions/]
172+
173+ # Django
174+ - repo : https://github.com/croc100/pytest-mrt
175+ rev : v1.2.0
176+ hooks :
177+ - id : mrt-check
178+ args : [myapp/migrations/]
170179` ` `
171180
172- ## Incremental CI — ` --since` (v1.3.0)
181+ Update ` rev` to the latest release tag. Run `pre-commit autoupdate` to keep it current.
182+
183+ # # Incremental CI — `--since`
173184
174185Check only migrations added since a given revision. Keeps CI fast on large codebases :
175186
@@ -247,12 +258,13 @@ To suppress all MRT warnings on a line:
247258
248259Legacy syntax `# mrt: ignore` is still supported for backward compatibility.
249260
250- # # What's new in v1.3 .0
261+ # # What's new in v1.2 .0
251262
252- - **Django-aware `mrt fix`** — auto-generates reverse operations and data-safe backup/restore code for `RemoveField` and `DeleteModel`
253- - **`mrt clean-backups`** — removes `_mrt_backups` rows after a deployment is confirmed stable
254- - **`mrt check --since <revision>`** — incremental scan; only checks migrations added since a given git ref
255- - **pre-commit hook** — add two lines to `.pre-commit-config.yaml` and `mrt check` runs automatically before every push
263+ - **MRT rule codes** (MRT101-MRT902) on all 44 patterns
264+ - **`# noqa: MRTxxx` suppression** — ruff/flake8-compatible per-line suppression syntax
265+ - **CLI refactored** into `commands/` subpackage
266+ - **`mrt check --since <revision>`** — incremental scan; only checks migrations added since a given revision
267+ - **pre-commit hook** — add to `.pre-commit-config.yaml` and `mrt check` runs automatically before every push
256268
257269# # Changelog
258270
0 commit comments