mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 08:30:48 +00:00
Add a configuration file for Bandit, and configure pre-commit to use it.
This commit is contained in:
parent
e24cfc6daf
commit
6a64a512e4
2 changed files with 14 additions and 0 deletions
12
.bandit.yml
Normal file
12
.bandit.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Configuration file for the Bandit python security scanner
|
||||
# https://bandit.readthedocs.io/en/latest/config.html
|
||||
|
||||
# Test are first included by `tests`, and then excluded by `skips`.
|
||||
# If `tests` is empty, all tests are are considered included.
|
||||
|
||||
tests:
|
||||
#- B101
|
||||
#- B102
|
||||
|
||||
skips:
|
||||
#- B101 # skip "assert used" check since assertions are required in pytests
|
|
@ -52,6 +52,8 @@ repos:
|
|||
rev: 2a1dbab
|
||||
hooks:
|
||||
- id: bandit
|
||||
args:
|
||||
- --config=.bandit.yml
|
||||
- repo: https://github.com/ambv/black
|
||||
rev: 19.3b0
|
||||
hooks:
|
||||
|
|
Loading…
Reference in a new issue