diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc823799b..216a8c6ee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,7 +42,7 @@ jobs: id: python with: python-version: "3.x" - - uses: pre-commit/action@v3.0.1 + - uses: j178/prek-action@v1 - name: PyLint checks run: pipx run --python "${{ steps.python.outputs.python-path }}" nox -s pylint -- --output-format=github diff --git a/bin/bump_version.py b/bin/bump_version.py index 5c4eb06f8..a7b095f00 100755 --- a/bin/bump_version.py +++ b/bin/bump_version.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # /// script -# dependencies = ["click", "packaging"] +# dependencies = ["click", "packaging", "prek"] # /// @@ -139,7 +139,7 @@ def bump_version() -> None: # run pre-commit to update the README changelog subprocess.run( [ - "pre-commit", + "prek", "run", "--files=docs/changelog.md", ], @@ -149,7 +149,7 @@ def bump_version() -> None: # run pre-commit to check that no errors occurred on the second run subprocess.run( [ - "pre-commit", + "prek", "run", "--files=docs/changelog.md", ], diff --git a/noxfile.py b/noxfile.py index 66f47f3c5..798a3f8f2 100755 --- a/noxfile.py +++ b/noxfile.py @@ -33,8 +33,8 @@ def lint(session: nox.Session) -> None: """ Run the linter. """ - session.install("pre-commit") - session.run("pre-commit", "run", "--all-files", *session.posargs) + session.install("prek") + session.run("prek", "run", "--all-files", *session.posargs) @nox.session(tags=["lint"])