Skip to content

Releases: ecugol/pre-commit-hooks-django

Release v0.4.0

04 Oct 09:36
Compare
Choose a tag to compare

This release adds a new hook:

check-absent-migrations

Check for absent migrations with manage.py makemigrations --check --dry-run

Thanks to @tyzhnenko for contributing.

Release v0.3.0

23 Jan 13:15
Compare
Choose a tag to compare

This release adds two new hooks:

check-unapplied-migrations

WARNING: USE ONLY WITH DJANGO > v3.1

Check for unapplied migrations with manage.py migrate --check

po-location-format

Changes location format for .po files

Options:
--add-location [file, never]

Mandatory, select one of the following options:

file: show only the file path as location
never: remove all locations

New --branches argument

01 Jan 09:13
Compare
Choose a tag to compare

This release adds --branches argument to specify on which branches the hook will work:

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

v0.1.0

31 Dec 09:28
Compare
Choose a tag to compare
fix: correct version format