-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
54 lines (49 loc) · 924 Bytes
/
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
[tox]
requires =
tox>=4.2
virtualenv<20.22.0
env_list =
install
typecheck
[testenv:install]
description = install package
base_python = python2.7
[testenv:typecheck]
description = run type check on code base
base_python = {[type]base_python}
skip_install = true
deps =
{[type]deps}
commands =
mypy src
[testenv:stubgen]
description = generate stubs
base_python = {[type]base_python}
skip_install = true
deps =
{[type]deps}
commands =
stubgen --export-less --output=..{/}incendium-stubs{/}stubs src
[testenv:style]
description = apply style
skip_install = true
deps =
black
flake8==5.0.4
isort
pydocstyle
sort-all
ssort
commands =
bash -c 'sort-all $(find src -name "*.py" -type f)'
ssort src
black --quiet src
isort src
flake8 src
pydocstyle src
allowlist_externals =
bash
[type]
base_python = python3.12
deps =
ignition-api-stubs