Merge pull request #321 from pre-commit/suggest_mirrors_autopep8

Remove autopep8-wrapper in favor of autopep8
This commit is contained in:
Anthony Sottile 2018-10-12 19:23:26 -07:00 committed by GitHub
commit 08e2918d60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 49 deletions

View file

@ -23,10 +23,6 @@ Add this to your `.pre-commit-config.yaml`
### Hooks available
- `autopep8-wrapper` - Runs autopep8 over python source.
- Ignore PEP 8 violation types with `args: ['-i', '--ignore=E000,...']` or
through configuration of the `[pycodestyle]` section in
setup.cfg / tox.ini.
- `check-added-large-files` - Prevent giant files from being committed.
- Specify what is "too large" with `args: ['--maxkb=123']` (default=500kB).
- If `git-lfs` is installed, lfs files will be skipped
@ -86,7 +82,6 @@ Add this to your `.pre-commit-config.yaml`
`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.
- `pretty-format-json` - Checks that all your JSON files are pretty. "Pretty"
here means that keys are sorted and indented. You can configure this with
the following commandline options:
@ -102,6 +97,12 @@ Add this to your `.pre-commit-config.yaml`
by your markdownfiles). If for some reason you want to treat all files
as markdown, use `--markdown-linebreak-ext=*`.
### Deprecated / replaced hooks
- `autopep8-wrapper`: instead use
[mirrors-autopep8](https://github.com/pre-commit/mirrors-autopep8)
- `pyflakes`: instead use `flake8`
### As a standalone package
If you'd like to use these hooks, they're also available as a standalone