-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
129 lines (106 loc) · 2.93 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# License: Public Domain / BSD Zero Clause License
# SPDX-License-Identifier: Unlicense OR 0BSD
# ___________________________________________________________________________ #
#### tox
# @see https://tox.readthedocs.io/en/latest/#basic-example
# @see https://tox.readthedocs.io/en/latest/example/package.html
# @see https://github.com/PyCQA/pylint/blob/master/tox.ini
### To run locally ............................................................
# To run
# tox
# To show flake8 errors, need at least -v (if flake8 is enabled)
# tox -v
# To run even if flake8 is not enabled by default
# tox -e flake8
# To run doctests (not integrated yet with tox)
# HXLTM_TESTUM=./testum pytest -vv src/hxltm/bin/ --doctest-modules
### To run with travis ........................................................
# @see .travis.yml
# @see https://github.com/tox-dev/tox-travis
### To run with azure-pipelines ...............................................
# @see https://github.com/tox-dev/azure-pipelines-template
### To run with other enviroments .............................................
# While not tested/documented, tox allow other alternatives, like docker
# conda, etc, etc etc
# @see https://github.com/tox-dev
#### lint
# pylint --disable=W0511,C0302 bin/hxltmcli.py
# pylint --disable=W0511,C0302 bin/hxltmdexml.py
# pylint --disable=W0511,C0302 bin/
#
# See also https://pypi.org/project/autopep8/
# autopep8 --list-fixes bin/hxltmcli.py
# autopep8 --diff bin/hxltmcli.py
# ___________________________________________________________________________ #
# Here is where thing start
[tox]
; envlist = py37,py38,py39,flake8,benchmark
; envlist = py37,py38,py39
# envlist = py37,py38,py39,py310,flake8
envlist = py37,py38,py39,flake8
isolated_build = True
skip_missing_interpreters = true
# @see https://github.com/ymyzk/tox-gh-actions
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
# 3.10: py310
deps =
# same as other, but Orange3 is broken, we will skip it
pytest
pytest-testinfra
flake8
libhxl
pyyaml
langcodes
setenv =
HXLTM_TESTUM = ./testum
commands =
# pytest -vv bin/ --doctest-modules
pytest -vv src/hxltm/bin/ --doctest-modules
# flake8 bin/
[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
pytest
pytest-testinfra
flake8
libhxl
pyyaml
langcodes
python-liquid
setenv =
HXLTM_TESTUM = ./testum
commands =
pytest
# pylint
; [testenv:pylint]
; (...)
[testenv:py37]
deps =
# same as other, but Orange3 is broken, we will skip it
pytest
pytest-testinfra
flake8
libhxl
pyyaml
langcodes
python-liquid
setenv =
HXLTM_TESTUM = ./testum
[testenv:flake8]
deps =
pytest
flake8
libhxl
pyyaml
langcodes
python-liquid
setenv =
HXLTM_TESTUM = ./testum
commands =
# pytest -vv bin/ --doctest-modules
pytest -vv src/hxltm/bin/ --doctest-modules
# flake8 bin/