Merge pull request #318 from milin/fix_readme

Fix readme to correctly reflect no-commit-to-branch args
This commit is contained in:
Anthony Sottile 2018-10-10 11:20:06 -07:00 committed by GitHub
commit 78b24438db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.