tylerwince / flake8-bandit

Automated security testing using bandit and flake8.
MIT License
110 stars 23 forks source link

added functionality for .bandit config file #9

Closed tylerwince closed 5 years ago

tylerwince commented 5 years ago

This PR will add functionality for 'skips' and 'tests' in a .bandit config file.

The plugin will look for the config file that is closest to the pwd.

.bandit file example

[bandit]
skips = B101,B103

also works:

[bandit]
tests = B101

and if you mess up the prefix (since flake8 makes it an S) we will fix that for you too:

[bandit]
skips = S101