From de9ee28516b3dd095102851a6dd025e9bd003724 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 9 Apr 2024 01:32:26 +0300 Subject: [PATCH 1/2] Add a new tox env for linting, currently running pylint, and the pylint config for python3. --- tox.ini | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tox.ini b/tox.ini index fec3a54c..3524bb57 100644 --- a/tox.ini +++ b/tox.ini @@ -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 -- 2.45.1 From 3b3667679377b3fb997501b647590189e8ffd4b5 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 9 Apr 2024 01:35:32 +0300 Subject: [PATCH 2/2] Run the lint env in the jammy buildbot dir --- .buildbot/tox-jammy/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildbot/tox-jammy/test.sh b/.buildbot/tox-jammy/test.sh index 3de38252..ab6134c4 100755 --- a/.buildbot/tox-jammy/test.sh +++ b/.buildbot/tox-jammy/test.sh @@ -1,4 +1,4 @@ #!/bin/sh -tox -e lint-basic # || exit 1 +tox -e lint || exit 1 tox -e py310 -- 2.45.1