When doing a single file, bandit doesn't use the .bandit file in the directory. If it's agreed that it should work like this, I'm happy to do a PR to fix it.
With a config file tests/.bandit, running
has different results than
bandit -r tests/test_cli.py
Expected behavior
I would expect bandit to search each directory to root for a .bandit file and apply the first found to the test run.
Bandit version
When doing a single file, bandit doesn't use the .bandit file in the directory. If it's agreed that it should work like this, I'm happy to do a PR to fix it.
With a config file
tests/.bandit, runninghas different results than
Expected behavior
I would expect bandit to search each directory to root for a .bandit file and apply the first found to the test run.
Bandit version