-
Notifications
You must be signed in to change notification settings - Fork 30
/
tox.ini
32 lines (27 loc) · 855 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
[tox]
envlist = py35, py36, flake8, mypy, codecov
[testenv:flake8]
description=check code style
basepython=python
deps=-rrequirements-dev.txt
commands=python -m flake8 seagull
[testenv:mypy]
description=static type checking
basepython=python
deps=-rrequirements-dev.txt
commands=mypy --ignore-missing-imports seagull/
[testenv:codecov]
description=get code coverage
passenv=CODECOV_TOKEN
deps=-rrequirements-dev.txt
commands=codecov -t CODECOV_TOKEN
[testenv]
description=test library and generate report
setenv =
PYTHONPATH = {toxinidir}
deps=-rrequirements-dev.txt
commands=python -m pytest tests --junitxml=junit/test-results.xml --cov=seagull
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt