forked from softlayer/softlayer-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (42 loc) · 1.32 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tox]
envlist = py26,py27,py33,py34,pypy,pep8
[testenv]
deps =
unittest2
-r{toxinidir}/tools/test-requirements.txt
commands = {envpython} setup.py nosetests []
[testenv:py33]
deps = -r{toxinidir}/tools/test-requirements.txt
commands = {envpython} setup.py nosetests []
[testenv:py34]
deps = -r{toxinidir}/tools/test-requirements.txt
commands = {envpython} setup.py nosetests []
[testenv:pep8]
basepython = python2.7
deps =
hacking
pylint
commands =
flake8 --max-complexity=36 --statistics \
--ignore=H401,H402,H404,H405 \
SoftLayer
pylint SoftLayer \
--ignore=tests,testing \
-d R0903 \ # Too few public methods
-d R0914 \ # Too many local variables
-d R0201 \ # Method could be a function
-d I0011 \ # Locally Disabling
-d W0142 \ # Used * or ** magic
--max-args=20 \
--max-branches=40 \
--max-statements=86 \
--max-module-lines=1200 \
--max-returns=8 \
--min-similarity-lines=50
pylint SoftLayer/testing \
-d C0103 \ # Fixtures don't follow proper naming conventions
-d C0111 \ # Fixtures don't have docstrings
-d I0011 \ # Locally Disabling
--max-module-lines=2000 \
--min-similarity-lines=50 \
-r n