fedora-infra / anitya

A cross-distribution upstream release monitoring project
https://release-monitoring.org
GNU General Public License v2.0
237 stars 104 forks source link

Bump black from 24.2.0 to 24.3.0 #1743

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 3 months ago

Bumps black from 24.2.0 to 24.3.0.

Release notes

Sourced from black's releases.

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 --check is used with --quiet (#4236)
Changelog

Sourced from black's changelog.

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 --check is used with --quiet (#4236)
Commits


Dependabot compatibility score

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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/fedora-infra/anitya/network/alerts).
softwarefactory-project-zuul[bot] commented 3 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/3cc380a8d9a7449fad539fcec34c08aa

:heavy_check_mark: fi-tox-mypy SUCCESS in 5m 43s :heavy_check_mark: fi-tox-lint SUCCESS in 6m 28s :heavy_check_mark: fi-tox-format SUCCESS in 5m 46s :heavy_check_mark: fi-tox-python38 SUCCESS in 10m 36s :heavy_check_mark: fi-tox-python39 SUCCESS in 10m 16s :heavy_check_mark: fi-tox-python310 SUCCESS in 10m 37s :heavy_check_mark: fi-tox-python311 SUCCESS in 10m 24s :heavy_check_mark: fi-tox-docs SUCCESS in 6m 36s :heavy_check_mark: fi-tox-bandit SUCCESS in 6m 10s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 11m 13s

softwarefactory-project-zuul[bot] commented 3 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/01bf16b745694713b47eee407f478888

:heavy_check_mark: fi-tox-mypy SUCCESS in 5m 48s :heavy_check_mark: fi-tox-lint SUCCESS in 5m 33s :heavy_check_mark: fi-tox-format SUCCESS in 5m 26s :heavy_check_mark: fi-tox-python38 SUCCESS in 9m 08s :heavy_check_mark: fi-tox-python39 SUCCESS in 9m 43s :heavy_check_mark: fi-tox-python310 SUCCESS in 9m 29s :heavy_check_mark: fi-tox-python311 SUCCESS in 9m 25s :heavy_check_mark: fi-tox-docs SUCCESS in 7m 14s :heavy_check_mark: fi-tox-bandit SUCCESS in 5m 17s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 10m 44s

softwarefactory-project-zuul[bot] commented 3 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/39da2205a8b740fab4bb60e6881f7626

:heavy_check_mark: fi-tox-mypy SUCCESS in 5m 28s :heavy_check_mark: fi-tox-lint SUCCESS in 5m 16s :heavy_check_mark: fi-tox-format SUCCESS in 5m 17s :heavy_check_mark: fi-tox-python38 SUCCESS in 9m 24s :heavy_check_mark: fi-tox-python39 SUCCESS in 9m 00s :heavy_check_mark: fi-tox-python310 SUCCESS in 9m 04s :heavy_check_mark: fi-tox-python311 SUCCESS in 8m 21s :heavy_check_mark: fi-tox-docs SUCCESS in 6m 38s :heavy_check_mark: fi-tox-bandit SUCCESS in 5m 12s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 10m 08s