diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 32007de..1954918 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -2,13 +2,12 @@ ## Linting -Linting is run on the CI using [pre-commit](https://pre-commit.com/), and can be run -locally: +Linting is run on the CI using [prek](https://prek.j178.dev//), and can be run locally: ```sh -pip install pre-commit -pre-commit install # optional: to run when you commit, on just the staged changes -pre-commit run --all-files # to run on all files now +pip install prek +prek install # optional: to run when you commit, on just the staged changes +prek run --all-files # to run on all files now ``` ## Docstrings diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 716b5b1..858b59a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-python@v6 with: python-version: "3.x" - - uses: tox-dev/action-pre-commit-uv@v1 + - uses: j178/prek-action@v1 mypy: runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index a405a7c..58cbf67 100644 --- a/tox.ini +++ b/tox.ini @@ -30,11 +30,9 @@ commands = [testenv:lint] skip_install = true deps = - pre-commit-uv -pass_env = - PRE_COMMIT_COLOR + prek commands = - pre-commit run --all-files --show-diff-on-failure + prek run --all-files --show-diff-on-failure [testenv:mypy] deps =