Skip to content

Commit df90296

Browse files
committed
chore: migrate from pre-commit to prek
1 parent c03fc21 commit df90296

File tree

3 files changed

+27
-57
lines changed

3 files changed

+27
-57
lines changed

doc/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Code style
2727
We use `ruff <https://docs.astral.sh/ruff/>`_ along with other tools to format our code.
2828
Please run ``tox -e style`` on your patches before submitting them.
2929
In order to perform a style check and correction at each commit you can use our
30-
`pre-commit <https://pre-commit.com/>`_ configuration with ``pre-commit install``.
30+
`prek <https://github.com/j178/prek>`_ configuration with ``prek install``.
3131

3232
Documentation
3333
-------------

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dev = [
4444
"mypy>=1.13.0",
4545
"pytest>=8.2.1",
4646
"pytest-cov>=6.0.0",
47-
"pre-commit-uv>=4.1.4",
47+
"prek>=0.1.0",
4848
"tox-uv>=1.16.0",
4949
]
5050
doc = [
@@ -149,7 +149,7 @@ commands = [
149149
skip_install = true
150150
runner = "uv-venv-runner"
151151
commands = [
152-
["pre-commit", "run", "--all-files", "--show-diff-on-failure"],
152+
["prek", "run", "--all-files", "--show-diff-on-failure"],
153153
]
154154

155155
[tool.tox.env.minversions]

uv.lock

Lines changed: 24 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)