Skip to content

Add github actions static analysis #1211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rules:
unpinned-uses:
config:
policies:
actions/*: ref-pin
codecov/codecov-action: ref-pin
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ xdist = [
"pytest-xdist",
]
linting = [
"ruff==0.9.5",
"mypy==1.15.0",
"ruff==0.9.5",
"zizmor==1.9.0",
]
[project.urls]
Documentation = "https://pytest-django.readthedocs.io/"
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ commands =
ruff check --diff {posargs:pytest_django pytest_django_test tests}
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
mypy {posargs:pytest_django pytest_django_test tests}
zizmor --persona=regular .github/workflows/deploy.yml .github/workflows/main.yml
Copy link
Preview

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description notes switching --persona=regular to --persona=pedantic, but the command still uses regular. Update the flag to --persona=pedantic to apply the stricter analysis.

Suggested change
zizmor --persona=regular .github/workflows/deploy.yml .github/workflows/main.yml
zizmor --persona=pedantic .github/workflows/deploy.yml .github/workflows/main.yml

Copilot uses AI. Check for mistakes.

Copy link
Member Author

@kingbuzzman kingbuzzman Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL close. I'll do this in another PR to keep the changes to a minimum


[testenv:doc8]
basepython = python3
Expand Down