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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for poetry_githooks-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37f63e07ea234c618ddcacbf8ec346c7a2e00d49b495b2a0dcefcc4e9de756a |
|
MD5 | 53e4f3598d7ae09e0be3e5b4cc680873 |
|
BLAKE2b-256 | a961d44266a3c05fa9716046ca8e99c63f8d96aaea4db5f6d34e65a1158cacc1 |