-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (54 loc) · 1.25 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
59
60
61
# directives for creating and running test environments
[tox]
envlist =
flake8
py36
skipsdist = True
# directives common to all test environments
[testenv]
setenv =
PYTHONPATH={toxinidir}/src
PYTHONDONTWRITEBYTECODE=1
# directives for the Python 36 test environment
[testenv:py36]
deps =
-rrequirements.txt
# need to pin version of pytest so it behaves well with pytest-asyncio, that is,
# until a version of pytest-asyncio is released which contains changes from
# https://github.com/pytest-dev/pytest-asyncio/pull/142
pytest==5.3.5
pytest-asyncio
pytest-freezegun
commands =
pytest -v {toxinidir} {posargs}
# directives for the Flake8 environment
[testenv:flake8]
deps =
flake8
flake8-quotes
basepython = python3
commands =
flake8 {toxinidir} {posargs}
# directives for the pytest-cov environment
[testenv:cov]
deps =
{[testenv:py36]deps}
pytest-cov
commands =
pytest -v --cov {toxinidir} {posargs}
# directives for linting with flake8
[flake8]
max-line-length = 88
exclude = __pycache__, .git, .pytest_cache, .tox, env*
inline-quotes = "
# directives for when running coverage
[coverage:run]
omit =
# folders
__pycache__/*
.tox/*
*/tests/*
env/*
ynwa/*
# files
manage.py