-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
59 lines (51 loc) · 1018 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
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist = py37,py38,mypy,isort,black,flake8,doc
[testenv]
commands =
# this ugly hack is here because:
# https://github.com/tox-dev/tox/issues/149
pip install -q \
-r {toxinidir}/requirements.txt
pip install -q \
-r {toxinidir}/requirements-dev.txt
py.test {posargs:flattering tests}
[testenv:mypy]
deps =
mypy==0.812
commands = mypy --ignore-missing-imports --no-warn-no-return flattering tests
[testenv:flake8]
deps =
flake8
flake8-docstrings
flake8-print>=3.0.1
commands =
flake8 \
flattering \
setup.py \
tests \
{posargs}
[testenv:black]
deps =
black
commands =
black \
flattering \
setup.py \
tests/ \
{posargs}
[testenv:black-check]
deps =
{[testenv:black]deps}
commands =
{[testenv:black]commands} --diff
[testenv:isort]
deps = isort
commands =
isort \
flattering/ \
setup.py \
tests/ \
{posargs}
[testenv:isort-check]
deps = {[testenv:isort]deps}
commands = {[testenv:isort]commands} -c