Skip to content

Commit 7ccf58c

Browse files
authored
Merge pull request #143 from Gallaecio/pylint
Add a PyLint CI pipeline
2 parents c172d2c + a69624e commit 7ccf58c

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
@@ -6,6 +6,8 @@ matrix:
66
env: TOXENV=security
77
- python: 3.8
88
env: TOXENV=flake8
9+
- python: 3.8
10+
env: TOXENV=pylint
911
- python: 2.7
1012
env: TOXENV=py27
1113
- python: pypy

pylintrc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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-argument,
34+
unused-variable,
35+
wrong-import-order,
36+
wrong-import-position

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ deps =
3030
commands =
3131
pytest --flake8
3232

33+
[testenv:pylint]
34+
deps =
35+
{[testenv]deps}
36+
pylint
37+
commands =
38+
pylint conftest.py docs setup.py tests w3lib
39+
3340
[docs]
3441
changedir = docs
3542
deps = -rdocs/requirements.txt

0 commit comments

Comments
 (0)