From 1e562297a6b3c71839c436e4a3f031f04aade33c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:30:31 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.17.4 → v0.17.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.17.4...v0.17.5) - [github.com/adhtruong/mirrors-typos: v1.52.0 → v1.52.2](https://github.com/adhtruong/mirrors-typos/compare/v1.52.0...v1.52.2) - [github.com/astral-sh/uv-pre-commit: 0.13.7 → 0.13.8](https://github.com/astral-sh/uv-pre-commit/compare/0.13.7...0.13.8) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63b2f1c292..c30d76e79c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.17.4 + rev: v0.17.5 hooks: - id: ruff-check types: [file] @@ -38,7 +38,7 @@ repos: # tomli needed on 3.10. tomllib is available in stdlib on 3.11+ - tomli - repo: https://github.com/adhtruong/mirrors-typos - rev: v1.52.0 + rev: v1.52.2 hooks: - id: typos - repo: https://github.com/sphinx-contrib/sphinx-lint @@ -69,7 +69,7 @@ repos: additional_dependencies: ["pyyaml"] files: ^(test-requirements\.txt)|(\.pre-commit-config\.yaml)$ - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.13.7 + rev: 0.13.8 hooks: # Compile requirements - id: pip-compile From 8866986125da0bc5db6499e78e78b23985e07342 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:31:22 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- test-requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index ebc1ade4fa..5981c80803 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -160,7 +160,7 @@ requests==2.34.2 # via sphinx roman-numerals==4.1.0 ; python_full_version >= '3.11' # via sphinx -ruff==0.17.4 +ruff==0.17.5 # via -r test-requirements.in sniffio==1.3.1 # via -r test-requirements.in @@ -224,7 +224,7 @@ typing-extensions==4.16.0 # virtualenv urllib3==2.8.0 # via requests -uv==0.13.7 +uv==0.13.8 # via -r test-requirements.in virtualenv==21.15.2 # via pre-commit From 357d888096e8f2d2af0900d53895dbb411a7fcbb Mon Sep 17 00:00:00 2001 From: A5rocks Date: Tue, 17 Nov 2026 00:15:29 -0700 Subject: [PATCH 3/3] Update (maybe useless) test --- src/trio/_core/_tests/test_exceptiongroup_gc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/trio/_core/_tests/test_exceptiongroup_gc.py b/src/trio/_core/_tests/test_exceptiongroup_gc.py index e8ffa62945..fd053252a1 100644 --- a/src/trio/_core/_tests/test_exceptiongroup_gc.py +++ b/src/trio/_core/_tests/test_exceptiongroup_gc.py @@ -90,12 +90,10 @@ def make_multi() -> NoReturn: try: gc.set_debug(gc.DEBUG_SAVEALL) - with pytest.raises(ExceptionGroup) as excinfo: + with pytest.RaisesGroup(ValueError, KeyError): # covers ~~MultiErrorCatcher.__exit__ and~~ _concat_tb.copy_tb # TODO: is the above comment true anymore? as this no longer uses MultiError.catch raise make_multi() - for exc in excinfo.value.exceptions: - assert isinstance(exc, (ValueError, KeyError)) gc.collect() assert not gc.garbage finally: