My pre-commit hooks.
-
Install
pre-commit. -
Add the following to your
.pre-commit-config.yaml:repos: - repo: https://github.com/dycw/pre-commit-hooks rev: master hooks: - id: check-submodules-updated - id: check-version-bumped - id: format-requirements - id: mirror-files - id: replace-sequence-str - id: run-bump-my-version - id: tag-commits
-
Update your
.pre-commit-config.yaml:pre-commit autoupdate