Some useful hooks for Django development
Project description
pre-commit-hooks-django
Some useful hooks for Django development
See also: https://github.com/pre-commit/pre-commit
Using pre-commit-hooks-django with pre-commit
Add this to your .pre-commit-config.yaml
- repo: https://github.com/ecugol/pre-commit-hooks-django
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pre_commit_hooks_django-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d250fe7a864232124839bcfe38788eceedf2a0a9b118404750937f17985c193e |
|
MD5 | bfe5c26f9f6065bcc6f6d8dad5952296 |
|
BLAKE2b-256 | 9740478f94070add7025985b54723a67a8ea91ab0e00e1ab872db020ccfaf2f1 |