Skip to content

Commit d519d74

Browse files
committed
Add zizmor to lint stage
1 parent eb66288 commit d519d74

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 --frozen --no-config
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:
@@ -32,7 +36,11 @@ lint-python:
3236

3337
UV_RUN_CMD := uv run --frozen --no-config
3438
.PHONY: ci-lint
35-
ci-lint: ci-lint-python # TODO: Add mbake
39+
ci-lint: ci-lint-python ci-lint-gh-actions # TODO: Add mbake
40+
41+
.PHONY: ci-lint-gh-actions
42+
ci-lint-gh-actions:
43+
$(UV_RUN_CMD) zizmor --pedantic --collect=all --strict-collection --fix .
3644

3745
.PHONY: ci-lint-python
3846
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)