forked from whatshap/whatshap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (51 loc) · 1.19 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
[tox]
envlist = py37,py38,py39,py310,flake8,docs,twinecheck,black
isolated_build = True
[testenv]
usedevelop = True
deps =
pytest
Cython>=0.29.17 # This can possibly be removed when tox 4 comes out
# See pyproject.toml for pytest configuration
commands = pytest
[testenv:docs]
basepython = python3.7
deps =
sphinx
sphinx_issues
sphinx_better_subsection
commands =
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
[testenv:twinecheck]
basepython = python3.7
deps =
twine
build
commands =
python -m build --sdist --outdir {envtmpdir}/dist
twine check {envtmpdir}/dist/*
[testenv:black]
basepython = python3.7
deps = black==22.3.0
skip_install = true
commands = black --check whatshap/ tests/ setup.py
[testenv:flake8]
basepython = python3.7
deps = flake8
skip_install = true
commands = flake8 whatshap/ tests/ setup.py
[testenv:mypy]
basepython = python3.7
deps = mypy
commands = mypy whatshap/
[flake8]
max-line-length = 120
max-complexity = 33
# E203 whitespace before ':' -- must be ignored for Black
#
# The following ignores should be removed over time:
#
# E501 line too long
# E741 ambiguous variable name 'l'
#
extend-ignore = E203,E501,E741