Skip to content

palotasb/pygithooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pygithooks

pygithooks manages the Git hooks, such as the pre-commit hooks of a project without trying to also be a dependency manager. pygithooks relies on the project's existing dependency manager, such as Poetry, PDM, uv, or a simple venv managed directly via pip.

Add it to a project

pygithooks is meant to be added as a development dependency to Python projects. Depending on how you manage development dependencies, you can install it via one of these ways:

With pip:

pip install pygithooks

With Poetry:

poetry add --group dev pygithooks

With PDM:

pdm add --dev --group dev pygithooks

By editing pyproject.toml:

[project.optional-dependencies]
dev = [
    # ...
    "pygithooks",
    # ...
]

By editing setup.py:

setup(
    ...,
    extras_require={
        "dev": [
            ...,
            "pygithooks",
            ...,
        ],
    },
)

Or edit your setup.py, setup.cfg, or pyproject.toml directly, to add pygithooks and install it via pip install --editable '.[dev]'.

Either way, you should add it to your project the same way you would add pytest, twine, mypy, ruff, black, or similar dependencies that are used by project developers but not used by the package at runtime.

Use it with a project

...

Contribute

...

About

Simple Git Hooks manager for Python projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published