Some useful hooks for pre-commit.
Now with 2× as many hooks!
See also: https://github.com/pre-commit/pre-commit
Tests | |
---|---|
Activity | |
QA | |
Other |
Add this to your .pre-commit-config.yaml
- repo: https://github.com/domdfcoding/pre-commit-hooks
rev: v0.4.0 # Use the ref you want to point at
hooks:
- id: requirements-txt-sorter
# - id: ...
requirements-txt-sorter
Sorts PEP 508 entries in requirements.txt and removes invalid entries, including pkg-resources==0.4.0
.
check-docstring-first
Checks that the docstring occurs before any module code, but allows additional "docstrings", such as for documenting variables with Sphinx.