Skip to content

Conversation

@brentyi
Copy link
Contributor

@brentyi brentyi commented Mar 19, 2020

Hi!

I really like Black for formatting Python.
This PR:

  • Adds support for black
  • Updates documentation
  • Adds a vroom test (basically just copied from yapf/autopep8)

Unlike the yapf and autopep8 integrations, I chose not to support formatting ranges -- this would be easy with formatterhelpers#AttemptFakeRangeFormatting, but would produce unexpected behavior with black.

Copy link
Contributor

@dbarnett dbarnett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it is possible to do range formatting via https://github.com/wbolster/black-macchiato if that's installed. Don't need to worry about it for now, though.

@dbarnett dbarnett merged commit d667662 into google:master Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants