forked from Avaiga/taipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
82 lines (72 loc) · 1.86 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
[tox]
skipsdist = true
isolated_build = true
envlist = clean, lint, linux, windows, macos, report, without-pyodbc
[pytest]
filterwarnings =
ignore::DeprecationWarning
[testenv]
allowlist_externals = pytest
deps =
pipenv==2023.7.23
mypy
[testenv:lint]
platform = linux
allowlist_externals =
isort
black
flake8
deps =
isort
black
flake8
commands =
isort taipy --check
black taipy tests --check
flake8 taipy tests
[testenv:linux]
platform = linux
commands =
pipenv install --dev
pipenv run python tools/frontend/bundle_build.py
pipenv run ipython kernel install --name "python3" --user
pipenv run playwright install chromium --with-deps
pipenv run mypy --config-file mypy.ini taipy
pipenv run pytest -s --cov=taipy --cov-append --cov-report=xml --cov-report term-missing tests
[testenv:windows]
platform = win32
commands =
pipenv install --dev
pipenv run python tools/frontend/bundle_build.py
pipenv run ipython kernel install --name "python3" --user
pipenv run playwright install chromium --with-deps
pipenv run pytest -s tests
[testenv:macos]
platform = darwin
commands =
pipenv install --dev
pipenv run python tools/frontend/bundle_build.py
pipenv run ipython kernel install --name "python3" --user
pipenv run playwright install chromium --with-deps
pipenv run pytest -s tests
[testenv:report]
depends = linux
platform = linux
deps = coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:clean]
platform = linux
deps = coverage
skip_install = true
commands = coverage erase
[testenv:tests]
commands =
pipenv install --dev
pipenv run python tools/frontend/bundle_build.py
pipenv run ipython kernel install --name "python3" --user
pipenv run playwright install chromium --with-deps
pipenv run pip freeze
pipenv run pytest -s tests