-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
48 lines (41 loc) · 833 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
envlist = py36,py37,py38,mypy,format,lint
[travis]
python =
3.6: mypy, py33, lint
3.7: format, mypy, py37, coverage, lint, safety
3.8: mypy, py33, lint
[testenv]
passenv = TRAVIS TRAVIS_*
deps = pytest
commands =
pytest {posargs}
[testenv:coverage]
deps =
coveralls
coverage
pytest
setenv =
COVERALLS_REPO_TOKEN = {env:COVERALLS_REPO_TOKEN}
usedevelop = true
commands =
coverage run --source=src/ -m pytest --disable-warnings
coverage report
coveralls
[testenv:format]
deps = black
commands =
black --check .
[testenv:mypy]
deps = mypy
skip_install = true
commands =
mypy --ignore-missing-imports --follow-imports=skip src/
[testenv:lint]
deps = prospector
commands =
prospector --profile-path={toxinidir}
[testenv:safety]
deps = safety
commands =
safety check