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
Built Distribution
Close
Hashes for pre-commit-hooks-django-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d86bc238161360c1883811b26e62e2967c0e632253548ded2f92ac118c1089 |
|
MD5 | 688348f2bcec4c3607fc9ee8ef613d8e |
|
BLAKE2b-256 | 3b39d3563c21951d0dbc6d8d54932d90834a50290e8d402925fb7b51cff2ba84 |
Close
Hashes for pre_commit_hooks_django-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c12af1e77ac58e2c1d0e728225073c0246901dc65ca1389323a31c46dbd1b2f |
|
MD5 | 80cdc30fe1f487c1e53c6658ebf3c642 |
|
BLAKE2b-256 | a8d615730314c83d2cd2574781474bc5b7cf08a761c3c3d8432f6e95e8e0799b |