-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
54 lines (45 loc) · 971 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
[tox]
envlist = clean, py{310,311,312}, anaconda3, coverage, stats
recreate = true
[testenv]
allowlist_externals = poetry
commands_pre =
poetry install --no-root --sync --with dev
commands =
pytest tests --import-mode importlib
deps =
pytest
pytest-sugar
mock
httpretty
[testenv:coverage]
allowlist_externals = poetry
commands_pre =
poetry install --no-root --sync --with dev
commands =
coverage run -m pytest
deps =
pytest
pytest-sugar
mock
httpretty
coverage
[testenv:clean]
allowlist_externals = poetry, coverage
commands=
coverage erase
[testenv:stats]
allowlist_externals = poetry, coverage
commands=
coverage report --include=rwslib/* --omit=*test*
coverage html
[gh-actions]
python =
3.10: py310, lint, manifest
3.11: py311, lint, manifest
3.12: py312, lint, manifest
pypy3: pypy3
[tool.coverage.run]
omit = [".*", "*/site-packages/*"]
[tool.coverage.report]
fail_under = 80