-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
64 lines (59 loc) · 1.2 KB
/
Copy pathtox.ini
File metadata and controls
64 lines (59 loc) · 1.2 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
[tox]
minversion = 4.0
envlist =
py313
mypy-{pkg,test,examples}
pre-commit
skip_missing_interpreters = true
[base]
setenv =
PYTHONHASHSEED = 100
[testenv]
package = wheel
groups =
test
coverage
setenv =
{[base]setenv}
COVERAGE_CORE=sysmon
COV_CORE_CONFIG={toxinidir}{/}pyproject.toml
commands =
pytest -p 'no:cacheprovider' {tty:--color=yes} {posargs:-n auto --cov --cov-report=html}
[testenv:build]
skip_install = true
groups =
build
setenv =
{[base]setenv}
passenv =
SOURCE_DATE_EPOCH
commands =
python -m build --outdir {toxinidir}{/}dist
[testenv:mypy-{pkg,test,examples}]
package = wheel
groups =
mypy
test: test
setenv =
{[base]setenv}
MYPY_CACHE_DIR = {envtmpdir}{/}.mypy_cache
MYPY_OPTS = --config-file {toxinidir}{/}pyproject.toml
commands =
# package
full: mypy {env:MYPY_OPTS} -p pydiamond
# tests
test: mypy {env:MYPY_OPTS} {toxinidir}{/}tests
# examples
examples: mypy {env:MYPY_OPTS} {toxinidir}{/}demo.py
[testenv:pre-commit]
skip_install = true
groups =
pre-commit
setenv =
{[base]setenv}
SKIP=mypy
passenv =
PRE_COMMIT_HOME
XDG_CACHE_HOME
commands =
pre-commit run {posargs:--all-files}