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
Format the Wagtail codebase with black #6056
Comments
@thibaudcolas Thanks for writing this up 🙂
I can give it a go. |
Black contributor here, I've stumbled across this issue by chance :P FYI, it is possible ignore certain commits when calling For more information: |
FYI for people interested in this, based on psf/black#2529. The info isn’t where I’d have expected this but the FAQ explicitly says:
cc @Tijani-Dia who was interested in working on this. |
Black has now made a stable release, so if anyone wants to pick this up please go ahead. I’d like us to proceed with this similarly with how we’re adding Prettier:
Based on reviewing how Wagtail is set up right now, I’d expect the black setup to require:
I’ll mark this as a |
Done by Dan in #7967! |
We’ve discussed reformatting Wagtail’s codebase with black multiple times in the past, but it seems there is no public record of those discussions / why we haven’t done it yet but intend to.
Here is what we discussed in a past core team meeting:
TL;DR; wait until Black 1.0, and Django uses it
Relevant links:
For reference, we’ve also discussed using Prettier as well (for JS, SCSS, Markdown, JSON, YAML). Here I think it’s just a matter of someone putting a small proposal together (in a new issue), and then making the change – we’re all in agreement we’d love to see this happen.
The text was updated successfully, but these errors were encountered: