diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d74ce8fcc256dc..12fad966845dea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,4 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - uses: pre-commit/action@v3.0.1 + - uses: j178/prek-action@v1 diff --git a/.github/zizmor.yml b/.github/zizmor.yml index 9b42b47cc85545..fab3abcb355dfe 100644 --- a/.github/zizmor.yml +++ b/.github/zizmor.yml @@ -1,4 +1,4 @@ -# Configuration for the zizmor static analysis tool, run via pre-commit in CI +# Configuration for the zizmor static analysis tool, run via prek in CI # https://woodruffw.github.io/zizmor/configuration/ rules: dangerous-triggers: diff --git a/Doc/Makefile b/Doc/Makefile index 4d605980a62904..50ce862e2c0cd3 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -284,17 +284,17 @@ _ensure-package: venv $(VENVDIR)/bin/python3 -m pip install $(PACKAGE); \ fi -.PHONY: _ensure-pre-commit -_ensure-pre-commit: - $(MAKE) _ensure-package PACKAGE=pre-commit +.PHONY: _ensure-prek +_ensure-prek: + $(MAKE) _ensure-package PACKAGE=prek .PHONY: _ensure-sphinx-autobuild _ensure-sphinx-autobuild: $(MAKE) _ensure-package PACKAGE=sphinx-autobuild .PHONY: check -check: _ensure-pre-commit - $(VENVDIR)/bin/python3 -m pre_commit run --all-files +check: _ensure-prek + $(VENVDIR)/bin/python3 -m prek run --all-files .PHONY: serve serve: