forked from python-attrs/cattrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (42 loc) · 829 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
# Keep docs in sync with docs env and .readthedocs.yml.
[gh-actions]
python =
3.7: py37, docs
3.8: py38
3.9: py39, lint
pypy3: pypy3
[tox]
envlist = pypy3, py37, py38, py39, lint
isolated_build = True
[testenv:lint]
skip_install = true
basepython = python3.9
extras = tests
deps =
flake8
black
isort
commands =
flake8 src tests docs/conf.py
black --check src tests docs/conf.py
isort --check src tests docs/conf.py
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cattr
extras = dev
deps =
poetry
commands =
poetry install -v --no-root
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
whitelist_externals = make