Skip to content

Commit c8ff9bd

Browse files
[pre-commit.ci] pre-commit autoupdate (#222)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](codespell-project/codespell@v2.3.0...v2.4.1) - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.9.10](astral-sh/ruff-pre-commit@v0.7.4...v0.9.10) - [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.31.3](python-jsonschema/check-jsonschema@0.29.4...0.31.3) - [github.com/scientific-python/cookie: 2024.08.19 → 2025.01.22](scientific-python/cookie@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> Co-authored-by: Henry Schreiner <[email protected]>
1 parent 775ac45 commit c8ff9bd

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ repos:
2020
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
2121

2222
- repo: https://github.com/codespell-project/codespell
23-
rev: v2.3.0
23+
rev: v2.4.1
2424
hooks:
2525
- id: codespell
2626
args: [-w, -L, "THIRDPARTY"]
2727

2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: v0.7.4 # Ruff version
29+
rev: v0.9.10 # Ruff version
3030
hooks:
3131
- id: ruff
3232
args: [--fix, --show-fixes]
@@ -63,15 +63,15 @@ repos:
6363
- validate-pyproject[all]>=0.13
6464

6565
- repo: https://github.com/python-jsonschema/check-jsonschema
66-
rev: 0.29.4
66+
rev: 0.31.3
6767
hooks:
6868
- id: check-metaschema
6969
files: \.schema\.json$
7070
- id: check-readthedocs
7171
- id: check-github-workflows
7272

7373
- repo: https://github.com/scientific-python/cookie
74-
rev: 2024.08.19
74+
rev: 2025.01.22
7575
hooks:
7676
- id: sp-repo-review
7777
name: Validate Python repository

src/validate_pyproject/extra_validations.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class RedefiningStaticFieldAsDynamic(ValidationError):
1919
"""
2020
__doc__ = _DESC
2121
_URL = (
22-
"https://packaging.python.org/en/latest/specifications/"
23-
"pyproject-toml/#dynamic"
22+
"https://packaging.python.org/en/latest/specifications/pyproject-toml/#dynamic"
2423
)
2524

2625

tests/test_repo_review.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def test_valid_example(repo_review_processor, name: str) -> None:
4545
@pytest.mark.parametrize("name", ["pdm/invalid-version", "pdm/redefining-as-dynamic"])
4646
def test_invalid_example(repo_review_processor, name: str) -> None:
4747
processed = repo_review_processor.process(INVALID_EXAMPLES / name)
48-
assert any(
49-
not r.result and r.result is not None for r in processed.results
50-
), f"{processed.results}"
48+
assert any(not r.result and r.result is not None for r in processed.results), (
49+
f"{processed.results}"
50+
)
5151

5252

5353
def test_no_distutils(repo_review_processor) -> None:

0 commit comments

Comments
 (0)