Pre-commit hook to sync the pyproject.toml version to the latest tag in the repo.
To flag whether the latest tag in the repo matches the version in the pyproject.toml
file, add the following to
your .pre-commit-config.yaml
:
- repo: https://github.com/eshwen/pyproject-version-sync
rev: v0.2.1
hooks:
- id: pyproject-version-sync
Or, to enable autofix:
- repo: https://github.com/eshwen/pyproject-version-sync
rev: v0.2.1
hooks:
- id: pyproject-version-sync
args: [--fix]
With the default arguments:
With autofix:
(Styling shamelessly nicked from https://github.com/ines/termynal. Check out that repo for cool terminal animations!)