Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.12.12"
rev: "v0.14.0"
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -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
Expand All @@ -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
7 changes: 5 additions & 2 deletions tests/test_standard_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1444,15 +1444,18 @@ 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()


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(
{
Expand Down