From c5096db0f544c4c15c3fc3832cee85967ea97f51 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sun, 1 Aug 2021 17:51:22 +0300 Subject: [PATCH] Add linting to tox.ini: use tox.ini as pylintrc, disable invalid-name warning --- tox.ini | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 040c05f..32fb7cd 100644 --- a/tox.ini +++ b/tox.ini @@ -3,12 +3,19 @@ envlist = reset,py{37,38,39},stats skip_missing_interpreters = true [testenv] -deps = -rrequirements.txt +deps = + flake8 + pylint + -rrequirements.txt commands = coverage run -a -m tests [testenv:reset] -commands = coverage erase +commands = + coverage erase + flake8 minode --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 minode --count --statistics + pylint minode --exit-zero --rcfile=tox.ini [testenv:stats] commands = @@ -23,3 +30,7 @@ omit = [coverage:report] ignore_errors = true + + +[MESSAGES CONTROL] +disable = invalid-name