1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-11-22 16:40:48 +00:00

Merge pull request #8 from cisagov/improvement-bandit-config

Improvement bandit config
This commit is contained in:
Mark Feldhousen 2019-05-06 10:43:05 -04:00 committed by GitHub
commit 91b5ccdb15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

12
.bandit.yml Normal file
View file

@ -0,0 +1,12 @@
# Configuration file for the Bandit python security scanner
# https://bandit.readthedocs.io/en/latest/config.html
# Tests 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

View file

@ -52,6 +52,8 @@ repos:
rev: 2a1dbab rev: 2a1dbab
hooks: hooks:
- id: bandit - id: bandit
args:
- --config=.bandit.yml
- repo: https://github.com/ambv/black - repo: https://github.com/ambv/black
rev: 19.3b0 rev: 19.3b0
hooks: hooks: