forked from softlayer/softlayer-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
62 lines (52 loc) · 1.59 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
50
51
52
53
54
55
56
57
58
59
60
61
62
[tox]
envlist = py38,py39,py310,py311,py312,pypy3,analysis,coverage,docs
[flake8]
max-line-length=120
[testenv]
deps = -r{toxinidir}/tools/test-requirements.txt
commands = py.test {posargs:tests}
[testenv:coverage]
commands = py.test {posargs:tests} \
--cov=SoftLayer \
--cov-fail-under=77 \
--cov-report=html \
--cov-report=term-missing
[testenv:analysis]
deps =
-r{toxinidir}/tools/test-requirements.txt
hacking
pylint
commands =
flake8 SoftLayer tests
# redefined-variable-type - This prevents polymorphism
pylint SoftLayer \
-r n \
--ignore=tests,fixtures \
-d too-many-locals \
-d locally-disabled \
-d no-else-return \
-d len-as-condition \
-d useless-object-inheritance \
-d consider-using-in \
-d consider-using-dict-comprehension \
-d useless-import-alias \
-d consider-using-f-string \
--max-args=25 \
--max-branches=20 \
--max-statements=65 \
--min-public-methods=0 \
--max-public-methods=35 \
--min-similarity-lines=30 \
--max-line-length=120
# 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 \
--max-line-length=120 \
-r n
[testenv:docs]
commands =
python ./docCheck.py