$npx skillfedfor your agent

django-migration-linter

Detect backward incompatible migrations for your django project

With conditionsPyPI Quality AssuranceReleased Jan 20261.4M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_migration_linter-6.0.0-py3-none-any.whl
v6.0.0 · released 2026-01-04 · Python >=3.9 · 3 runtime deps: django, appdirs, toml

Yes, if you maintain Django projects with rolling deployments or need to support multiple active versions. The low install friction, permissive license, and active support for modern Django versions make it a practical addition to development workflows. The aging maintenance status is not a blocker—the tool is stable and the last commit is recent—but verify that its incompatibility catalog covers your project's specific patterns.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Django 3.2 or later and Python 3.9 or later; must be added to INSTALLED_APPS to function.
  • Low friction install with three lightweight runtime dependencies (django, appdirs, toml).
  • Last commit on 2026-01-04 and marked aging, but the project remains active and supports current Django versions through 6.0.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and private projects with minimal restrictions; you must include a copy of the license and note material changes.

last release 2026-01-04 (222 days) · last repo commit 2026-01-04 · 615 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,368,348 downloads/mo, #3,996 on PyPI

Verify before relying

pip install django-migration-linter

# Add to Django INSTALLED_APPS:
INSTALLED_APPS = [
    ...,
    "django_migration_linter",
]

# Run linter:
python manage.py lintmigrations
  • Whether the linter detects all common backward-incompatible patterns or only a subset of known operations.
  • Performance impact when linting large migration histories or complex projects.
  • How the linter handles custom migration operations or third-party migration tools.
Same gist for agents: .md · .json

What it is and what it does

Django-migration-linter is a static analysis tool that scans your Django project's migrations and flags operations that would break backward compatibility—such as adding NOT NULL columns without defaults, dropping tables, or renaming tables. It runs as a Django management command and can be integrated into CI/CD pipelines or hooked into the makemigrations workflow to catch incompatibilities before they're committed.

The tool works by analyzing each migration file against a catalog of known incompatible patterns. When run, it reports a summary showing which migrations are valid, erroneous, ignored, or have warnings. It can optionally delete newly generated migrations that fail linting, with user confirmation, to prevent incompatible changes from entering the codebase. Configuration is optional via a Django setting, and the linter supports Django 3.2 through 6.0 on Python 3.9+.

Use it for

  • Catch breaking schema changes during development before they reach production or older deployed instances.
  • Integrate into CI pipelines to reject pull requests that introduce backward-incompatible migrations.
  • Automatically validate migrations during makemigrations to prompt developers to fix issues immediately.
  • Audit existing migration history to identify past incompatibilities that may have caused deployment problems.
  • Enforce migration best practices in teams by preventing common pitfalls like undefaulted NOT NULL columns.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you maintain Django projects with rolling deployments or need to support multiple active versions.

The low install friction, permissive license, and active support for modern Django versions make it a practical addition to development workflows. The aging maintenance status is not a blocker—the tool is stable and the last commit is recent—but verify that its incompatibility catalog covers your project's specific patterns.

Install

django-migration-linter on PyPI

Before you install

Low friction install with three lightweight runtime dependencies (django, appdirs, toml). Last commit on 2026-01-04 and marked aging, but the project remains active and supports current Django versions through 6.0.

Requires Django 3.2 or later and Python 3.9 or later; must be added to INSTALLED_APPS to function.

License in practice

Apache-2.0 permissive license allows use in commercial and private projects with minimal restrictions; you must include a copy of the license and note material changes.

Quickstart

pip install django-migration-linter

# Add to Django INSTALLED_APPS:
INSTALLED_APPS = [
    ...,
    "django_migration_linter",
]

# Run linter:
python manage.py lintmigrations

Verify before relying

  • Whether the linter detects all common backward-incompatible patterns or only a subset of known operations.
  • Performance impact when linting large migration histories or complex projects.
  • How the linter handles custom migration operations or third-party migration tools.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
djangoappdirstoml
MaintenanceAging 222 days since the last release
Last repo commit
First released
Downloads1,368,348 / month, #3,996 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 3.2Framework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9

Evidence: django_migration_linter-6.0.0-py3-none-any.whl

Tags

Capabilities
django migration compatibility checkerdetect breaking database migrationsdjango backward compatibility lintermigration incompatibility detectordjango schema change validatorprevent breaking migrations djangodatabase migration safety check
Topics
django-toolingmigration-validationci-integration
PyPI keywords
djangomigrationlintlinterdatabasebackwardcompatibility

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “django migration compatibility checker”

Give your agent the search over MCP, or paste the wish link into any chat.

More Quality Assurance packages

coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
ruff Worth it
PyPI · Python Modules · released Aug 2026

Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.

MITcompiled wheel · 3.7+
316.1Mdownloads / mo
pexpect With conditions
PyPI · Software Development · released Nov 2023

Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.

ISCpure Pythonaging
200.8Mdownloads / mo
black Worth it
PyPI · Python Modules · released May 2026

Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.

MITpure Python · 3.10+
179.9Mdownloads / mo
pytest-xdist Worth it
PyPI · Utilities · released Jul 2025

pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.

Install it if your test suite takes long enough that parallelization would save meaningful time.

MITpure Python · 3.9+
177.1Mdownloads / mo
cfn-lint Worth it
PyPI · Quality Assurance · released Aug 2026

Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.

Install it if you work with CloudFormation templates.

MIT-0pure Python
114.9Mdownloads / mo

See also django-linear-migrations · django-test-migrations · django-deprecate-fields · squawk-cli · django-pgmigrate · django-add-default-value · sqlite-migrate · django-syzygy · django-safemigrate