-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
61 lines (56 loc) · 1.13 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
[tox]
requires =
tox>=4.2
virtualenv<20.22.0
env_list =
tests
typecheck
[testenv:tests]
description = run tests
base_python = python2.7
commands =
python -m unittest discover --verbose --start-directory=tests
[testenv:typecheck]
description = run type check on code base
base_python = {[type]base_python}
skip_install = true
deps =
{[type]deps}
commands =
mypy --install-types --non-interactive src
[testenv:stubgen]
description = generate stubs
base_python = {[type]base_python}
skip_install = true
deps =
{[type]deps}
commands =
stubgen --export-less --output=..{/}ignition-api-8.1-stubs{/}stubs src
[testenv:style]
description = apply style
skip_install = true
deps =
black
docformatter
flake8==5.0.4
isort
pydocstyle
sort-all
commands =
bash -c 'sort-all $(find src -name "*.py" -type f)'
black --quiet src
isort src
docformatter \
--in-place \
--wrap-summaries 72 \
--close-quotes-on-newline \
--recursive \
src
flake8 src
pydocstyle src
allowlist_externals =
bash
[type]
base_python = python3.12
deps =
mypy[python2]==0.971