Skip to content

Commit 7614c34

Browse files
committed
Add more quality checks to tox config.
- pylint and flake8 for general purpose - mccabe for function complexity - pyroma for packaging/distribution - pep257 for docstring quality
1 parent a026b28 commit 7614c34

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tox.ini

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[tox]
2-
envlist = begin,py{26,27,33,34},py27-django{lts,prev,curr},end
2+
envlist = begin,py{26,27,33,34},py27-django{lts,prev,curr},end,quality
33

44
[testenv]
5-
deps=
5+
deps =
66
coverage
77
djangolts: django==1.4.22
88
djangoprev: django==1.6.11
@@ -18,3 +18,17 @@ commands = coverage erase
1818
commands =
1919
coverage report --omit='.tox/*'
2020
coverage html --omit='.tox/*'
21+
22+
[testenv:quality]
23+
ignore_outcome = True
24+
deps =
25+
mccabe
26+
pylint
27+
flake8
28+
pyroma
29+
pep257
30+
commands =
31+
pylint xmlrunner tests
32+
flake8 --max-complexity 10
33+
pyroma .
34+
pep257

0 commit comments

Comments
 (0)