Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the differences between gray and black #3

Open
rec opened this issue Aug 21, 2020 · 2 comments
Open

Clarify the differences between gray and black #3

rec opened this issue Aug 21, 2020 · 2 comments

Comments

@rec
Copy link

rec commented Aug 21, 2020

I'm interesting in switching but there is not enough information to evaluate whether I should!

Thanks for your work on this promising package.

@Gideon-Felt
Copy link

I'd love to see some examples between the two.

@sodul
Copy link
Contributor

sodul commented Mar 20, 2024

Support for black was added in gray v0.10.0 (June 2021), as an optional formatter. With this it makes it easier to not have to pick between the two.

One main difference is that if you use gray with black and unify, you can then have single quotes instead of double quotes.

Other than that it really depends on which other formatters your use as gray itself does not format code directly, and you can refer to the documentation of each formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants