Skip to content

Commit

Permalink
Merge pull request #8 from cisagov/improvement-bandit-config
Browse files Browse the repository at this point in the history
Improvement bandit config
  • Loading branch information
felddy authored May 6, 2019
2 parents e24cfc6 + 1a98e0e commit 91b5ccd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .bandit.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ repos:
rev: 2a1dbab
hooks:
- id: bandit
args:
- --config=.bandit.yml
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
Expand Down

0 comments on commit 91b5ccd

Please sign in to comment.