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

Bump black from 22.12.0 to 24.3.0 #12

Merged
merged 3 commits into from
Apr 10, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 10, 2024

Bumps black from 22.12.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)

24.2.0

Stable style

  • Fixed a bug where comments where mistakenly removed along with redundant parentheses (#4218)

Preview style

  • Move the hug_parens_with_braces_and_square_brackets feature to the unstable style due to an outstanding crash and proposed formatting tweaks (#4198)
  • Fixed a bug where base expressions caused inconsistent formatting of ** in tenary expression (#4154)
  • Checking for newline before adding one on docstring that is almost at the line limit (#4185)
  • Remove redundant parentheses in case statement if guards (#4214).

Configuration

... (truncated)

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)

24.2.0

Stable style

  • Fixed a bug where comments where mistakenly removed along with redundant parentheses (#4218)

Preview style

  • Move the hug_parens_with_braces_and_square_brackets feature to the unstable style due to an outstanding crash and proposed formatting tweaks (#4198)
  • Fixed a bug where base expressions caused inconsistent formatting of ** in tenary expression (#4154)
  • Checking for newline before adding one on docstring that is almost at the line limit (#4185)
  • Remove redundant parentheses in case statement if guards (#4214).

... (truncated)

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 <dependency name> 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.

Bumps [black](https://github.com/psf/black) from 22.12.0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@22.12.0...24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 10, 2024
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 10, 2024
Copy link

github-actions bot commented Apr 10, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
simfire/game
   game.py1942388%48, 74–78, 245–246, 303–307, 336, 338, 340, 345, 348–355, 381, 394–395, 398–399
   image.py19289%20, 31
   sprites.py177697%79, 85, 90, 96, 328, 434
simfire/game/managers
   fire.py204598%223, 265–269, 643, 782
   mitigation.py44198%73
simfire/sim
   simulation.py41812271%73, 83, 93, 103, 113, 129, 140, 150, 170, 181, 324, 416–423, 457–478, 549, 615–628, 648–661, 679, 696, 768, 805–806, 808–809, 839, 858, 871, 892–959, 1017–1021, 1040–1051, 1065–1103
simfire/utils
   config.py46512673%68–81, 110, 212, 232, 246–253, 278–298, 309–316, 359–361, 379–381, 383–385, 404–415, 537, 552, 556, 560, 597–644, 663, 674–675, 678, 682, 692, 717, 723, 727, 738, 776–787, 810, 817, 825, 843–867, 961, 974, 997, 1006–1027
   decorators.py13838%15–23
   generate_cfd_wind_layer.py867117%25–34, 38–56, 60–68, 72–82, 86–122, 126
   graph.py67691%107–108, 113, 119, 227, 252
   layers.py2635679%70, 74–75, 147, 165, 172, 209, 315–324, 327–368, 374–381, 564, 593
   log.py321069%11–12, 15–16, 21, 27, 36–38, 41
   terrain.py38879%127–136
   units.py25484%15–16, 29–31
simfire/utils/_tests
   test_layers.py89397%102, 131, 192
simfire/world
   elevation_functions.py24196%100
simfire/world/wind_mechanics
   cfd_wind.py1503974%63–73, 76–95, 130–134, 140–144, 188, 272, 274, 279, 281
   perlin_wind.py35197%42
   wind_controller.py663744%119–146, 157–170, 173, 176, 179, 182, 185
TOTAL362952985% 

Tests Skipped Failures Errors Time
97 0 💤 0 ❌ 0 🔥 7m 27s ⏱️

@doyled-it
Copy link
Member

Looks like this will require actually updating the code.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Apr 10, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 10, 2024
@doyled-it doyled-it enabled auto-merge April 10, 2024 22:18
@doyled-it doyled-it self-assigned this Apr 10, 2024
@doyled-it doyled-it merged commit a4cc023 into main Apr 10, 2024
6 checks passed
@doyled-it doyled-it deleted the dependabot/pip/black-24.3.0 branch April 10, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant