chore(deps): combine and fix up dependabot bumps (black 26, mypy 2, pytest 9.1)#271
Merged
Merged
Conversation
…ytest 9.1) Combines dependabot PRs OpenJobDescription#267, OpenJobDescription#269, OpenJobDescription#270: - black 25.* -> 26.* (OpenJobDescription#267) - mypy 1.19.* -> 2.1.* (OpenJobDescription#269) - pytest 9.0.* -> 9.1.* (OpenJobDescription#270) black 26 and mypy 2 dropped Python 3.9 (require >=3.10). Pinned via environment markers so the 3.9 CI job keeps the last 3.9-compatible versions while 3.10+ gets the upgraded majors (matching the existing pytest marker pattern). Applied black 26 reformatting. pytest 9.1 reworked log capture for non-propagating loggers (pytest changelog #3697). The mock_getLogger fixture patched the global logging.getLogger, which broke caplog's handler installation on 9.1 and caused 7 test_entrypoint.py failures. Fixed by patching EntryPoint._init_loggers instead, which works on both pytest 8.4 (py3.9) and 9.1 (py3.10+). Verified: ruff, black, mypy 2.1.0, and 475 unit tests pass. Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>
leongdl
enabled auto-merge (rebase)
July 2, 2026 16:43
godobyte
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Combining and fixing up the three failing dependabot PRs (#267, #269, #270) so they can be closed.
Changes (
requirements-testing.txt)25.*->26.*(chore(deps): update black requirement from ==25.* to ==26.* #267)1.19.*->2.1.*(chore(deps): update mypy requirement from ==1.19.* to ==2.1.* #269)9.0.*->9.1.*(chore(deps): update pytest requirement from ==9.0.* to ==9.1.* #270)Why the individual PRs were failing
1. black 26 / mypy 2 drop Python 3.9. Both now require
>=3.10, but this package supports>=3.9and tests it in CI. Fixed with environment markers (matching the pytest marker pattern already in the file) so the 3.9 job keeps the last compatible release and 3.10+ gets the new major:Also applied black 26's docstring blank-line reformatting; verified black 25 agrees with the reformatted tree so the 3.9
black --checkjob stays green.2. pytest 9.1 broke 7 tests in
test_entrypoint.py. pytest 9.1 reworked log capture for non-propagating loggers (changelog #3697). The autousemock_getLoggerfixture patched the globallogging.getLogger, which pytest 9.1'scaplognow relies on to install its capture handler — socaplog.textcame back empty. Fixed by patchingEntryPoint._init_loggersinstead (the actual thing the fixture was trying to stub out), which works on both pytest 8.4 (the 3.9 job) and 9.1 (3.10+).Verification
ruff check/black --check— passmypy(2.1.0) — no issues in 146 source fileshatch run test— 475 passed, 26 skippedCloses #267, closes #269, closes #270.