Releases: ecugol/pre-commit-hooks-django
Releases · ecugol/pre-commit-hooks-django
Release v0.4.0
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
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
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"]