-
Notifications
You must be signed in to change notification settings - Fork 26
/
tox.ini
46 lines (42 loc) · 1.06 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
[tox]
envlist =
flake8
pylint
mypy
py{36,37,38}-django{22,30,31}
[testenv:flake8]
deps =
flake8
basepython = python3.8
skip_install = true
commands =
flake8 {toxinidir}/small_small_hr
[testenv:pylint]
deps =
pylint
basepython = python3.8
commands =
pip install -r requirements/dev-py38.txt
pylint --rcfile={toxinidir}/.pylintrc {toxinidir}/small_small_hr
[testenv:mypy]
basepython = python3.8
commands =
pip install -r requirements/dev-py38.txt
mypy -m small_small_hr
[testenv]
deps =
coverage
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
commands =
py36: pip install -r requirements/dev-py36.txt
py37: pip install -r requirements/dev-py37.txt
py38: pip install -r requirements/dev-py38.txt
django22: pip install Django>=2.2,<2.3
django30: pip install Django>=3.0,<3.1
django31: pip install Django>=3.1,<3.2
coverage erase
coverage run --include="small_small_hr/**.*" --omit="tests/**.*,small_small_hr/migrations/**.*" manage.py test {toxinidir}/tests
coverage report