@@ -6,6 +6,7 @@ envlist = py36, py37, py38, pypy3, docs
6
6
skip_missing_interpreters = True
7
7
requires = pip >= 19.0.0
8
8
9
+
9
10
[travis]
10
11
python =
11
12
3.6: py36, docs
@@ -14,13 +15,15 @@ python =
14
15
pypy3: pypy3
15
16
16
17
18
+
17
19
[build-system]
18
20
requires = [
19
21
setuptools >= 46.1.3
20
22
wheel >= 0.34.2
21
23
]
22
24
build-backend = " setuptools"
23
25
26
+
24
27
[testenv]
25
28
# Install test requirements
26
29
deps = -r{toxinidir}/tests/requirements.txt
@@ -30,13 +33,15 @@ commands =
30
33
; Run tests
31
34
python -m pytest --cov =domdf_python_tools --reruns 1 --reruns-delay 30 -r aR tests/
32
35
36
+
33
37
[testenv:docs]
34
38
basepython = python3.6
35
39
changedir ={toxinidir}/doc-source
36
40
deps = -r{toxinidir}/requirements.txt
37
41
-r{toxinidir}/doc-source/requirements.txt
38
42
commands = sphinx-build -M html . ./build
39
43
44
+
40
45
[testenv:bumpversion]
41
46
skip_install = true
42
47
deps = bump2version
@@ -49,52 +54,48 @@ deps = setuptools >= 46.1.3
49
54
wheel >= 0.34.2
50
55
commands = python setup.py sdist bdist_wheel
51
56
57
+
52
58
[testenv:lint]
53
59
basepython = python3.6
54
60
ignore_errors =true
55
61
skip_install = true
56
62
deps =
57
63
autopep8 >=1.5.2
58
64
flake8 >=3.8.2
59
- commands =
60
- flake8 domdf_python_tools
61
- flake8 tests
65
+ commands = flake8 domdf_python_tools tests
66
+
62
67
63
68
[testenv:yapf]
64
69
basepython = python3.6
65
70
skip_install = true
66
71
ignore_errors =true
67
- deps =
68
- yapf
69
- commands =
70
- yapf -i domdf_python_tools --recursive
71
- yapf -i --recursive tests
72
+ deps = yapf
73
+ commands = yapf -i --recursive domdf_python_tools tests
74
+
72
75
73
76
[testenv:isort]
74
77
basepython = python3.6
75
78
skip_install = true
76
79
ignore_errors =true
77
80
deps =
78
81
isort
79
- commands =
80
- isort -rc domdf_python_tools
81
- isort -rc tests
82
+ commands = isort --recursive domdf_python_tools tests
83
+
82
84
83
85
[testenv:mypy]
84
86
basepython = python3.6
85
87
skip_install = true
86
88
ignore_errors =true
87
- deps =
88
- mypy
89
- commands =
90
- mypy --recursive domdf_python_tools
91
- mypy --recursive tests
89
+ deps = mypy
90
+ commands = mypy domdf_python_tools tests
91
+
92
92
93
93
[flake8]
94
94
max-line-length = 120
95
95
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 E101 E111 E112 E113 E121 E122 E124 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 W292 E265
96
96
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
97
97
98
+
98
99
[mypy]
99
100
python_version = 3.6
100
101
ignore_missing_imports = True
0 commit comments