Skip to main content

Checks for untracked Django migrations.

Project description

pre-commit-hooks

Some useful hooks for Django development

See also: https://github.com/pre-commit/pre-commit

Using pre-commit-hooks with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/ecugol/pre-commit-hooks
    rev: v0.2.0  # Use the ref you want to point at
    hooks:
    -   id: check-untracked-migrations
        # Optional, if specified, hook will work only on these branchesm
        # otherwise it will work on all branches
        args: ["--branches", "main", "other_branch"]

Hooks available

check-untracked-migrations

Forbids commit if untracked migrations files are found (e.g. */migrations/0001_initial.py)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pre-commit-hooks-django-0.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pre_commit_hooks_django-0.2.0-py2.py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page