-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
77 lines (65 loc) · 1.81 KB
/
tox.ini
File metadata and controls
77 lines (65 loc) · 1.81 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
73
74
75
76
77
[tox]
envlist = py{310,314}, coverage, docs, style
[testenv]
passenv = HOME
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -rrequirements.txt
-rtests/requirements.txt
commands = pytest {posargs:-vv --cov=src/ --cov=tests/ --cov-report=xml tests/}
[testenv:coverage]
setenv = COVERAGE_FILE={toxworkdir}/.coverage
skip_install = True
deps = coverage
commands = coverage combine
coverage report -m
coverage xml
coverage html
[testenv:docs]
skip_install = True
deps = check-manifest
readme-renderer
pip
setuptools
commands = check-manifest
python setup.py check --strict --restructuredtext
[testenv:style]
skip_install = True
deps = ruff
commands = ruff check
ruff format --diff
[testenv:reformat]
skip_install = True
deps = ruff
commands = ruff check --fix
ruff format
[testenv:package-pip]
changedir = {envdir}
commands = pickley --package-manager=pip package "{toxinidir}" -droot/apps -sroot:root/usr/local/bin
[testenv:package-uv]
changedir = {envdir}
commands = pickley --package-manager=uv package "{toxinidir}" -droot/apps -sroot:root/usr/local/bin
[testenv:nuitka]
deps = nuitka
-rrequirements.txt
-rtests/requirements.txt
commands = python -mnuitka --standalone --output-dir=.tox/nuitka/ src/pickley
[testenv:pyinstaller]
usedevelop = True
deps = PyInstaller
commands = pyinstaller --clean -Fy --distpath .tox/pyinstaller/dist --specpath .tox/pyinstaller -n pickley src/pickley/__main__.py
[check-manifest]
ignore = tests/**
get-pickley
requirements.txt
tox.ini
[coverage:run]
concurrency =
thread
patch = subprocess
[coverage:xml]
output = .tox/test-reports/coverage.xml
[coverage:html]
directory = .tox/test-reports/htmlcov
[pytest]
cache_dir = .tox/pytest_cache