mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
Merge pull request #318 from milin/fix_readme
Fix readme to correctly reflect no-commit-to-branch args
This commit is contained in:
commit
78b24438db
1 changed files with 2 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- `name-tests-test` - Assert that files in tests/ end in `_test.py`.
|
||||
- Use `args: ['--django']` to match `test*.py` instead.
|
||||
- `no-commit-to-branch` - Protect specific branches from direct checkins.
|
||||
- Use `args: [--branch <branch>]` to set the branch. `master` is the
|
||||
default if no argument is set.
|
||||
- Use `args: [--branch, staging, --branch, master]` to set the branch.
|
||||
`master` is the default if no argument is set.
|
||||
- `-b` / `--branch` may be specified multiple times to protect multiple
|
||||
branches.
|
||||
- `pyflakes` - Run pyflakes on your python files.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue