Add linting to tox.ini:

use tox.ini as pylintrc, disable invalid-name warning
This commit is contained in:
Dmitri Bogomolov 2021-08-01 17:51:22 +03:00
parent addc742832
commit c5096db0f5
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

15
tox.ini
View File

@ -3,12 +3,19 @@ envlist = reset,py{37,38,39},stats
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
deps = -rrequirements.txt deps =
flake8
pylint
-rrequirements.txt
commands = commands =
coverage run -a -m tests coverage run -a -m tests
[testenv:reset] [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] [testenv:stats]
commands = commands =
@ -23,3 +30,7 @@ omit =
[coverage:report] [coverage:report]
ignore_errors = true ignore_errors = true
[MESSAGES CONTROL]
disable = invalid-name