Skip to content

Commit 007b7fa

Browse files
authored
Adds github actions static analysis (#1211)
1 parent 5a213d2 commit 007b7fa

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/zizmor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
actions/*: ref-pin
6+
codecov/codecov-action: ref-pin

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ xdist = [
6363
"pytest-xdist",
6464
]
6565
linting = [
66-
"ruff==0.9.5",
6766
"mypy==1.15.0",
67+
"ruff==0.9.5",
68+
"zizmor==1.9.0",
6869
]
6970
[project.urls]
7071
Documentation = "https://pytest-django.readthedocs.io/"

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ commands =
4848
ruff check --diff {posargs:pytest_django pytest_django_test tests}
4949
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
5050
mypy {posargs:pytest_django pytest_django_test tests}
51+
zizmor --persona=regular .github/workflows/deploy.yml .github/workflows/main.yml
5152

5253
[testenv:doc8]
5354
basepython = python3

0 commit comments

Comments
 (0)