Open hayd opened 10 years ago
I guess the question is, what do we want to happen if you are doing this inplace, and one file fails.
Two choices (suppose running inplace):
Personally I kinda prefer 1... though 2 is easier. I guess to do 1. you just bookkeep an files_with_syntax_errors list, and print/exit based on that. (There'll be a trivial tweak to the jobs branch.)
Not sure what should happen with syntax errors, atm files with bad syntax are left unchanged, and no message is shown. Maybe check
autopep8._find_logical
doesn't raise (SyntaxError, tokenize.TokenError) if verbose?