forked from ethereum/async-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (51 loc) · 1.6 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
[tox]
envlist=
py{36,37,38,py3}-{asyncio,core,trio}
lint
docs
[isort]
combine_as_imports=True
force_grid_wrap=0
force_sort_within_sections=True
include_trailing_comma=True
known_third_party=hypothesis,pytest,trio,trio_typing,async_generator
known_first_party=async_service
line_length=88
multi_line_output=3
use_parentheses=True
[pydocstyle]
ignore=D1, D200, D202, D203, D205, D212, D213, D214, D215, D400, D404, D405, D406, D407, D408, D409, D410, D411
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
# flake8 has a different opinion on line breaks than black
ignore= W503
[testenv]
usedevelop=True
commands=
core: pytest {posargs:tests/core}
asyncio: pytest {posargs:tests-asyncio}
trio: pytest {posargs:tests-trio}
docs: make build-docs
basepython =
docs: python
py36: python3.6
py37: python3.7
py38: python3.8
pypy3: pypy3
extras=
test
asyncio: test-asyncio
trio: test-trio
docs: doc
whitelist_externals=make
[testenv:lint]
basepython=python
extras=lint
commands=
mypy -p async_service --config-file {toxinidir}/mypy.ini
mypy --config-file {toxinidir}/mypy.ini tests/typing-checks/
flake8 {toxinidir}/async_service {toxinidir}/tests {toxinidir}/tests-asyncio {toxinidir}/tests-trio
isort --recursive --check-only --diff {toxinidir}/async_service {toxinidir}/tests {toxinidir}/tests-asyncio {toxinidir}/tests-trio
pydocstyle {toxinidir}/async_service {toxinidir}/tests {toxinidir}/tests-asyncio {toxinidir}/tests-trio
black --check {toxinidir}/async_service {toxinidir}/tests {toxinidir}/tests-asyncio {toxinidir}/tests-trio