forked from python-attrs/cattrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (43 loc) · 835 Bytes
/
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
# 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
pypy3: pypy3
[flake8]
exclude = docs, cattr/vendor
ignore = E203, E501, W503
[tox]
envlist = pypy3, py37, py38, py39, py310, 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 cattr -m pytest tests {posargs}
passenv = CI
[testenv:docs]
basepython = python3.8
setenv =
PYTHONHASHSEED = 0
deps =
sphinx
zope.interface
commands =
make docs
allowlist_externals = make