Skip to content

Commit 9854825

Browse files
committed
feat: replace pre-commit with prek
1 parent 1e17ccd commit 9854825

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,4 @@ jobs:
2222
- uses: actions/checkout@v4
2323
with:
2424
persist-credentials: false
25-
- uses: actions/setup-python@v5
26-
with:
27-
python-version: "3.x"
28-
- uses: pre-commit/action@v3.0.1
25+
- uses: j178/prek-action@v1

.github/zizmor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Configuration for the zizmor static analysis tool, run via pre-commit in CI
1+
# Configuration for the zizmor static analysis tool, run via prek in CI
22
# https://woodruffw.github.io/zizmor/configuration/
33
rules:
44
dangerous-triggers:

Doc/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,17 @@ _ensure-package: venv
284284
$(VENVDIR)/bin/python3 -m pip install $(PACKAGE); \
285285
fi
286286

287-
.PHONY: _ensure-pre-commit
288-
_ensure-pre-commit:
289-
$(MAKE) _ensure-package PACKAGE=pre-commit
287+
.PHONY: _ensure-prek
288+
_ensure-prek:
289+
$(MAKE) _ensure-package PACKAGE=prek
290290

291291
.PHONY: _ensure-sphinx-autobuild
292292
_ensure-sphinx-autobuild:
293293
$(MAKE) _ensure-package PACKAGE=sphinx-autobuild
294294

295295
.PHONY: check
296-
check: _ensure-pre-commit
297-
$(VENVDIR)/bin/python3 -m pre_commit run --all-files
296+
check: _ensure-prek
297+
$(VENVDIR)/bin/python3 -m prek run --all-files
298298

299299
.PHONY: serve
300300
serve:

0 commit comments

Comments
 (0)