forked from tj-django/django-model-subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
78 lines (72 loc) · 1.67 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
66
67
68
69
70
71
72
73
74
75
76
77
78
[tox]
minversion = 3.8.0
envlist =
yamllint
flake8
mypy
docs
py36-django{20,21,22,30,31,32,main}
py37-django{20,21,22,30,31,32,main}
py38-django{20,21,22,30,31,32,main}
py39-django{20,21,22,30,31,32,main}
skip_missing_interpreters = True
isolated_build = True
requires =
setuptools >= 30.0.0
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[testenv]
usedevelop = false
basepython =
py39: python3.9
py38: python3.8
py37: python3.7
py36: python3.6
.package: python3
deps =
django-lifecycle==0.9.0
pytz==2021.1
six==1.15.0
sqlparse==0.4.1
typing-extensions==3.7.4.3
urlman==1.4.0
coverage
codacy-coverage
mysqlclient
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
main: https://github.com/django/django/archive/main.tar.gz
py39: psycopg2
py38: psycopg2
py37: psycopg2==2.8.6
py36: psycopg2==2.8.6
passenv = HOME PG_USER PG_DB PG_PASSWORD MSQL_USER MSQL_DB MSQL_PASSWORD CODACY_PROJECT_TOKEN
commands =
coverage run manage.py test --no-input
coverage report -m
coverage xml
- python-codacy-coverage -r coverage.xml
[testenv:mypy]
basepython = python3.6
deps = mypy==0.740
commands = mypy .
[testenv:flake8]
basepython = python3.6
deps = flake8
commands = flake8 .
[testenv:yamllint]
deps = yamllint==1.11.1
commands = yamllint --strict -f standard .circleci/config.yml
[testenv:docs]
changedir = docs
deps =
-rrequirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees source {envtmpdir}/html