Skip to content

Commit d180e62

Browse files
committed
validate pyproject.toml, too
1 parent 2f6cf53 commit d180e62

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: v0.13.3
7+
rev: v0.14.3
88
hooks:
99
- id: ruff-check
1010
args: [--fix, --exit-non-zero-on-fix]
@@ -21,6 +21,13 @@ repos:
2121
hooks:
2222
- id: codespell
2323

24+
- repo: https://github.com/abravalheri/validate-pyproject
25+
rev: v0.24.1
26+
hooks:
27+
- id: validate-pyproject
28+
# Optional extra validations from SchemaStore:
29+
additional_dependencies: ["validate-pyproject-schema-store[all]"]
30+
2431
- repo: https://github.com/pre-commit/pre-commit-hooks
2532
rev: v6.0.0
2633
hooks:

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ commands = coverage run -m pytest {posargs}
2222
[testenv:pre-commit]
2323
description = Run all pre-commit hooks.
2424
skip_install = true
25-
deps = pre-commit
26-
commands = pre-commit run --all-files
25+
deps = prek
26+
commands = prek run --all-files
2727

2828

2929
[testenv:mypy-api]

0 commit comments

Comments
 (0)