a hook to check !main
branches increment pyproject.toml
's version
repos:
- repo: https://github.com/atloo1/check-pyproject-incremented
rev: <latest_commit_hash>
hooks:
- id: check-pyproject-incremented
git clone https://github.com/atloo1/check-pyproject-incremented.git
cd check-pyproject-incremented/
poetry install --without dev
poetry run python -m check_pyproject_incremented.main
pyenv install 3.9 --skip-existing # or your choice
pyenv local 3.9 # or your choice
poetry install
poetry run pre-commit install