forked from Mergifyio/daiquiri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (35 loc) · 798 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
[tox]
envlist = py37,py38,py39,p310,pep8,docs
[testenv]
whitelist_externals = sh
deps = -e.[test]
commands =
pytest {posargs}
sh -c "for example in examples/*.py; do python $example; done"
sh -c "rm errors.log everything.log"
[testenv:pep8]
basepython = python3.10
deps =
{[testenv]deps}
black
flake8
mypy
flake8-import-order
flake8-blind-except
flake8-builtins
flake8-docstrings
flake8-rst-docstrings
flake8-logging-format
commands =
black --check .
flake8
mypy
[flake8]
show-source = True
exclude=.git,.tox,dist,build,.eggs
application-import-names=daiquiri
# Black ignore those first fours
ignore = E203,E501,W503,E231,A003,D101,D102,D103,D104,D105,D107,A003,D100
[testenv:docs]
deps = sphinx
commands = python setup.py build_sphinx