-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
83 lines (74 loc) · 1.71 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
79
80
81
82
[flake8]
ignore = E265,E501,W391
max-line-length = 100
max-complexity = 10
exclude = docs/*
inline-quotes = double
[isort]
multi_line_output=3
known_django=django
known_first_party=zengo
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=100
force_sort_within_sections=True
lines_after_imports=2
[coverage:run]
source = zengo
omit = tests/*
branch = true
data_file = .coverage
[coverage:report]
omit = tests/*
show_missing = True
[tox]
envlist =
checkqa
py{36,37,38,39}-dj{22,30,31,32,40,master}
[testenv]
passenv =
CI CIRCLECI CIRCLE_*
TEST_DATABASE_ENGINE
TEST_DATABASE_HOST
TEST_DATABASE_NAME
TEST_DATABASE_USER
# we assume use of semantic versioning on deps
deps =
coverage
codecov
pytest-django>=3,<4
pytest-mock>=1,<2
django-allauth>=0.37.0,<1
model_mommy>=1,<2
# pinning urllib3 for `responses` as 1.26.0 has broken backwards compat
# and it appears `responses` doesn't cope just yet
urllib3==1.25.11
responses>=0.12.0,<1
psycopg2-binary>=2,<3
django-konst>=2,<3
zenpy>=2.0.11,<3
python-dateutil>=2.8.0,<3
dj22: Django==2.2.*
dj30: Django==3.0.*
dj31: Django==3.1.*
dj32: Django==3.2.*
dj40: Django==4.0.*
djmaster: https://github.com/django/django/tarball/master
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
commands =
coverage run -m pytest tests/tests.py {posargs}
coverage report -m --skip-covered
[testenv:checkqa]
commands =
black --check zengo
flake8 zengo
isort -rc --check-only --diff zengo
deps =
black == 22.3.0
flake8 == 3.8.4
flake8-quotes == 3.2.0
isort == 5.6.4