Skip to content

Integrate bandit into the unittest and mypy action #13

@BryceStevenWilley

Description

@BryceStevenWilley

https://bandit.readthedocs.io/en/latest/

Runs quickly, and gives IMO okay suggestions (not critical, but still good coding practices). But, it's an easy lift, and good to have. If you don't want them, you can adjust what warnings you want to see in your pyproject.toml, which we essentially already require for mypy.

[tool.bandit]
exclude_dirs = ["tests", "path/to/file"]
tests = ["B201", "B301"]
skips = ["B101", "B601"]

Or to skip everything:

[tool.bandit]
exclude_dirs=["docassemble"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions