Skip to content

Commit de9ee28

Browse files
author
Lee Miller
committed
Add a new tox env for linting, currently running pylint,
and the pylint config for python3.
1 parent 8ef9c4d commit de9ee28

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tox.ini

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ commands =
2626
flake8 pybitmessage --count --select=E9,F63,F7,F82 \
2727
--show-source --statistics
2828

29+
[testenv:lint]
30+
skip_install = true
31+
basepython = python3
32+
deps =
33+
-rrequirements.txt
34+
pylint
35+
commands = pylint --rcfile=tox.ini --exit-zero pybitmessage
36+
2937
[testenv:py27]
3038
sitepackages = true
3139

@@ -65,3 +73,14 @@ omit =
6573

6674
[coverage:report]
6775
ignore_errors = true
76+
77+
[pylint.main]
78+
disable =
79+
invalid-name,consider-using-f-string,fixme,raise-missing-from,
80+
super-with-arguments,unnecessary-pass,unknown-option-value,
81+
unspecified-encoding,useless-object-inheritance,useless-option-value
82+
ignore = bitmessagecurses,bitmessagekivy,bitmessageqt,messagetypes,mockbm,
83+
network,plugins,umsgpack,bitmessagecli.py
84+
85+
max-args = 8
86+
max-attributes = 8

0 commit comments

Comments
 (0)