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

Improvement bandit config
pull/113/head
Mark Feldhousen 5 years ago committed by GitHub
commit 91b5ccdb15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .bandit.yml
  2. 2
      .pre-commit-config.yaml

@ -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

@ -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…
Cancel
Save