forked from softlayer/softlayer-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
43 lines (39 loc) · 1.14 KB
/
tox.ini
File metadata and controls
43 lines (39 loc) · 1.14 KB
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
[tox]
envlist = py27,py33,py34,py35,pypy,analysis,coverage
[testenv]
setenv =
LANG = {env:LANG:C.UTF-8}
deps = -r{toxinidir}/tools/test-requirements.txt
commands = py.test tests
[testenv:coverage]
basepython = python2.7
commands = py.test 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
commands =
flake8 SoftLayer
pylint SoftLayer \
-r n \ # Don't show the long report
--ignore=tests,fixtures \
-d too-many-locals \
-d star-args \
-d locally-disabled \
--max-args=20 \
--max-branches=20 \
--max-statements=60 \
--min-public-methods=0 \
--min-similarity-lines=30
pylint SoftLayer/fixtures \
-d invalid-name \ # Fixtures don't follow proper naming conventions
-d missing-docstring \ # Fixtures don't have docstrings
--max-module-lines=2000 \
--min-similarity-lines=50 \
-r n