Add a new tox env for linting, currently running pylint,

and the pylint config for python3.
This commit is contained in:
Lee Miller 2024-04-09 01:32:26 +03:00
parent 8ef9c4d839
commit de9ee28516
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

19
tox.ini
View File

@ -26,6 +26,14 @@ commands =
flake8 pybitmessage --count --select=E9,F63,F7,F82 \
--show-source --statistics
[testenv:lint]
skip_install = true
basepython = python3
deps =
-rrequirements.txt
pylint
commands = pylint --rcfile=tox.ini --exit-zero pybitmessage
[testenv:py27]
sitepackages = true
@ -65,3 +73,14 @@ omit =
[coverage:report]
ignore_errors = true
[pylint.main]
disable =
invalid-name,consider-using-f-string,fixme,raise-missing-from,
super-with-arguments,unnecessary-pass,unknown-option-value,
unspecified-encoding,useless-object-inheritance,useless-option-value
ignore = bitmessagecurses,bitmessagekivy,bitmessageqt,messagetypes,mockbm,
network,plugins,umsgpack,bitmessagecli.py
max-args = 8
max-attributes = 8