-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
49 lines (43 loc) · 1.15 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
[tox]
envlist = cover, style
[testenv]
# Consolidate all deps here instead of separately in test/style/cover so we
# have a single env to work with, which makes debugging easier (like which env?).
# Not as clean but easier to work with during development, which is better.
deps =
aioresponses
flake8
mock
pytest
pytest-aiohttp
pytest-cov
pytest-fixtures
pytest-xdist
sphinx
install_command =
pip install -U {packages}
recreate = False
skipsdist = True
usedevelop = True
setenv =
PIP_PROCESS_DEPENDENCY_LINKS=1
PIP_DEFAULT_TIMEOUT=60
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
basepython = python3
[testenv:test]
commands =
pytest {env:PYTESTARGS:}
[testenv:style]
commands =
flake8 --config tox.ini
[testenv:cover]
commands =
pytest {env:PYTESTARGS:} --cov . --cov-report=xml --cov-report=html --cov-report=term --cov-fail-under=80
env_dir = {work_dir}/aiohttp-requests
[flake8]
exclude = .git,.tox,.eggs,__pycache__,docs,build,dist
ignore = E111,E121,W292,E123,E226
max-line-length = 120
[pytest]
asyncio_mode = auto
filterwarnings = ignore::DeprecationWarning:pkg_resources