autopep8
autopep8 copied to clipboard
Operate on the same files that pep8/pycodestyle would
With pep8
/pycodestyle
, it isn't necessary to specify a file target or -r somedirectories
. It basically looks recursively for *.py
automatically.
This is nice, because I can set my exclude
option in one of the supported config files, and then
- I don't have to specify files/directories when invoking the command manually.
- I can also invoke it from places like
make
targets and the sameexcludes
will apply. I don't have to maintain a list of files/directories in the command executed in theMakefile
or other places.
flake8 works exactly the same way. Thus I can get reports of violations in a way that's nicely consistent between the two tools, but to fix them autopep8
requires me to separately configure and maintain lists.
It'd be great if autopep8
's behavior was the same as pycodestyle
and flake8
in this regard.
This might be worth doing for version 2.0.