From 8bc6aa547d41ed9efa00c48d29a9e94a6d8dbd33 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:47:47 -0500 Subject: [PATCH] pre-commit: bump repositories (#218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * pre-commit: bump repositories updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.9.3) - [github.com/rbubley/mirrors-prettier: v3.3.3 → v3.4.2](https://github.com/rbubley/mirrors-prettier/compare/v3.3.3...v3.4.2) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.0](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.0) - [github.com/henryiii/validate-pyproject-schema-store: 2024.11.18 → 2025.01.20](https://github.com/henryiii/validate-pyproject-schema-store/compare/2024.11.18...2025.01.20) - [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.31.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.4...0.31.0) - [github.com/scientific-python/cookie: 2024.08.19 → 2025.01.22](https://github.com/scientific-python/cookie/compare/2024.08.19...2025.01.22) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 12 ++++++------ pyproject_metadata/__init__.py | 2 +- tests/test_standard_metadata.py | 6 ++++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb86460..ebf1415 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.4" + rev: "v0.9.3" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -37,7 +37,7 @@ repos: additional_dependencies: [black==24.*] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.3.3" + rev: "v3.4.2" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] @@ -52,7 +52,7 @@ repos: - flit-core - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.0 hooks: - id: codespell exclude: ^(LICENSE$|src/scikit_build_core/resources/find_python|tests/test_skbuild_settings.py$) @@ -63,12 +63,12 @@ repos: - id: shellcheck - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.11.18 + rev: 2025.01.20 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.4 + rev: 0.31.0 hooks: - id: check-dependabot - id: check-github-workflows @@ -77,6 +77,6 @@ repos: files: \.schema\.json - repo: https://github.com/scientific-python/cookie - rev: 2024.08.19 + rev: 2025.01.22 hooks: - id: sp-repo-review diff --git a/pyproject_metadata/__init__.py b/pyproject_metadata/__init__.py index 3d7ce42..e774560 100644 --- a/pyproject_metadata/__init__.py +++ b/pyproject_metadata/__init__.py @@ -76,10 +76,10 @@ "RFC822Policy", "Readme", "StandardMetadata", - "field_to_metadata", "extras_build_system", "extras_project", "extras_top_level", + "field_to_metadata", ] diff --git a/tests/test_standard_metadata.py b/tests/test_standard_metadata.py index 177b095..26aa194 100644 --- a/tests/test_standard_metadata.py +++ b/tests/test_standard_metadata.py @@ -1259,8 +1259,10 @@ def test_license_file_24( pre_spdx = ( metadata_version in pyproject_metadata.constants.PRE_SPDX_METADATA_VERSIONS ) - with contextlib.nullcontext() if pre_spdx else pytest.warns( - pyproject_metadata.errors.ConfigurationWarning + with ( + contextlib.nullcontext() + if pre_spdx + else pytest.warns(pyproject_metadata.errors.ConfigurationWarning) ): metadata = pyproject_metadata.StandardMetadata.from_pyproject( {