-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
57 lines (50 loc) · 1.09 KB
/
tox.ini
File metadata and controls
57 lines (50 loc) · 1.09 KB
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
[tox]
envlist = begin,py3{8,10,11,12,13,14},end
py3{8,10,11,12,13,14}-functional
ruff,ruff-check,mypy
minversion = 2.0
skipsdist = false
skip_missing_interpreters = true
[testenv]
runner = uv-venv-lock-runner
extras =
test
setenv =
PACKAGE_NAME=gcl_looper
TEST_PATH={env:PACKAGE_NAME}/tests/unit
functional: TEST_PATH={env:PACKAGE_NAME}/tests/functional
commands =
coverage run -p -m pytest {posargs} --timer-top-n=10 -n 10 {env:TEST_PATH}
[testenv:begin]
runner = uv-venv-lock-runner
envdir = {toxworkdir}/cover
commands =
coverage erase
[testenv:end]
runner = uv-venv-lock-runner
envdir = {toxworkdir}/cover
commands =
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --skip-covered
[testenv:ruff-check]
extras =
ruff
runner = uv-venv-lock-runner
commands = ruff check .
[testenv:ruff]
extras =
ruff
runner = uv-venv-lock-runner
commands = ruff format
[testenv:mypy]
extras =
mypy
runner = uv-venv-lock-runner
commands = mypy -p gcl_looper
[testenv:develop]
runner = uv-venv-lock-runner
extras =
test
usedevelop=true