Skip to content
Open
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
13 changes: 10 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,20 @@ repos:
# - id: pip-audit
# args: ["--desc", "on"]

- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
# Installed from PyPI via a local hook: the upstream PyCQA/bandit pre-commit
# repo builds from a shallow git clone where pbr resolves the version to
# 0.0.0, which breaks plugin-id registration ("Unknown test found in
# profile: B104"). A local python hook pulls a properly built wheel instead.
- repo: local
hooks:
- id: bandit
name: bandit
entry: bandit
language: python
types: [python]
args: [-c, pyproject.toml, -q]
exclude: ^tests/
additional_dependencies: ["bandit[toml]"]
additional_dependencies: ["bandit[toml]==1.9.4"]

# ============================================
# Type checking
Expand Down