https://github.com/johndevlopment/pre-commit-hooks
Some pre-commit hooks.
https://github.com/johndevlopment/pre-commit-hooks
git linter pre-commit-hooks python python3 refactoring
Last synced: 16 days ago
JSON representation
Some pre-commit hooks.
- Host: GitHub
- URL: https://github.com/johndevlopment/pre-commit-hooks
- Owner: JohnDevlopment
- License: mit
- Created: 2023-02-19T20:50:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-27T02:06:04.000Z (about 3 years ago)
- Last Synced: 2025-04-06T09:45:12.632Z (about 1 year ago)
- Topics: git, linter, pre-commit-hooks, python, python3, refactoring
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pre-commit-hooks
Some pre-commit hooks.
# Usage
Add this to your `.pre-commit-config.yaml` file:
``` yaml
- repo: https://github.com/JohnDevlopment/pre-commit-hooks
rev: v1.0 # use the ref you want to point at
hooks:
- id: no-push-wip-commits
- id: no-push-squash-commits
```
## Available Hooks
### Pre-Push Hooks
#### `no-push-wip-commits`
Prevents the pushing of commits whose subjects start with "WIP".
#### `no-push-squash-commits`
Prevents the pushing of commits whose subjects start with "squash!" or "fixup!".