Skip to content

Commit 8abaacc

Browse files
committed
Add zizmor to lint stage
1 parent 3abb5f8 commit 8abaacc

3 files changed

Lines changed: 38 additions & 3 deletions

File tree

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ ci-install:
2222

2323
UV_RUN_CMD := uv run
2424
.PHONY: lint
25-
lint: lint-python # TODO: Add mbake
25+
lint: lint-python lint-gh-actions # TODO: Add mbake
26+
27+
.PHONY: lint-gh-actions
28+
lint-gh-actions:
29+
$(UV_RUN_CMD) zizmor --pedantic --collect=all --strict-collection .
2630

2731
.PHONY: lint-python
2832
lint-python:
@@ -31,7 +35,11 @@ lint-python:
3135
$(UV_RUN_CMD) basedpyright
3236

3337
.PHONY: ci-lint
34-
ci-lint: ci-lint-python # TODO: Add mbake
38+
ci-lint: ci-lint-python ci-lint-gh-actions # TODO: Add mbake
39+
40+
.PHONY: ci-lint-gh-actions
41+
ci-lint-gh-actions:
42+
$(UV_RUN_CMD) zizmor --pedantic --collect=all --strict-collection --fix .
3543

3644
.PHONY: ci-lint-python
3745
ci-lint-python:

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ test = [
5353
"vcrpy>=8.1.1",
5454
]
5555
release = ["build>=1.5.0", "jinja2>=3.1.6", "sphinx>=9.1.0", "twine>=6.2.0"]
56-
lint = ["basedpyright>=1.39.4", "ruff>=0.15.12", "mbake>=1.4.6"]
56+
lint = [
57+
"basedpyright>=1.39.4",
58+
"ruff>=0.15.12",
59+
"mbake>=1.4.6",
60+
"zizmor==1.24.1",
61+
]
5762
dev = [
5863
"rich>=15.0.0",
5964
{ include-group = "test" },

uv.lock

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)