-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (43 loc) · 900 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
[tox]
min_version = 4.0
envlist = py{38,39,310,311}, lint, build
[testenv]
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest
[testenv:lint]
allowlist_externals = poetry
description = lint project
commands_pre =
poetry install
commands =
poetry run ruff format
poetry run ruff check --fix
[testenv:build]
allowlist_externals = poetry
description = run build
commands_pre =
poetry install
commands =
poetry build
[testenv:test]
allowlist_externals = poetry
description = run unit tests
commands_pre =
poetry install
commands =
poetry run pytest
[pytest]
addopts = --import-mode=importlib
pythonpath = ../src/applause/pytest_applause_reporter
testpaths = tests
[testenv:py38]
base_python = python3.8
[testenv:py39]
base_python = python3.9
[testenv:py310]
base_python = python3.10
[testenv:py311]
base_python = python3.11