Possible replacement for buildbot/PyBitmessage-pylint #2224

Merged
PeterSurda merged 2 commits from gitea-93 into v0.6 2024-05-10 02:09:29 +02:00
2 changed files with 20 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
tox -e lint-basic # || exit 1 tox -e lint || exit 1
tox -e py310 tox -e py310

19
tox.ini
View File

@ -26,6 +26,14 @@ commands =
flake8 pybitmessage --count --select=E9,F63,F7,F82 \ flake8 pybitmessage --count --select=E9,F63,F7,F82 \
--show-source --statistics --show-source --statistics
[testenv:lint]
skip_install = true
basepython = python3
deps =
-rrequirements.txt
pylint
commands = pylint --rcfile=tox.ini --exit-zero pybitmessage
[testenv:py27] [testenv:py27]
sitepackages = true sitepackages = true
@ -65,3 +73,14 @@ omit =
[coverage:report] [coverage:report]
ignore_errors = true 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