forked from softlayer/softlayer-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (43 loc) · 1.28 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
47
48
49
[tox]
envlist = py27,py33,py34,py35,py36,pypy,analysis,coverage
[flake8]
max-line-length=120
[testenv]
deps = -r{toxinidir}/tools/test-requirements.txt
commands = py.test {posargs:tests}
[testenv:coverage]
basepython = python2.7
commands = py.test {posargs:tests} \
--cov=SoftLayer \
--cov-fail-under=77 \
--cov-report=html \
--cov-report=term-missing
[testenv:analysis]
basepython = python2.7
deps =
-r{toxinidir}/tools/test-requirements.txt
hacking
pylint==1.6.5
commands =
flake8 SoftLayer tests
# redefined-variable-type - This prevents polymorphism
pylint SoftLayer \
-r n \
--ignore=tests,fixtures \
-d too-many-locals \
-d star-args \
-d redefined-variable-type \
-d locally-disabled \
--max-args=20 \
--max-branches=20 \
--max-statements=60 \
--min-public-methods=0 \
--min-similarity-lines=30
# invalid-name - Fixtures don't follow proper naming conventions
# missing-docstring - Fixtures don't have docstrings
pylint SoftLayer/fixtures \
-d invalid-name \
-d missing-docstring \
--max-module-lines=2000 \
--min-similarity-lines=50 \
-r n