Skip to content

Conversation

@Bibo-Joshi
Copy link
Member

The only thing I noticed about the formatting is that double quotes are preferred by Black. I added a flag that makes Black use dqs only for "human readible" stuff.

For some reason, the docstring of Message and InputLocationMessageContent gave errors, so I just put # fmt: on/off before/after.

Some # type: ignore s had to be moved, but that was it. Also added a note to the contribution guide.

One question: Do we need to add black to requirements-dev.txt? AFAIK, precommit will take care of installing it on its own, right?

Closes #2114

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)

Nah, it's fine - Bibo

@Bibo-Joshi Bibo-Joshi merged commit 264b2c9 into master Oct 9, 2020
@Bibo-Joshi Bibo-Joshi deleted the black branch October 9, 2020 15:22
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch code formatting to Black (after v13)

2 participants