This release adds --branches argument to specify on which branches the hook will work:
yaml
- 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"]