-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtox.ini
More file actions
37 lines (32 loc) · 772 Bytes
/
tox.ini
File metadata and controls
37 lines (32 loc) · 772 Bytes
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
[tox]
isolated_build = false
env_list = lint, type, test
toxworkdir = /var/tmp/opensquirrel/.tox
[testenv]
skip_install = true
allowlist_externals = uv
parallel_show_output = true
ignore_errors = true
setenv =
UV_USE_ACTIVE_ENV = 1
USERNAME = {env:USERNAME:test-user}
commands_pre =
uv sync --group export --group qgym_mapper
[testenv:lint]
description = run linters
commands =
uv run ruff check
uv run ruff format --check
[testenv:type]
description = run ty
commands =
uv run ty check opensquirrel tests
[testenv:fix]
description = run fixing linters
commands =
uv run ruff check --fix
uv run ruff format
[testenv:test]
description = run unit tests
commands =
uv run pytest . -vv --cov --cov-report=term-missing --cov-report=xml