You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: