forked from fonttools/ufoLib2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (56 loc) · 1.21 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
61
62
[tox]
envlist = lint, py3{8,9,10,11}-cov, htmlcov
isolated_build = true
[testenv]
deps =
-r requirements.txt
-r requirements-dev.txt
commands =
nocattrs: pip uninstall -y cattrs
noorjson: pip uninstall -y orjson
nomsgpack: pip uninstall -y msgpack
cov: coverage run --parallel-mode -m pytest {posargs}
!cov: pytest {posargs}
[testenv:htmlcov]
basepython = python3
deps =
coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
[testenv:lint]
skip_install = true
deps =
-r requirements.txt
-r requirements-dev.txt
commands =
black --check --diff .
isort --skip-gitignore --check-only --diff src tests
mypy --strict src tests
flake8
[testenv:docs]
deps =
-r docs/requirements.txt
skip_install = true
commands =
sphinx-build -W -j auto docs/source docs/build
[pytest]
minversion = 3.0
testpaths =
tests
ufoLib2
addopts =
-r a
--doctest-modules
--doctest-ignore-import-errors
--pyargs
doctest_optionflags =
ALLOW_UNICODE
ELLIPSIS
[flake8]
select = C, E, F, W, B, B9
ignore = E203, E266, E501, W503
max-line-length = 80
exclude = .git, __pycache__, build, dist, .eggs, .tox, venv, venv*, .venv, .venv*