Skip to content

Commit 7be54b5

Browse files
committed
test: Add linters in tox.ini
1 parent 0b28c21 commit 7be54b5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

tox.ini

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,32 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py36,py37
7+
envlist = py36, py37, flake8, pylint
8+
skip_missing_interpreters = true
89

910
[testenv]
1011
deps =
1112
pytest
1213
commands =
1314
pytest
15+
16+
[testenv:flake8]
17+
basepython = python
18+
skip_install = true
19+
deps =
20+
flake8
21+
flake8-docstrings>=0.2.7
22+
flake8-import-order>=0.9
23+
pep8-naming
24+
flake8-colors
25+
commands =
26+
flake8 {toxinidir}/codeforces/ {toxinidir}/test/ {toxinidir}/setup.py
27+
28+
[testenv:pylint]
29+
basepython = python
30+
skip_install = true
31+
deps =
32+
pylint
33+
-r{toxinidir}/requirements.txt
34+
commands =
35+
pylint {toxinidir}/codeforces/

0 commit comments

Comments
 (0)