-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtox.ini
More file actions
74 lines (64 loc) · 1.24 KB
/
Copy pathtox.ini
File metadata and controls
74 lines (64 loc) · 1.24 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[tox]
envlist = py311, py312, py313, py314
skip_missing_interpreters = true
ignore_basepython_conflict = true
[testenv]
usedevelop = true
setenv =
PYTHONPATH = {toxinidir}/tests
PYTHONUNBUFFERED = yes
SETUPPY_CFLAGS = -DCYTHON_TRACE=1
MPLBACKEND = Agg
deps =
pytest
pytest-cov
pyarrow
commands =
pytest --cov --cov-report=term-missing -vv tests
[testenv:docs]
usedevelop = true
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[testenv:lint]
description = Run linters.
deps =
ruff
commands =
ruff check src tests
[testenv:format]
description = Check code formatting.
deps =
ruff
commands =
ruff format --check src tests
[testenv:build]
description = Build the package.
deps =
build
commands =
python -m build
[testenv:clean]
description = Clean up coverage data.
deps =
coverage
skip_install = true
commands =
coverage erase
[testenv:report]
description = Report coverage.
deps =
coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:codecov]
description = Upload coverage to codecov.
deps =
codecov
skip_install = true
commands =
codecov