Simple git hooks with poetry
Project description
poetry-githooks
Install
This repository is made to work with poetry. 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 ran 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-3.0.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for poetry_githooks-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18a59e57a4b3ab03e13c053fcf60d0f80ed1133807ea65e311974ea0265ed3ea |
|
MD5 | c129c14ebdab331527cab5690d1cb07a |
|
BLAKE2b-256 | 2de22346df367febd7dcdcdd3b402645bcab71cc76b57f0787295839012c01ee |