From 8fe97473f1ca5db8e9603d430b4ea0c257e505a3 Mon Sep 17 00:00:00 2001 From: Adrian Czarnecki Date: Sun, 22 Aug 2021 13:02:21 -0700 Subject: [PATCH] Fix testes Change-Id: I02df01d7ea55533b3c7f2b2b91a21eb05264700a --- lower-constraints.txt | 3 +-- test-requirements.txt | 4 +--- tox.ini | 9 ++++++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index c72e02b4..50f02321 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -8,13 +8,12 @@ docutils==0.11 elasticsearch==2.0.0 extras==1.0.0 fixtures==3.0.0 -flake8==2.5.5 +flake8==2.6.0 future==0.16.0 gevent==1.2.2 gitdb==0.6.4 GitPython==1.0.1 greenlet==0.4.10 -hacking==0.12.0 influxdb==2.9.2 iso8601==0.1.11 kazoo==2.2 diff --git a/test-requirements.txt b/test-requirements.txt index be25cb7b..075d5a8d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,15 +1,13 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -bandit>=1.1.0 # Apache-2.0 -flake8<2.6.0,>=2.5.4 # MIT +bandit!=1.6.0,>=1.1.0,<=1.6.2 # Apache-2.0 hacking>=1.1.0,<1.2.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 mock>=2.0.0 # BSD oslotest>=3.2.0 # Apache-2.0 stestr>=1.0.0 # Apache-2.0 docutils>=0.11 # OSI-Approved Open Source, Public Domain -pycodestyle>=2.5.0 # MIT # release notes sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD diff --git a/tox.ini b/tox.ini index 3f02bf5f..4b02951c 100644 --- a/tox.ini +++ b/tox.ini @@ -80,13 +80,20 @@ commands = max-line-length = 100 # TODO: ignored checks should be enabled in the future # H405 multi line docstring summary not separated with an empty line -ignore = F821,H405,H306,E302 +ignore = F821,H405,H306,E302,M001 exclude=.venv,.git,.tox,dist,*egg,build [bandit] commands = # B303 cassandra metrics repository uses SHA1 for metric_id bandit -r monasca_persister -n5 -s B303 -x monasca_persister/tests +[flake8:local-plugins] +xtension = + + +def factory(register): + M001 = checks:no_mutable_default_args +paths = ./monasca_persister/hacking [hacking] local-check-factory = monasca_persister.hacking.checks.factory