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
$ echo 'if True:print 1' | black -
if True:print 1
error: cannot format -: cannot use --safe with this file; failed to parse source file with Python 3.7's builtin AST. Re-run with --fast or stop using deprecated Python 2 syntax. AST error message: Missing parentheses in call to 'print'. Did you mean print(1)? (<unknown>, line 1)
All done! 💥 💔 💥
1 file failed to reformat.
It should use non-zero exit codes properly and write errors to stderr. I don't have any special handling for it in the Emacs format-all package. I just call it as black -q -.
Using
black
natively:Same code using Unibeautify:
The text was updated successfully, but these errors were encountered: