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

⬆️ Update black requirement from ~=23.12.0 to ~=24.1.0 #632

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 27, 2024

Updates the requirements on black to permit the latest version.

Release notes

Sourced from black's releases.

24.1.0

Highlights

This release introduces the new 2024 stable style (#4106), stabilizing the following changes:

  • Add parentheses around if-else expressions (#2278)
  • Dummy class and function implementations consisting only of ... are formatted more compactly (#3796)
  • If an assignment statement is too long, we now prefer splitting on the right-hand side (#3368)
  • Hex codes in Unicode escape sequences are now standardized to lowercase (#2916)
  • Allow empty first lines at the beginning of most blocks (#3967, #4061)
  • Add parentheses around long type annotations (#3899)
  • Enforce newline after module docstrings (#3932, #4028)
  • Fix incorrect magic trailing comma handling in return types (#3916)
  • Remove blank lines before class docstrings (#3692)
  • Wrap multiple context managers in parentheses if combined in a single with statement (#3489)
  • Fix bug in line length calculations for power operations (#3942)
  • Add trailing commas to collection literals even if there's a comment after the last entry (#3393)
  • When using --skip-magic-trailing-comma or -C, trailing commas are stripped from subscript expressions with more than 1 element (#3209)
  • Add extra blank lines in stubs in a few cases (#3564, #3862)
  • Accept raw strings as docstrings (#3947)
  • Split long lines in case blocks (#4024)
  • Stop removing spaces from walrus operators within subscripts (#3823)
  • Fix incorrect formatting of certain async statements (#3609)
  • Allow combining # fmt: skip with other comments (#3959)

There are already a few improvements in the --preview style, which are slated for the 2025 stable style. Try them out and share your feedback. In the past, the preview style has included some features that we were not able to stabilize. This year, we're adding a separate --unstable style for features with known problems. Now, the --preview style only includes features that we actually expect to make it into next year's stable style.

Stable style

Several bug fixes were made in features that are moved to the stable style in this release:

  • Fix comment handling when parenthesising conditional expressions (#4134)
  • Fix bug where spaces were not added around parenthesized walruses in subscripts, unlike other binary operators (#4109)
  • Remove empty lines before docstrings in async functions (#4132)
  • Address a missing case in the change to allow empty lines at the beginning of all

... (truncated)

Changelog

Sourced from black's changelog.

24.1.0

Highlights

This release introduces the new 2024 stable style (#4106), stabilizing the following changes:

  • Add parentheses around if-else expressions (#2278)
  • Dummy class and function implementations consisting only of ... are formatted more compactly (#3796)
  • If an assignment statement is too long, we now prefer splitting on the right-hand side (#3368)
  • Hex codes in Unicode escape sequences are now standardized to lowercase (#2916)
  • Allow empty first lines at the beginning of most blocks (#3967, #4061)
  • Add parentheses around long type annotations (#3899)
  • Enforce newline after module docstrings (#3932, #4028)
  • Fix incorrect magic trailing comma handling in return types (#3916)
  • Remove blank lines before class docstrings (#3692)
  • Wrap multiple context managers in parentheses if combined in a single with statement (#3489)
  • Fix bug in line length calculations for power operations (#3942)
  • Add trailing commas to collection literals even if there's a comment after the last entry (#3393)
  • When using --skip-magic-trailing-comma or -C, trailing commas are stripped from subscript expressions with more than 1 element (#3209)
  • Add extra blank lines in stubs in a few cases (#3564, #3862)
  • Accept raw strings as docstrings (#3947)
  • Split long lines in case blocks (#4024)
  • Stop removing spaces from walrus operators within subscripts (#3823)
  • Fix incorrect formatting of certain async statements (#3609)
  • Allow combining # fmt: skip with other comments (#3959)

There are already a few improvements in the --preview style, which are slated for the 2025 stable style. Try them out and share your feedback. In the past, the preview style has included some features that we were not able to stabilize. This year, we're adding a separate --unstable style for features with known problems. Now, the --preview style only includes features that we actually expect to make it into next year's stable style.

Stable style

Several bug fixes were made in features that are moved to the stable style in this release:

  • Fix comment handling when parenthesising conditional expressions (#4134)
  • Fix bug where spaces were not added around parenthesized walruses in subscripts, unlike other binary operators (#4109)
  • Remove empty lines before docstrings in async functions (#4132)
  • Address a missing case in the change to allow empty lines at the beginning of all

... (truncated)

Commits

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
black [< 23.10, > 23.9.0]
black [< 23.13, > 23.12.0]

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 will merge this PR once CI passes on it, as requested by @ff137.


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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jan 27, 2024
dependabot bot and others added 3 commits January 29, 2024 09:34
Updates the requirements on [black](https://github.com/psf/black) to permit the latest version.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.0...24.1.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@ff137 ff137 force-pushed the dependabot/pip/black-approx-eq-24.1.0 branch from 683705b to ceffd8e Compare January 29, 2024 07:34
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ff137
Copy link
Collaborator

ff137 commented Jan 29, 2024

@dependabot squash and merge

Copy link

Coverage

Coverage Report
FileStmtsMissCoverMissing
app
   main.py782667%71–74, 96, 98, 100, 104, 111, 137–142, 149–179
app/dependencies
   acapy_clients.py21290%18, 34
   auth.py561966%31, 37–38, 41, 52–55, 62–63, 68, 74–77, 81–84, 88–89, 94
   role.py34197%56
app/event_handling
   sse_listener.py40880%48–53, 72–77
   websocket_manager.py753257%32–38, 63–67, 86–89, 96–107, 114–124, 138
app/models
   issuer.py41295%34, 43
   tenants.py661380%93, 96, 105–115, 130–138
   verifier.py54885%30, 38–42, 79, 87–91
app/routes
   connections.py603935%26–40, 56–66, 80–94, 110–121, 140–147
   definitions.py2068360%79–136, 169–170, 247–248, 277–278, 288, 342–343, 352, 359–364, 396–444, 468–469, 508–578, 586–605
   issuer.py135894%63, 94, 154, 187, 204, 313, 326, 358
   jsonld.py624921%29–92, 103–141
   messaging.py21957%31–36, 56–63
   oob.py503236%27–66, 77–89, 113–123
   sse.py321553%37–43, 66–72, 99–107, 136–142, 173–184
   verifier.py1453278%58–60, 65, 103–105, 110, 152, 160–162, 167, 201–205, 214–216, 245–247, 253, 286–288, 293, 323–325, 359–361
   webhooks.py16475%30–34, 53–57
   websocket_endpoint.py18180%1–41
app/routes/admin
   tenants.py15012020%48–158, 169–193, 203–220, 232–242, 253–265, 277–317
app/routes/wallet
   credentials.py785431%31–40, 49–59, 68–78, 87–99, 110–122, 134–143, 152–162, 171–181
   dids.py752271%24–33, 50–51, 71–72, 84–91, 99–105
app/services
   acapy_ledger.py691874%50–51, 77–79, 118–119, 132–151, 204–205
   acapy_wallet.py40490%61–62, 96–97
   revocation_registry.py1202778%247–248, 311–316, 332–343, 351–366, 418–422
   sse.py715523%20–24, 36–49, 62–75, 91–108, 125–142, 160–183
   webhooks.py271833%14–24, 31–39
   websocket.py44440%1–79
app/services/issuer
   acapy_issuer_v1.py911386%31, 58–81, 162–163
   acapy_issuer_v2.py1032180%46–49, 69–103, 141, 187–188, 211
app/services/onboarding
   issuer.py38684%98–100, 117–119
   tenants.py624823%26–92, 102–132
   verifier.py36392%66, 82–86
app/services/onboarding/util
   register_issuer_did.py61789%82–84, 173–175, 190
   set_endorser_metadata.py693746%25–27, 45–47, 69–71, 102–119, 131–140, 152–163, 176–188
app/services/trust_registry
   actors.py107992%94–99, 109, 208–209, 211–216, 281–284
   schemas.py49492%56–61, 91–96
app/services/trust_registry/util
   actor.py31294%26–27
   issuer.py23483%39–40, 48–49
app/services/verifier
   acapy_verifier_v1.py1336849%35, 58–62, 73, 95–99, 104, 112, 136–140, 145, 158–168, 173–175, 181–195, 199–218, 222–234, 238–258
   acapy_verifier_v2.py1407447%38–43, 63–67, 79–84, 106–110, 115, 128–133, 147–151, 156, 169–181, 186–190, 196–210, 214–233, 237–251, 255–275
app/tests/admin
   test_onboarding.py85199%254
app/tests/e2e
   conftest.py23578%38–46
   test_credentials.py991189%96–130
   test_jsonld.py641675%133–168
   test_tenants.py2761395%153, 197–198, 226, 558, 592–593, 602–603, 615–616, 625–626
   test_trust_registry_integration.py63198%111
   test_verifier.py305199%36
   test_wallet_dids.py671085%92–107
app/tests/issuer
   test_issuer.py160299%295–298
app/tests/services
   test_revocation_registry.py102694%72, 118, 153, 233, 277, 296
app/tests/util
   ecosystem_connections.py1352780%276–295, 312–332, 340–380
   ledger.py491080%34, 42, 54, 62–66, 76, 82
   member_acapy_clients.py36683%47–50, 65–66, 73–74
   trust_registry.py41393%26, 29–30
   webhooks.py25292%13, 57
app/tests/verifier
   utils.py1438938%174–188, 195–214, 226–263, 271–274, 280–291, 297–306, 311–364, 375–427, 440–466, 479–517, 531–569, 583–604, 615–631, 644–650, 664–680, 694–720
app/util
   acapy_issuer_utils.py18194%22
   acapy_verifier_utils.py1348239%40, 48–125, 156, 163–182, 186, 193–197, 205–209, 213–217, 224–254, 260–263
   credentials.py10460%8, 12–15
   retry_method.py16160%1–25
   tenants.py251348%12–19, 34–35, 42–49
endorser
   endorser_processor.py1624373%31–39, 55–56, 65–69, 127–131, 135–139, 162–174, 205–209, 212–216, 227–229, 234–235, 250–251, 261–265, 295–304
   main.py880%1–12
trustregistry
   crud.py17615214%15–30, 34–46, 50–62, 66–78, 82–141, 145–161, 165–194, 200–214, 218–228, 232–252, 256–283, 287–302
   db.py29969%11–15, 19–23
   list_type.py10460%9–12, 15
   main.py411563%23–32, 54–59, 64
trustregistry/registry
   registry_actors.py825829%19–22, 27–38, 45–65, 72–82, 89–99, 106–116, 121–127
   registry_schemas.py654038%24–27, 34–51, 58–92, 97–108, 113–119
webhooks
   models.py532651%37, 48–50, 54, 58, 62, 66, 71–81, 86–96, 125, 142
webhooks/dependencies
   redis_service.py74495%19, 207, 212–213
   sse_manager.py1763381%59–66, 111–121, 152–153, 166–180, 235–239, 245–248, 250–253, 278–279, 322–324, 358, 369–370
webhooks/routers
   receive_events.py32681%37–42, 57–61, 75–79
   sse.py16813718%34–38, 61–96, 121–154, 173–238, 260–301, 324–376
   webhooks.py30293%35, 62
webhooks/tests
   test_sse_manager.py128398%145–146, 152
webhooks/tests/e2e
   test_sse.py81495%121, 147–150
TOTAL8707192178% 

Tests Skipped Failures Errors Time
259 2 💤 0 ❌ 0 🔥 8m 40s ⏱️

Copy link

Coverage

Coverage Report
FileStmtsMissCoverMissing
app
   main.py782667%71–74, 96, 98, 100, 104, 111, 137–142, 149–179
app/dependencies
   acapy_clients.py21290%18, 34
   auth.py561966%31, 37–38, 41, 52–55, 62–63, 68, 74–77, 81–84, 88–89, 94
   role.py34197%56
app/event_handling
   sse_listener.py40880%48–53, 72–77
   websocket_manager.py753257%32–38, 63–67, 86–89, 96–107, 114–124, 138
app/models
   issuer.py41295%34, 43
   tenants.py661380%93, 96, 105–115, 130–138
   verifier.py54885%30, 38–42, 79, 87–91
app/routes
   connections.py603935%26–40, 56–66, 80–94, 110–121, 140–147
   definitions.py2068360%79–136, 169–170, 247–248, 277–278, 288, 342–343, 352, 359–364, 396–444, 468–469, 508–578, 586–605
   issuer.py135894%63, 94, 154, 187, 204, 313, 326, 358
   jsonld.py624921%29–92, 103–141
   messaging.py21957%31–36, 56–63
   oob.py503236%27–66, 77–89, 113–123
   sse.py321553%37–43, 66–72, 99–107, 136–142, 173–184
   verifier.py1453278%58–60, 65, 103–105, 110, 152, 160–162, 167, 201–205, 214–216, 245–247, 253, 286–288, 293, 323–325, 359–361
   webhooks.py16475%30–34, 53–57
   websocket_endpoint.py18180%1–41
app/routes/admin
   tenants.py15012020%48–158, 169–193, 203–220, 232–242, 253–265, 277–317
app/routes/wallet
   credentials.py785431%31–40, 49–59, 68–78, 87–99, 110–122, 134–143, 152–162, 171–181
   dids.py752271%24–33, 50–51, 71–72, 84–91, 99–105
app/services
   acapy_ledger.py691874%50–51, 77–79, 118–119, 132–151, 204–205
   acapy_wallet.py40490%61–62, 96–97
   revocation_registry.py1202778%247–248, 311–316, 332–343, 351–366, 418–422
   sse.py715523%20–24, 36–49, 62–75, 91–108, 125–142, 160–183
   webhooks.py271833%14–24, 31–39
   websocket.py44440%1–79
app/services/issuer
   acapy_issuer_v1.py911386%31, 58–81, 162–163
   acapy_issuer_v2.py1032180%46–49, 69–103, 141, 187–188, 211
app/services/onboarding
   issuer.py38684%98–100, 117–119
   tenants.py624823%26–92, 102–132
   verifier.py36392%66, 82–86
app/services/onboarding/util
   register_issuer_did.py61789%82–84, 173–175, 190
   set_endorser_metadata.py693746%25–27, 45–47, 69–71, 102–119, 131–140, 152–163, 176–188
app/services/trust_registry
   actors.py107992%94–99, 109, 208–209, 211–216, 281–284
   schemas.py49492%56–61, 91–96
app/services/trust_registry/util
   actor.py31294%26–27
   issuer.py23483%39–40, 48–49
app/services/verifier
   acapy_verifier_v1.py1336849%35, 58–62, 73, 95–99, 104, 112, 136–140, 145, 158–168, 173–175, 181–195, 199–218, 222–234, 238–258
   acapy_verifier_v2.py1407447%38–43, 63–67, 79–84, 106–110, 115, 128–133, 147–151, 156, 169–181, 186–190, 196–210, 214–233, 237–251, 255–275
app/tests/admin
   test_onboarding.py85199%254
app/tests/e2e
   conftest.py23578%38–46
   test_credentials.py991189%96–130
   test_jsonld.py641675%133–168
   test_tenants.py2761395%153, 197–198, 226, 558, 592–593, 602–603, 615–616, 625–626
   test_trust_registry_integration.py63198%111
   test_verifier.py305199%36
   test_wallet_dids.py671085%92–107
app/tests/issuer
   test_issuer.py160299%295–298
app/tests/services
   test_revocation_registry.py102694%72, 118, 153, 233, 277, 296
app/tests/util
   ecosystem_connections.py1352780%276–295, 312–332, 340–380
   ledger.py491080%34, 42, 54, 62–66, 76, 82
   member_acapy_clients.py36683%47–50, 65–66, 73–74
   trust_registry.py41393%26, 29–30
   webhooks.py25292%13, 57
app/tests/verifier
   utils.py1438938%174–188, 195–214, 226–263, 271–274, 280–291, 297–306, 311–364, 375–427, 440–466, 479–517, 531–569, 583–604, 615–631, 644–650, 664–680, 694–720
app/util
   acapy_issuer_utils.py18194%22
   acapy_verifier_utils.py1348239%40, 48–125, 156, 163–182, 186, 193–197, 205–209, 213–217, 224–254, 260–263
   credentials.py10460%8, 12–15
   retry_method.py16160%1–25
   tenants.py251348%12–19, 34–35, 42–49
endorser
   endorser_processor.py1624373%31–39, 55–56, 65–69, 127–131, 135–139, 162–174, 205–209, 212–216, 227–229, 234–235, 250–251, 261–265, 295–304
   main.py880%1–12
trustregistry
   crud.py17615214%15–30, 34–46, 50–62, 66–78, 82–141, 145–161, 165–194, 200–214, 218–228, 232–252, 256–283, 287–302
   db.py29969%11–15, 19–23
   list_type.py10460%9–12, 15
   main.py411563%23–32, 54–59, 64
trustregistry/registry
   registry_actors.py825829%19–22, 27–38, 45–65, 72–82, 89–99, 106–116, 121–127
   registry_schemas.py654038%24–27, 34–51, 58–92, 97–108, 113–119
webhooks
   models.py532651%37, 48–50, 54, 58, 62, 66, 71–81, 86–96, 125, 142
webhooks/dependencies
   redis_service.py74495%19, 207, 212–213
   sse_manager.py1763381%59–66, 111–121, 152–153, 166–180, 235–239, 245–248, 250–253, 278–279, 322–324, 358, 369–370
webhooks/routers
   receive_events.py32681%37–42, 57–61, 75–79
   sse.py16813718%34–38, 61–96, 121–154, 173–238, 260–301, 324–376
   webhooks.py30293%35, 62
webhooks/tests
   test_sse_manager.py128398%145–146, 152
webhooks/tests/e2e
   test_sse.py81495%121, 147–150
TOTAL8707192178% 

Tests Skipped Failures Errors Time
259 2 💤 0 ❌ 0 🔥 8m 26s ⏱️

@dependabot dependabot bot merged commit 995590c into development Jan 29, 2024
45 checks passed
@dependabot dependabot bot deleted the dependabot/pip/black-approx-eq-24.1.0 branch January 29, 2024 08:01
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 python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant