From 132bff3b397d305b89a8cfbfd80c1770b35d9119 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:28:36 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 49e3efa..63fd111 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black args: [--safe, --quiet] From 818fa80c8628c7f1151dc513b0369b7d6f494854 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:32:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_reportlog.py | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/tests/test_reportlog.py b/tests/test_reportlog.py index 0fcde91..032df8b 100644 --- a/tests/test_reportlog.py +++ b/tests/test_reportlog.py @@ -39,8 +39,7 @@ def test_basics(testdir, tmp_path, pytestconfig): We don't test the test reports extensively because they have been tested already in ``test_reports``. """ - p = testdir.makepyfile( - """ + p = testdir.makepyfile(""" import warnings def test_ok(): @@ -51,8 +50,7 @@ def test_fail(): def test_warning(): warnings.warn("message", UserWarning) - """ - ) + """) log_file = tmp_path / "log.json" @@ -114,8 +112,7 @@ def test_warning(): def test_exclude_logs_for_passing_tests(testdir, tmp_path, exclude): passing_log_entry = "THIS TEST PASSED!" failing_log_entry = "THIS TEST FAILED!" - testdir.makepyfile( - f""" + testdir.makepyfile(f""" import logging logger = logging.getLogger(__name__) @@ -126,8 +123,7 @@ def test_ok(): def test_fail(): logger.warning("{failing_log_entry}") assert 0 - """ - ) + """) fn = tmp_path / "result.log" if exclude: result = testdir.runpytest( @@ -147,8 +143,7 @@ def test_fail(): def test_xdist_integration(testdir, tmp_path): pytest.importorskip("xdist") - testdir.makepyfile( - """ + testdir.makepyfile(""" import warnings def test_ok(): @@ -159,8 +154,7 @@ def test_fail(): def test_warning(): warnings.warn("message", UserWarning) - """ - ) + """) fn = tmp_path / "result.log" result = testdir.runpytest("-n2", f"--report-log={fn}") result.stdout.fnmatch_lines("*1 failed, 2 passed, 1 warning*") @@ -190,13 +184,11 @@ def __str__(self): def test_subtest(pytester, tmp_path): """Regression test for #90.""" - pytester.makepyfile( - """ + pytester.makepyfile(""" def test_foo(subtests): with subtests.test(): pass - """ - ) + """) fn = tmp_path / "result.log" result = pytester.runpytest(f"--report-log={fn}") result.stdout.fnmatch_lines("*1 passed in*")