Skip to main content

Git hooks for python 📌

Project description

pushpin


Git hooks for python 📌

Pushpin improves your python commits and more.
You can use it to run toolings like pytest, pylint, isort, black, etc
whenever you commit or push. pushpin supports all Git hooks.
It's basically husky but for modern python toolings

Install

# For poetry users
poetry add -D pushpin

# For traditional pip users
pip install pushpin

Usage

# prepare your repo
pushpin install

# add a hook
pushpin add .pushpin/pre-commit "pytest"

Recommended Hooks

# pylint - strictly manage your code quality
pushpin add .pushpin/pre-commit "pylint --fail-under=8 ."

# isort - sort your import orders
pushpin add .pushpin/pre-commit "isort ."

# black - get some uncompromising styles
pushpin add .pushpin/pre-commit "black ."

Used by

pushpin will be used by these awesome python projects.

  • list yours.

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

pushpin-0.5.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

pushpin-0.5.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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