autopep8 icon indicating copy to clipboard operation
autopep8 copied to clipboard

Operate on the same files that pep8/pycodestyle would

Open ches opened this issue 8 years ago • 1 comments

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 same excludes will apply. I don't have to maintain a list of files/directories in the command executed in the Makefile 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.

ches avatar Jul 06 '16 18:07 ches

This might be worth doing for version 2.0.

myint avatar Jul 08 '16 17:07 myint