Skip to content

Commit 20a8443

Browse files
committed
chore: migrate from pre-commit to prek
1 parent b5365e4 commit 20a8443

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
@@ -48,7 +48,7 @@ httpx = [
4848
dev = [
4949
"mypy>=1.13.0",
5050
"portpicker>=1.6.0",
51-
"pre-commit-uv>=4.1.4",
51+
"prek>=0.1.0",
5252
"pytest>=8.2.1",
5353
"pytest-coverage>=0.0",
5454
"pytest-httpserver>=1.0.10",
@@ -145,7 +145,7 @@ commands = [
145145
[tool.tox.env.style]
146146
runner = "uv-venv-runner"
147147
commands = [
148-
["pre-commit", "run", "--all-files", "--show-diff-on-failure"],
148+
["prek", "run", "--all-files", "--show-diff-on-failure"],
149149
]
150150

151151
[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)