forked from python-attrs/cattrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (54 loc) · 1.05 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
60
# Keep docs in sync with docs env and .readthedocs.yml.
[gh-actions]
python =
3.7: py37, docs
3.8: py38
3.9: py39, lint
3.10: py310
3.11: py311
pypy-3: pypy3
[flake8]
exclude = docs
ignore = E203, E501, W503
[tox]
envlist = pypy3, py37, py38, py39, py310, py311, lint
isolated_build = true
skipsdist = true
[testenv:lint]
basepython = python3.9
extras = dev
allowlist_externals =
make
poetry
commands =
poetry install
make lint
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cattr
extras = dev
allowlist_externals = poetry
commands =
poetry install -v
coverage run --source cattrs -m pytest tests {posargs}
passenv = CI
[testenv:pypy3]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cattr
FAST = 1
extras = dev
allowlist_externals = poetry
commands =
poetry install -v
coverage run --source cattrs -m pytest tests {posargs}
passenv = CI
[testenv:docs]
basepython = python3.8
setenv =
PYTHONHASHSEED = 0
deps =
sphinx
zope.interface
commands =
make docs
allowlist_externals = make