From 67f26e25dd5fffde7909b2bb67ff933810c09aa2 Mon Sep 17 00:00:00 2001 From: Berend Klein Haneveld Date: Mon, 13 Jul 2026 10:29:32 +0200 Subject: [PATCH] Migrate from pre-commit to prek prek is a drop-in replacement for pre-commit and reuses the existing .pre-commit-config.yaml unchanged. Swap the dev dependency and update the install command in the README. Co-Authored-By: Claude Opus 4.8 --- README.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebf83d2..8d653d4 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ uv run python examples/pyside/layout-example.py # Run test suite: uv run pytest # Install git pre-commit hooks to make sure tests/linting passes before committing -uv run pre-commit install +uv run prek install ``` diff --git a/pyproject.toml b/pyproject.toml index 7b6b717..29865ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ pyside = ["PySide6>=6.6.2,!=6.8.3,!=6.9.0 ; python_version < '3.15'"] [dependency-groups] dev = [ "colorlog", - "pre-commit", + "prek", "pytest", "pytest-benchmark", "pytest-cov",