Skip to content

Commit a8627ba

Browse files
committed
Add zizmor hook to pre-commit
1 parent 9d4467f commit a8627ba

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,11 @@ repos:
4747
entry: uv run python scripts/add_latest_release_date.py
4848
files: ^release-notes\.md$
4949
pass_filenames: false
50+
51+
- id: zizmor
52+
name: zizmor
53+
language: python
54+
entry: uv run zizmor .
55+
files: ^\.github\/workflows\/
56+
require_serial: true
57+
pass_filenames: false

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Changelog = "https://github.com/fastapi/fastapi-cli/blob/main/release-notes.md"
6060
dev = [
6161
{ include-group = "tests" },
6262
"prek>=0.2.24,<1.0.0",
63+
"zizmor>=1.24.1",
6364
]
6465
github-actions = [
6566
"smokeshow>=0.5.0",

uv.lock

Lines changed: 20 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)