From 7ad4d8ea768e752bed334db1e577e98e26d1d4ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 21:20:11 +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/astral-sh/ruff-pre-commit: v0.16.0 → v0.16.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.0...v0.16.1) --- .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 2f2c6bd..95f0e37 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: exclude_types: [javascript,json] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.0 + rev: v0.16.1 hooks: - id: ruff-check args: [--fix] From 2c0066bb7e055561f4f40691a97703ec2ee97dc7 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Tue, 4 Aug 2026 08:46:46 +0100 Subject: [PATCH 2/2] Fix tests --- test/test_git.py | 2 +- test/test_init.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_git.py b/test/test_git.py index 2c803e7..244b5ee 100644 --- a/test/test_git.py +++ b/test/test_git.py @@ -21,7 +21,7 @@ def test_error_on_unknown_option(git2cpp_path): p = subprocess.run(cmd, capture_output=True) assert p.returncode == 109 assert p.stdout == b"" - assert p.stderr.startswith(b"The following argument was not expected: --unknown") + assert b"The following argument was not expected: --unknown" in p.stderr @pytest.mark.skipif(not GIT2CPP_TEST_WASM, reason="Only test in WebAssembly") diff --git a/test/test_init.py b/test/test_init.py index 9183780..f1e5088 100644 --- a/test/test_init.py +++ b/test/test_init.py @@ -97,7 +97,7 @@ def test_error_on_unknown_option(git2cpp_path): p = subprocess.run(cmd, capture_output=True) assert p.returncode == 109 assert p.stdout == b"" - assert p.stderr.startswith(b"The following argument was not expected: --unknown") + assert b"The following argument was not expected: --unknown" in p.stderr def test_error_on_repeated_directory(git2cpp_path): @@ -105,7 +105,7 @@ def test_error_on_repeated_directory(git2cpp_path): p = subprocess.run(cmd, capture_output=True) assert p.returncode == 109 assert p.stdout == b"" - assert p.stderr.startswith(b"The following argument was not expected: def") + assert b"The following argument was not expected: def" in p.stderr def test_init_creates_missing_parent_directories(git2cpp_path, tmp_path):