-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
tox.ini
65 lines (56 loc) · 1.3 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
62
63
64
65
[tox]
; envlist = clean, check, py{36,37,38}, report
envlist = docs, clean, py{37,38,39}, report, check
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39,clean,report,check,docs
[testenv]
basepython =
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
{clean,report,docs,check}: {env:TOXPYTHON:python3.9}
setenv =
VIRTUALENV_NO_DOWNLOAD=1
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv = *
deps =
-r{toxinidir}/requirements.testing.txt
commands =
pytest {posargs:--cov --cov-append --cov-report=term-missing tests}
[testenv:docs]
basepython = python3.9
deps =
-r{toxinidir}/docs/requirements.txt
skip_install = true
commands =
sphinx-build {posargs:-E} -b html docs/source docs/build
[testenv:check]
deps =
flake8
black
isort
mypy
sanic
commands =
flake8 sanic_jwt
black --line-length 79 --check sanic_jwt
isort --line-length 79 --check sanic_jwt --profile=black
mypy sanic_jwt
[testenv:report]
deps = coverage
skip_install = true
commands =
; coverage combine --append
coverage report
coverage html
[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage
[pytest]
filterwarnings =
ignore:.*async with lock.* instead:DeprecationWarning