From b67f86146e6dc68a04f8f8bfe2e7607b10685fc7 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Wed, 17 Nov 2021 20:35:53 +0200 Subject: [PATCH] Add bandit and flake8 lint run into tox.ini --- setup.cfg | 1 + tox.ini | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index a4e0547c..09db975f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,6 +8,7 @@ max-line-length = 119 [flake8] max-line-length = 119 +exclude = bitmessagecli.py,bitmessagecurses,bitmessageqt,tests,umsgpack ignore = E722,F841,W503 # E722: pylint is preferred for bare-except # F841: pylint is preferred for unused-variable diff --git a/tox.ini b/tox.ini index 632c7381..4f566c22 100644 --- a/tox.ini +++ b/tox.ini @@ -23,8 +23,16 @@ skip_install = true commands = python pybitmessage/bitmessagemain.py -t [testenv:reset] -deps = coverage -commands = coverage erase +deps = + coverage + bandit + flake8 +commands = + coverage erase + bandit -r --exit-zero -s B105,B301,B411,B413,B608 \ + -x checkdeps.*,bitmessagecurses,bitmessageqt,tests pybitmessage + flake8 pybitmessage --count --select=E9,F63,F7,F82 \ + --show-source --statistics [testenv:stats] deps = coverage