Skip to main content

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


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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

poetry_githooks-3.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file poetry_githooks-3.0.1.tar.gz.

File metadata

  • Download URL: poetry_githooks-3.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure

File hashes

Hashes for poetry_githooks-3.0.1.tar.gz
Algorithm Hash digest
SHA256 2c28e9f01908b5d5648f8f241d76fdf896b1387c60d198f0087630cf5bc84ec5
MD5 d3b251f62f6ace21f2cc93ec69506722
BLAKE2b-256 1b228689a38411093cf75cae24bd0fff263c7183bfa626cb9311b1b57c0e30d0

See more details on using hashes here.

File details

Details for the file poetry_githooks-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: poetry_githooks-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure

File hashes

Hashes for poetry_githooks-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ecfcda5be42d40444b39a887da752dd08f206c3c0309c9a8e7c3b28dff43fc
MD5 b1c155febe7f0cec824af851af486e25
BLAKE2b-256 70aa91bb9f0047f3df9fa547b1428d71305f963384277dd47c2b76c95bc6df33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page