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-2.0.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for poetry_githooks-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb0d2371ab10f7da3fc3f555446b5ee168b6de25fa0c9f22bcd6ce9cebed5cf |
|
MD5 | 6f4e731d01218fd0e6e0135316a9de68 |
|
BLAKE2b-256 | 6c0744a41e39a9e14eb91cc5a450d953dbb425be5ff18aa83e750ebbe36499dd |