Pre-commit hooks for OSM.
See also: https://github.com/pre-commit/pre-commit See also: https://osm.etsi.org
Add this to your .pre-commit-config.yaml
- repo: https://github.com/charmed-osm/osm-pre-commit-hooks
rev: v0.1.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
# - id: ...
Check if there is a release notes file.
- Limits checked files to those indicated as staged for addition by git.
--release-notes-path
- Path where the release notes are located.
Manual hook to install commit-msg.
- Should be run on the first time that the repository is cloned.
--commit-msg-url
- URL to the commit-msg script.
Run tox -e black.
Run tox -e black.
Run tox -e flake8.
Run tox -e pylint.
Run tox -e safety.
If you'd like to use these hooks, they're also available as a standalone package.
Simply pip install osm-pre-commit-hooks