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-1.1.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for poetry_githooks-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58d3b082f5ca75596073cf7444351fa35477a71b62794173f2c72889306bd761 |
|
MD5 | 5fefbff1b6668265e94adda786c7eb30 |
|
BLAKE2b-256 | a2280249958733e6b27cff4c4e6a10ed555117419077cfb1a49ad370eb63c640 |