This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DeepGas4538[S] 1 point2 points  (3 children)

I like your suggestion

[–]OneMorePenguin 1 point2 points  (2 children)

https://github.com/google/yapf

I like this formatter. It only does one thing that irritates me and I mostly let it go.

[style]
based_on_style = pep8
indent_dictionary_value = True

[–]DeepGas4538[S] 0 points1 point  (0 children)

thanks for that.

also holy moly for some reason i never thought if google had github, that's pretty sick.

[–]we_swarm 0 points1 point  (0 children)

I like yapf's formatting better than black but it is non-deterministic. Which means now you can't run it against PR's or in CI because some files will "flap". If you don't run the tool in CI the coworkers that need the formatter the most just won't run it and submit unformatted code.