Open edgarriba opened 3 years ago
I had the same problem when I was attempting to implement Bandit recently, but it's due to the fact that the latest
docs are actually what's currently on master
. The docs for the current 1.7.0 release are more in line with stable
, i.e. https://bandit.readthedocs.io/en/stable/config.html
Until Bandit gets a new release you'll have to use a .bandit.yml
file to configure it.
@amrishparmar thanks so much , I’ll keep in mind
@adambenali regarding release, even now at release 1.7.4 the mentioned configuration is not working.
When using the config:
[tool.bandit.assert_used]
skips = ["*/*_test.py", "*/test_*.py"]
skipping works without any issue on bandit 1.7.5
Describe the bug
Hi ! I'm following the documentation** to provide a custom setup for bandit to exclude some tests (B101) in our testing framework but I get the following error:
Where the ppyproject.toml is the following
**https://bandit.readthedocs.io/en/latest/config.html
Reproduction steps
Expected behavior
Not crash
Bandit version
1.7.0 (Default)
Python version
3.8
Additional context
No response