Skip to content

Commit 6b9be9a

Browse files
committed
Add a PyLint CI pipeline
1 parent 165f165 commit 6b9be9a

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ language: python
22
sudo: false
33
matrix:
44
include:
5+
- python: 3.7
6+
env: TOXENV=pylint
57
- python: 2.7
68
env: TOXENV=py27
79
- python: 2.7

pylintrc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[MASTER]
2+
persistent=no
3+
4+
[MESSAGES CONTROL]
5+
disable=bad-continuation,
6+
bad-whitespace,
7+
consider-using-in,
8+
expression-not-assigned,
9+
fixme,
10+
import-error,
11+
import-outside-toplevel,
12+
inconsistent-return-statements,
13+
invalid-name,
14+
len-as-condition,
15+
line-too-long,
16+
missing-class-docstring,
17+
missing-function-docstring,
18+
missing-module-docstring,
19+
multiple-imports,
20+
no-else-continue,
21+
no-else-return,
22+
no-self-use,
23+
redefined-builtin,
24+
redefined-outer-name,
25+
too-many-arguments,
26+
too-many-branches,
27+
too-many-public-methods,
28+
trailing-comma-tuple,
29+
trailing-newlines,
30+
trailing-whitespace,
31+
unidiomatic-typecheck,
32+
unreachable,
33+
unused-variable,
34+
wrong-import-order,
35+
wrong-import-position

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ commands =
1515
--doctest-modules \
1616
--cov=w3lib --cov-report=term \
1717
{posargs:w3lib tests}
18+
19+
[testenv:pylint]
20+
basepython = python3.7
21+
deps =
22+
{[testenv]deps}
23+
pylint
24+
commands =
25+
pylint conftest.py docs setup.py tests w3lib

0 commit comments

Comments
 (0)