title: How can I make bandit skip B101 within tests?
body: <p>I'm using bandit to check my code for potential security issues:</p>
  <pre><code>bandit -r git-repository/
  </code></pre>
  <p>However, the most common item found by bandit is <a href="https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html" rel="noreferrer">B101</a>. It is triggered by assert statements within tests. I use pytest, so this is not a concern, but a good practice. I've now created a <code>.bandit</code> file with</p>
  <pre><code>[bandit]
  skips: B101
  </code></pre>
  <p>But that also skips a lot of other code. Is there a solution to this issue?</p>