Some hooks for pre-commit.
See also: https://github.com/pre-commit/pre-commit
Add this to your .pre-commit-config.yaml
- repo: https://github.com/saxix/pre-commit
rev: v1.4.0 # Use the ref you want to point at
hooks:
- id: check-untracked
# - id: ...
check-untracked
- Prevent missing files in commitcheck-missed-migrations
- Ascheck-untracked
but spcific for Django migrationscheck-env-template
- Check any entry in.env
is pesent inenv.tpl
- Useful to keep in the source repository a template
for your
.env
- Useful to keep in the source repository a template
for your
check-forbidden
- Check filses for forbidden patternssort-imports
- Sort python imports using isort
If you'd like to use these hooks, they're also available as a standalone package.
Simply pip install pch