An open API service indexing awesome lists of open source software.

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.

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!".