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.
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
/testsfolder only.