-
Notifications
You must be signed in to change notification settings - Fork 47
/
tox.ini
62 lines (56 loc) · 1.24 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]
env_list =
eslint
mypy
pylint
pytest
stylelint
minversion = 4.6.0
skip_missing_interpreters = false
[testenv]
description = base environment
package = wheel
wheel_build_env = .pkg
set_env =
NODE_VERSION=18.20.4
NPM_VERSION=10.9.0
deps =
pytest,mypy: -r requirements.txt
eslint,stylelint: nodeenv
commands_pre =
{es,style}lint: ./ci/node-install.sh
allowlist_externals =
{es,style}lint: ./ci/node-install.sh
[testenv:pytest]
description = run the tests with pytest
deps =
{[testenv]deps}
pytest>=6
pytest-mock>=3
pytest-cov>=5
commands = pytest {tty:--color=yes} {posargs}
[testenv:mypy]
description = run mypy
deps =
{[testenv:pytest]deps}
mypy>=1
types-PyYAML>=6.0
types-colorama>=0.4
types-redis>=4.6
types-requests>=2.32
types-six>=1.16
commands = mypy {tty:--color-output:--no-color-output} {posargs: ./tests ./dashboard}
[testenv:pylint]
description = run python black linters
skip_install = true
deps =
black==24.8.0
commands = black --check {posargs: ./tests ./dashboard}
[testenv:eslint]
description = run eslint
skip_install = true
commands = npm run lint:js
[testenv:stylelint]
description = run stylelint
skip_install = true
commands = npm run lint:css