You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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):
just let everything work, BUT after fixing then exit(1) and give a message (if verbosity>=1).
raise (before doing any copying) and exit(1) and report failure.
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?The text was updated successfully, but these errors were encountered: