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 🎉 your hooks will be ran using poetry when expected
IMPORTANT You need to rerun poetry run githooks setup everytime you change [tool.githooks]
Metadata
Release files for poetry-githooks 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poetry_githooks-3.0.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poetry_githooks-3.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / poetry_githooks-3.0.1.tar.gz
| Download URL | poetry_githooks-3.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c28e9f01908b5d5648f8f241d76fdf896b1387c60d198f0087630cf5bc84ec5
|
|
BLAKE2b-256 checksum How to use checksums |
1b228689a38411093cf75cae24bd0fff263c7183bfa626cb9311b1b57c0e30d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure
|
Release files / poetry_githooks-3.0.1-py3-none-any.whl
| Download URL | poetry_githooks-3.0.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4ecfcda5be42d40444b39a887da752dd08f206c3c0309c9a8e7c3b28dff43fc
|
|
BLAKE2b-256 checksum How to use checksums |
70aa91bb9f0047f3df9fa547b1428d71305f963384277dd47c2b76c95bc6df33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure
|