use https://github.com/hhatto/autopep8 directly now instead \o/
Mirror of autopep8 package for pre-commit.
For pre-commit: see https://github.com/pre-commit/pre-commit
For autopep8: see https://github.com/hhatto/autopep8
Add this to your .pre-commit-config.yaml
:
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: '' # Use the sha / tag you want to point at
hooks:
- id: autopep8
note that this repository sets args: [-i]
, if you are configuring autopep8
using args
you'll want to include either -i
(--in-place
) or
-d
(--diff
). it is usually better to configure autopep8
in its
config file.