https://github.com/daun-io/pushpin
Git hooks for python 📌
https://github.com/daun-io/pushpin
commit git hooks pre-commit
Last synced: 10 days ago
JSON representation
Git hooks for python 📌
- Host: GitHub
- URL: https://github.com/daun-io/pushpin
- Owner: daun-io
- License: mit
- Created: 2022-06-10T18:36:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T06:36:43.000Z (about 4 years ago)
- Last Synced: 2026-05-03T19:42:00.154Z (about 2 months ago)
- Topics: commit, git, hooks, pre-commit
- Language: Python
- Homepage: https://nyanye.com/pushpin/
- Size: 57.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```bash
# For poetry users
poetry add -D pushpin
# For traditional pip users
pip install pushpin
```
# Usage
```bash
# prepare your repo
pushpin install
# add a hook
pushpin add .pushpin/pre-commit "pytest"
```
## Recommended Hooks
```bash
# 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.
