Skip to content

Commit b26f882

Browse files
chore(deps): update pre-commit hooks (#296)
* chore(deps): update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.3 → v0.14.7](astral-sh/ruff-pre-commit@v0.14.3...v0.14.7) - [github.com/rbubley/mirrors-prettier: v3.6.2 → v3.7.3](rbubley/mirrors-prettier@v3.6.2...v3.7.3) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](pre-commit/mirrors-mypy@v1.18.2...v1.19.0) - [github.com/henryiii/validate-pyproject-schema-store: 2025.11.02 → 2025.11.21](henryiii/validate-pyproject-schema-store@2025.11.02...2025.11.21) - [github.com/python-jsonschema/check-jsonschema: 0.34.1 → 0.35.0](python-jsonschema/check-jsonschema@0.34.1...0.35.0) * chore: use hatch's dep group support Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * chore: try adding rich-click directly Signed-off-by: Henry Schreiner <henryfs@princeton.edu> --------- Signed-off-by: Henry Schreiner <henryfs@princeton.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <henryfs@princeton.edu>
1 parent d2035a5 commit b26f882

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ repos:
1111
additional_dependencies: [black==24.*]
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: "v0.14.3"
14+
rev: "v0.14.7"
1515
hooks:
1616
- id: ruff-check
1717
args: ["--fix", "--show-fixes"]
1818
- id: ruff-format
1919

2020
- repo: https://github.com/rbubley/mirrors-prettier
21-
rev: "v3.6.2"
21+
rev: "v3.7.3"
2222
hooks:
2323
- id: prettier
2424
types_or: [yaml, markdown, html, css, scss, javascript, json]
@@ -45,7 +45,7 @@ repos:
4545
- id: rst-inline-touching-normal
4646

4747
- repo: https://github.com/pre-commit/mirrors-mypy
48-
rev: v1.18.2
48+
rev: v1.19.0
4949
hooks:
5050
- id: mypy
5151
files: (src|web|tests)
@@ -79,12 +79,12 @@ repos:
7979
exclude: .pre-commit-config.yaml
8080

8181
- repo: https://github.com/henryiii/validate-pyproject-schema-store
82-
rev: 2025.11.02
82+
rev: 2025.11.21
8383
hooks:
8484
- id: validate-pyproject
8585

8686
- repo: https://github.com/python-jsonschema/check-jsonschema
87-
rev: 0.34.1
87+
rev: 0.35.0
8888
hooks:
8989
- id: check-dependabot
9090
- id: check-github-workflows

pyproject.toml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ docs = [
8181
"furo",
8282
"myst_parser >=0.13",
8383
"repo-review[cli]",
84+
"rich-click",
8485
"sphinx >=4.0",
8586
"sphinx-autodoc-typehints",
8687
"sphinx-copybutton",
@@ -98,38 +99,21 @@ installer = "uv"
9899

99100
[tool.hatch.envs.hatch-test]
100101
features = ["cli"]
101-
# duplicated since hatch doesn't support groups yet
102-
dependencies = [
103-
"pytest >=7",
104-
"sp-repo-review >=2025.11.10",
105-
"validate-pyproject >=0.14",
106-
]
102+
dependency-groups = ["test"]
107103
env-vars.PYTHONWARNDEFAULTENCODING = "1"
108104

109105
[tool.hatch.envs.lint]
110-
dependencies = ["pre-commit"]
106+
dependencies = ["prek"]
111107
skip-install = true
112-
scripts.lint = "pre-commit run --all-files --show-diff-on-failure {args}"
108+
scripts.lint = "prek run --all-files --show-diff-on-failure {args}"
113109

114110
[tool.hatch.envs.pylint]
115111
features = ["cli"]
116112
dependencies = ["pylint>=3.2"]
117113
scripts.lint = "pylint repo_review {args}"
118114

119115
[tool.hatch.envs.docs]
120-
# duplicated since hatch doesn't support groups yet
121-
dependencies = [
122-
"furo",
123-
"myst_parser >=0.13",
124-
"repo-review[cli]",
125-
"sphinx >=4.0",
126-
"sphinx-autodoc-typehints",
127-
"sphinx-copybutton",
128-
"sphinxcontrib-programoutput",
129-
"sphinxext-opengraph",
130-
"sphinx-github-changelog",
131-
"sphinx-autobuild",
132-
]
116+
dependency-groups = ["docs"]
133117
scripts.linkcheck = "sphinx-build -b=linkcheck docs docs/_build/linkcheck {args}"
134118
scripts.html = "sphinx-build --keep-going -n -T -b=html docs docs/_build/html {args}"
135119
scripts.serve = "sphinx-autobuild -n -T -b=html docs docs/_build/html {args}"

0 commit comments

Comments
 (0)