Skip to content

Commit e447cc1

Browse files
authored
Merge pull request #101 from Gallaecio/pylint
Add a PyLint CI pipeline
2 parents 4bf687a + e9311fe commit e447cc1

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.github/workflows/checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
- python-version: 3
1111
env:
1212
TOXENV: flake8
13+
- python-version: 3
14+
env:
15+
TOXENV: pylint
1316
- python-version: 3
1417
env:
1518
TOXENV: security

pylintrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[MASTER]
2+
persistent=no
3+
4+
[MESSAGES CONTROL]
5+
disable=assignment-from-no-return,
6+
bad-continuation,
7+
bad-whitespace,
8+
c-extension-no-member,
9+
consider-using-in,
10+
fixme,
11+
inconsistent-return-statements,
12+
invalid-name,
13+
missing-class-docstring,
14+
missing-function-docstring,
15+
missing-module-docstring,
16+
multiple-imports,
17+
no-else-return,
18+
no-member,
19+
no-self-use,
20+
raise-missing-from,
21+
redefined-builtin,
22+
redefined-outer-name,
23+
too-few-public-methods,
24+
too-many-arguments,
25+
too-many-branches,
26+
too-many-function-args,
27+
too-many-lines,
28+
too-many-public-methods,
29+
too-many-statements,
30+
undefined-variable,
31+
unidiomatic-typecheck,
32+
unused-argument,
33+
unused-import,
34+
useless-object-inheritance # Required for Python 2 support

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ deps =
1414
commands =
1515
flake8 {posargs: cssselect setup.py tests docs/conf.py}
1616

17+
[testenv:pylint]
18+
deps =
19+
{[testenv]deps}
20+
pylint==2.8.3
21+
commands =
22+
pylint {posargs: cssselect setup.py tests docs}
23+
1724
[testenv:security]
1825
deps =
1926
bandit

0 commit comments

Comments
 (0)