-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
59 lines (48 loc) · 1.29 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
[tox]
envlist = py{39,310,311,312,313}-{test,ipykernel,r-irkernel}, lint, type_check, cov
[testenv]
commands =
test: pytest --cov=pixi_kernel tests/unit
ipykernel: python -m coverage run -m unittest tests/integration/ipykernel/kernel.py
r-irkernel: python -m coverage run -m unittest tests/integration/r-irkernel/kernel.py
deps =
test: pytest
test: pytest-asyncio
test: pytest-cov
ipykernel: coverage[toml]
ipykernel: jupyter-kernel-test
r-irkernel: coverage[toml]
r-irkernel: jupyter-kernel-test
setenv =
COVERAGE_FILE = .coverage.{envname}
usedevelop = true # https://stackoverflow.com/a/77187200
[testenv:py{39,310,311,312,313}]
commands = {[testenv]commands}
deps = {[testenv]deps}
runner = uv-venv-runner
[testenv:fmt]
commands =
ruff check . --select I --fix
ruff format .
jlpm run lint
runner = uv-venv-lock-runner
[testenv:lint]
commands =
ruff check .
ruff format --check .
jlpm run lint:check
runner = uv-venv-lock-runner
[testenv:type_check]
commands =
mypy pixi_kernel
runner = uv-venv-lock-runner
[testenv:cov]
commands =
coverage combine
coverage report
coverage html
coverage xml
depends = py{39,310,311,312,313}-{test,ipykernel,r-irkernel}
runner = uv-venv-lock-runner
setenv =
COVERAGE_DEBUG = 1