-
Notifications
You must be signed in to change notification settings - Fork 55
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
Changes in Black internals may break Darker #186
Comments
@flying-sheep, you may be interested in this – we just fixed one incompatibility in #189. |
Changes in Black internals just broke Darker, see #270 (and earlier contributed patches in #267, #268 and #269; thanks @jabesq, @yoursvivek and @Mystic-Mirage). Some post-mortem brainstorming might help with coming up with ideas to protect against this. |
I would say, there was a gap in version check with-in this project itself. Black upgraded a major version bump ("black==22.0") and are allowed to do breaking change as per any versioning guidelines. Darker should limit black to minor version compatibility check. Moving forward using |
Hi @yoursvivek, thanks for pointing this out! But isn't Also, Black's version numbers look like year/month based and not SemVer, so are you sure they would now delay any non-breaking changes until I've also learned that Black doesn't actually commit to any kind of a public Python API. So we're using Black internals anyway. See psf/black#779 for more information. Of all the options I can think of, I like most the idea to add one more automated test environment which installs |
Well, I'm not. Just believed so in good faith.
This sounds more resilient plan. |
We're using Black's Python API directly. Black doesn't yet define a public API (see psf/black#779), so changes in Black may break Darker. This has in fact already happened at least twice.
To get an early warning about such changes, we could add a GitHub Action workflow for testing against Black
main
instead of its latest release.The text was updated successfully, but these errors were encountered: