From f466d9018580b6c8ce383f186ae5ddd176f29812 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 19:05:15 +0000 Subject: [PATCH 1/2] pre-commit: bump repositories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.12...v0.13.3) - [github.com/henryiii/validate-pyproject-schema-store: 2025.08.29 → 2025.10.03](https://github.com/henryiii/validate-pyproject-schema-store/compare/2025.08.29...2025.10.03) - [github.com/python-jsonschema/check-jsonschema: 0.33.3 → 0.34.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.3...0.34.0) - [github.com/scientific-python/cookie: 2025.05.02 → 2025.10.01](https://github.com/scientific-python/cookie/compare/2025.05.02...2025.10.01) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2925290..f7b34ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.12" + rev: "v0.13.3" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -65,12 +65,12 @@ repos: - id: shellcheck - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2025.08.29 + rev: 2025.10.03 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.3 + rev: 0.34.0 hooks: - id: check-dependabot - id: check-github-workflows @@ -79,6 +79,6 @@ repos: files: \.schema\.json - repo: https://github.com/scientific-python/cookie - rev: 2025.05.02 + rev: 2025.10.01 hooks: - id: sp-repo-review From d6cde76c3ce7164f0680a4b63d41bab5fac712c5 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 8 Oct 2025 10:37:35 -0400 Subject: [PATCH 2/2] chore: update pre-commit checks Signed-off-by: Henry Schreiner --- .pre-commit-config.yaml | 2 +- tests/test_standard_metadata.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7b34ab..6db2ed3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.13.3" + rev: "v0.14.0" hooks: - id: ruff-check args: ["--fix", "--show-fixes"] diff --git a/tests/test_standard_metadata.py b/tests/test_standard_metadata.py index 5303849..14ea64d 100644 --- a/tests/test_standard_metadata.py +++ b/tests/test_standard_metadata.py @@ -1444,7 +1444,8 @@ def test_as_rfc822_mapped_dynamic() -> None: def test_as_rfc822_missing_version() -> None: metadata = pyproject_metadata.StandardMetadata(name="something") with pytest.raises( - pyproject_metadata.ConfigurationError, match='Field "project.version" missing' + pyproject_metadata.ConfigurationError, + match=re.escape('Field "project.version" missing'), ): metadata.as_rfc822() @@ -1452,7 +1453,9 @@ def test_as_rfc822_missing_version() -> None: def test_statically_defined_dynamic_field() -> None: with pytest.raises( pyproject_metadata.ConfigurationError, - match='Field "project.version" declared as dynamic in "project.dynamic" but is defined', + match=re.escape( + 'Field "project.version" declared as dynamic in "project.dynamic" but is defined' + ), ): pyproject_metadata.StandardMetadata.from_pyproject( {