Skip to content

Skip configuration for certain paths only #457

@andreas-h

Description

@andreas-h

Is your feature request related to a problem? Please describe.
I'm a bit annoyed by the B101 assert_used warnings in my testing code, as pytest recommends (and I follow) using assert statements. It's confusing that bandit complains about them. On the other hand, I want to be warned about using assert in my non-test code.

Describe the solution you'd like
I'd like to be able to ignore pattern B101 for the /tests folder only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions