Skip to content

Commit 677a2e5

Browse files
committed
Add a PyLint CI pipeline
1 parent 58d07f9 commit 677a2e5

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ matrix:
88
include:
99
- python: 3.8
1010
env: TOXENV=flake8
11+
- python: 3.8
12+
env: TOXENV=pylint
1113
- python: 2.7
1214
env: TOXENV=py27
1315
- python: pypy

pylintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[MASTER]
2+
persistent=no
3+
4+
[MESSAGES CONTROL]
5+
disable=bad-continuation,
6+
c-extension-no-member,
7+
import-error,
8+
invalid-name,
9+
line-too-long,
10+
missing-class-docstring,
11+
missing-function-docstring,
12+
missing-module-docstring,
13+
no-else-return,
14+
no-member,
15+
no-self-use,
16+
parse-error,
17+
redefined-builtin,
18+
too-few-public-methods,
19+
too-many-arguments,
20+
unidiomatic-typecheck,
21+
useless-object-inheritance, # Required for Python 2 support
22+
wrong-import-position

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ deps =
1515
commands =
1616
pytest --flake8
1717

18+
[testenv:pylint]
19+
basepython = python3.8
20+
deps =
21+
{[testenv]deps}
22+
pylint
23+
commands =
24+
pylint docs parsel setup.py tests
25+
1826
[docs]
1927
changedir = docs
2028
deps =

0 commit comments

Comments
 (0)