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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file pushpin-0.5.0.tar.gz
.
File metadata
- Download URL: pushpin-0.5.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97aa85f7bd535fff681fe93cae838542f055e9665c5acad61bed91012d873899 |
|
MD5 | 92e9a9fcff52a3910074bf896cdd13cc |
|
BLAKE2b-256 | 30c4f3a4f60667165c7391fb1f1839a264d0db035f2fb23908342822748ceaaa |
File details
Details for the file pushpin-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: pushpin-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 762a4a8e9ca2c68332ac2cfccbb13984bfa5974dbbcf973b8081ddaac1e2f6d7 |
|
MD5 | f9416854c6afd6d6a7977e583cd76ec7 |
|
BLAKE2b-256 | 37a9a014a3d10c0ceb031d39fbd8f5b495dacdcea359447a799ced0dfc4c621d |