From 842ddd008ae077d38de3ca7ec1422500cef9dc9d Mon Sep 17 00:00:00 2001 From: Austin Byers Date: Wed, 10 Jan 2018 10:44:20 -0800 Subject: [PATCH] Move .bandit into setup.cfg and add bandit to .travis.yml --- .bandit | 10 ---------- .travis.yml | 1 + setup.cfg | 11 +++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 .bandit diff --git a/.bandit b/.bandit deleted file mode 100644 index 40156e173..000000000 --- a/.bandit +++ /dev/null @@ -1,10 +0,0 @@ -[bandit] -# Skip the venv/ and tests/ directories when scanning. -exclude: venv,tests - -# Skip the following tests: -# -# - [B404:blacklist] Consider possible security implications associated with subprocess module. -# Severity: Low Confidence: High -# There are other warnings specific to subprocess calls (e.g. B603, B607) -skips: B404 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index d567eb331..3bf0f390c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,5 +13,6 @@ script: - ./manage.py lambda test --processor all - sphinx-build -W docs/source docs/build - ./tests/scripts/pylint.sh + - bandit --ini setup.cfg -r . after_success: coveralls diff --git a/setup.cfg b/setup.cfg index f958e0838..98fd6efb4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,6 +13,17 @@ nocapture=1 [pycodestyle] max-line-length=90 +[bandit] +# Skip the venv/ and tests/ directories when scanning. +exclude: venv,tests + +# Skip the following tests: +# +# - [B404:blacklist] Consider possible security implications associated with subprocess module. +# Severity: Low Confidence: High +# There are other warnings specific to subprocess calls (e.g. B603, B607) +skips: B404 + [yapf] COLUMN_LIMIT=100