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/dev/management/security_checker.py
from pyrig.dev.management.security_checker import SecurityChecker as BaseSC
from pyrig.src.processes import Args

class SecurityChecker(BaseSC):
    @classmethod
    def get_run_with_config_args(cls, *args: str) -> Args:
        return super().get_run_with_config_args("-q", *args)