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
42 lines (38 loc) · 1.21 KB
/
tox.ini
File metadata and controls
42 lines (38 loc) · 1.21 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
[tox]
envlist = py26,py27,py33,py34,pypy,analysis
[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:analysis]
basepython = python2.7
deps =
hacking
pylint
commands =
flake8 SoftLayer
pylint SoftLayer \
-r n \ # Don't show the long report
--ignore=tests,fixtures \
-d too-many-locals \ # Too many local variables
-d star-args \ # Used * or ** magic
-d I0011 \ # Locally Disabling
--max-args=20 \
--max-branches=40 \
--max-statements=86 \
--max-returns=8 \
--min-public-methods=0 \
--min-similarity-lines=30
pylint SoftLayer/testing/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