-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Black 24.1.0 breaks code formatting if wrap-string-literal is set #1821
Labels
bug
Something isn't working
Comments
3 tasks
@airwoodix |
airwoodix
added a commit
to airwoodix/datamodel-code-generator
that referenced
this issue
Feb 1, 2024
koxudaxi
added a commit
that referenced
this issue
Feb 1, 2024
* format: support black >=24 Fixes #1821 * format: refine string_processing detection for black >= 24 * Add test pattern * Ignore unsupported tests --------- Co-authored-by: Koudai Aono <koxudaxi@gmail.com>
anssari1
added a commit
to ExpediaGroup/expediagroup-python-sdk
that referenced
this issue
Feb 19, 2024
<!-- Thank you for submitting a pull request! Please verify that: * [x] Code is up-to-date with the `main` branch. * [x] You've successfully built and run the tests locally. * [ ] There are new or updated unit tests validating the change. Refer to CONTRIBUTING.md for more details. --> ### 📝 Description - Downgrade Black dependency (koxudaxi/datamodel-code-generator#1821) - Update "user-agent" header value to match other SDK languages - Add "x-sdk-title" to request headers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Black 24.1.0 was just released and removes support for the deprecated
--experimental-string-processing
flag (psf/black#4096). This breaks the code informat.py
that uses this option:Expected behavior
No crash.
Version:
Additional context
Possible mitigation:
black
version spec in pyproject.toml--preview --enable-unstable-feature string_processing
instead (as suggested by the black release notes).The text was updated successfully, but these errors were encountered: