Simple git hooks with poetry
Project description
poetry-githooks
Install
This repository is made to work with (poetry)[https://python-poetry.org/]
Assuming you have a working poetry
setup, run
poetry add -D poetry-githooks
Install
Create a tool.githooks
section in your pyproject.toml
file and define your git hooks, for example
[tool.githooks]
pre-commit = "black ."
then run
poetry run githooks setup
That's it :tada: your hooks will be run using poetry
when expected
IMPORTANT You need to rerun poetry run githooks setup
everytime you change [tool.githooks]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poetry-githooks-1.0.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for poetry_githooks-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b653988ab66267c27aea2929a91ed0d40e5f0edd0d145df05c6df686a445c792 |
|
MD5 | 48b1d2e9ea6ea2d19f53d5a1a02953b9 |
|
BLAKE2b-256 | 0b7e5e913aa83cad535b08d0a017ab22442a6b52d4337d11bed6a7047b2017fe |