daun-io / pushpin

Git hooks for python πŸ“Œ

Home Page:https://nyanye.com/pushpin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Git hooks for python πŸ“Œ

https://nyanye.com/pushpin/

License:MIT License


Languages

Language:Python 87.5%Language:Shell 12.5%