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

Spotless now integrates with black, but it could be better #347

Open
nedtwigg opened this issue Aug 25, 2020 · 0 comments
Open

Spotless now integrates with black, but it could be better #347

nedtwigg opened this issue Aug 25, 2020 · 0 comments

Comments

@nedtwigg
Copy link

Spotless is a code formatting plugin. It's main value adds are:

  • it lets you compose multiple formatters (e.g. black + a license header that slurps copyright info from git history)
  • it fixes lots of common bugs in formatters (idempotence, misconfigured encodings, fighting with git over line endings)
  • your format gets really fast thanks to incremental build, local and remote build cache, etc.
  • you can ratchet your formatting so there's never a "format the world" commit

We just shipped support for black, but we have a not-so-great user setup experience, in that we:

  • just use the black that's on your path
  • or you have to point us to the exact executable manually :(

Anyway, it would be great to improve this behavior, which we're tracking at diffplug/spotless#674. One way we could do it is for spotless to apply pygradle, or pygradle could apply spotless. Not sure which is better... Apologies if this is off-topic, feel free to close.

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

1 participant