Skip to content

thomasthiebaud/poetry-githooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

Releases

No releases published

Packages

No packages published

Languages