-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtox.ini
49 lines (42 loc) · 852 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
49
[tox]
envlist =
py36-django111
py36-django22
flake8
mypy
[pytest]
testpaths = test_ptrack
addopts =
--cov
--cov-config=tox.ini
--cov-report=term
[flake8]
max-line-length = 99
[coverage:run]
source = ptrack
branch = True
[coverage:report]
show_missing = True
# Fail tests if coverage is below the given percentage:
fail_under = 85
[testenv]
deps =
py36-django111: Django >=1.11, <2.0
py36-django22: Django >=2.2, <2.3
pytest
pytest-cov
pytest-django
pytest-sugar
setenv = DJANGO_SETTINGS_MODULE = test_ptrack.settings
commands = {envpython} -m pytest {posargs}
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
flake8 ptrack/ test_ptrack/ setup.py
[testenv:mypy]
basepython = python3.6
deps =
mypy
commands = mypy -p ptrack --check-untyped-defs --ignore-missing-imports