Skip to content

Silence bandit FPs in --check paths - #143

Merged
szymoniwacz merged 4 commits into
mainfrom
fix/bandit-nosec-check-fp
Aug 10, 2026
Merged

szymoniwacz merged 4 commits into
mainfrom
fix/bandit-nosec-check-fp

Conversation

@szymoniwacz

@szymoniwacz szymoniwacz commented Aug 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • nosec B404/B603 for controlled subprocess usage in checks.py
  • PILLAR_MAINTAINABLE constant (nosec B105) in review_quality.py
  • Add bandit to [dev], CI, README/stack-profile gates, and a pytest dogfood check for the --check modules

Test plan

  • bandit -r src/diffrat/checks.py src/diffrat/review_quality.py src/diffrat/scoring.py exits 0
  • pytest tests/test_bandit_self.py passes when bandit is installed
  • CI validate includes Bandit step
  • diffrat review --range HEAD~3..HEAD --check exits 0 when bandit is on PATH
  • full pytest on CI green after push

Base automatically changed from fix/ruff-format-src-tests to main August 10, 2026 08:55
@szymoniwacz
szymoniwacz merged commit 2112aad into main Aug 10, 2026
1 check passed
@szymoniwacz
szymoniwacz deleted the fix/bandit-nosec-check-fp branch August 10, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant