From 934ca958838ba227106ed32693d6202b112633ca Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Tue, 26 Mar 2019 11:36:41 +0100 Subject: [PATCH] Add checkqa test environment to tox Add support to run QA tests locally --- .bandit | 2 +- tox.ini | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.bandit b/.bandit index fba0d25..7db131d 100644 --- a/.bandit +++ b/.bandit @@ -1,2 +1,2 @@ [bandit] -exclude: tests +exclude: tests,.tox diff --git a/tox.ini b/tox.ini index 24813fa..0b95c2d 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ usedevelop = true minversion = 1.8 whitelist_externals = sphinx-build envlist = + ckeckqa, readme-py27, py{27,34,35,36,py}-dj{18,110,111} py{34,35,36,37}-dj20 @@ -36,3 +37,11 @@ commands = [testenv:readme-py27] commands = python setup.py check -r -s deps = readme_renderer + +[testenv:checkqa] +commands = + flake8 {toxinidir} + bandit -r {toxinidir} +deps = + flake8 + bandit