-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathtox.ini
63 lines (55 loc) · 1.87 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
# tox.ini file for Tox https://tox.wiki/en/latest/config.html
# To perform the same tests done in GitHub Actions by CI-CD but locally (i.e. before pushing), run $ tox --parallel
# At its core tox provides a convenient way to run arbitrary commands in isolated environments to serve as a single
# entry point for build, test and release activities.
# May be run in parallel:
# > tox -p
[tox]
requires =
tox >= 4.20.0
virtualenv >= 20.26.6
env_list =
pre-commit
py312-new-install
py{313,312,311,310,39}-pytest
skip_missing_interpreters = true
[testenv]
# Settings defined here are automatically inherited by individual environments unless overridden
set_env =
PRE_COMMIT_COLOR = always
PYTEST_ADDOPTS = --color=yes
PYTHONPATH = {toxinidir}
PYTHONUTF8 = 1
USERPROFILE = {env:TEMP}
parallel_show_output = true
[testenv:pre-commit]
# Settings defined in the top-level testenv section are automatically inherited if not overwritten
; temp_dir = {work_dir}/.tmp_pre-commit
base_python = python3.12
deps =
-rtests/requirements_pre-commit.txt
temp_dir = {work_dir}/.tmp_pre-commit
skip_install = true
allowlist_externals =
pre-commit
description = Run pre-commit
commands =
pre-commit autoupdate
pre-commit run -a
[testenv:new-install]
# Settings defined in the top-level testenv section are automatically inherited if not overwritten
# Empty values are to remove (override) top level
deps =
build
description = Emulate a new installation using wheel, ensuring e.g. that all packages are installed
commands =
# pip install --upgrade pip build wheel
python -m build -w
pip install --upgrade --find-links={toxinidir}\dist airportsdata
[testenv:pytest]
# Settings defined in the top-level testenv section are automatically inherited if not overwritten
deps =
-rtests/requirements_testing.txt
description = Run tests
commands =
pytest tests/ -v