Skip to content

SecurityChecker (bandit)

Type-safe wrapper for Bandit, the Python security linter.

Bandit finds common security issues in Python code like SQL injection, hardcoded passwords, and unsafe deserialization.

Subclassing Example

# myapp/rig/tools/security_checker.py
from pyrig.rig.tools.security_checker import SecurityChecker as BaseSC
from pyrig.src.processes import Args

class SecurityChecker(BaseSC):
    def run_with_config_args(self, *args: str) -> Args:
        return super().run_with_config_args("-q", *args)