Update black requirement from <=23.12.1,>=23.3.0 to >=23.3.0,<=24.4.0
Updates the requirements on black to permit the latest version.
Release notes
Sourced from black's releases.
24.4.0
Stable style
- Fix unwanted crashes caused by AST equivalency check (#4290)
Preview style
ifguards incaseblocks are now wrapped in parentheses when the line is too long. (#4269)- Stop moving multiline strings to a new line unless inside brackets (#4289)
Integrations
- Add a new option
use_pyprojectto the GitHub Actionpsf/black. This will read the Black version frompyproject.toml. (#4294)
Changelog
Sourced from black's changelog.
24.4.0
Stable style
- Fix unwanted crashes caused by AST equivalency check (#4290)
Preview style
ifguards incaseblocks are now wrapped in parentheses when the line is too long. (#4269)- Stop moving multiline strings to a new line unless inside brackets (#4289)
Integrations
- Add a new option
use_pyprojectto the GitHub Actionpsf/black. This will read the Black version frompyproject.toml. (#4294)24.3.0
Highlights
This release is a milestone: it fixes Black's first CVE security vulnerability. If you run Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings, you are strongly encouraged to upgrade immediately to fix CVE-2024-21503.
This release also fixes a bug in Black's AST safety check that allowed Black to make incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
Stable style
- Don't move comments along with delimiters, which could cause crashes (#4248)
- Strengthen AST safety check to catch more unsafe changes to strings. Previous versions of Black would incorrectly format the contents of certain unusual f-strings containing nested strings with the same quote type. Now, Black will crash on such strings until support for the new f-string syntax is implemented. (#4270)
- Fix a bug where line-ranges exceeding the last code line would not work as expected (#4273)
Performance
- Fix catastrophic performance on docstrings that contain large numbers of leading tab characters. This fixes CVE-2024-21503. (#4278)
Documentation
- Note what happens when
--checkis used with--quiet(#4236)
... (truncated)
Commits
8fe6270Prepare release 24.4.0 (#4307)6b25e7cBump peter-evans/find-comment from 3.0.0 to 3.1.0 (#4304)07fe1cadocs: remove repetitive word (#4303)3383f53GitHub Action: Allow reading version from pyproject.toml (#4294)c8f1a55[pre-commit.ci] pre-commit autoupdate (#4297)836acadImprove AST safety check (#4290)13bd092fix: Stop moving multiline strings to a new line unless inside brackets (#4289)c9d2635Remove mocking from tests (#4287)bf11956Fix two logging calls in the test helper (#4286)97993f9Bump pypa/cibuildwheel from 2.16.5 to 2.17.0 (#4283)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)