forked from pinax/django-user-accounts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (54 loc) · 1.35 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
[flake8]
ignore = E265,E501
max-line-length = 100
max-complexity = 10
exclude = account/migrations/*,docs/*
inline-quotes = double
[isort]
multi_line_output=3
known_django=django
known_third_party=account,six,mock,appconf,jsonfield,pytz
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
skip_glob=migrations/*
include_trailing_comma=True
[coverage:run]
source = account
omit = account/conf.py,account/tests/*,account/migrations/*
branch = true
data_file = .coverage
[coverage:report]
omit = account/conf.py,account/tests/*,account/migrations/*
exclude_lines =
coverage: omit
show_missing = True
[tox]
envlist =
checkqa
py{36,37}-dj{111,22,30}{,-pytest}
py38-dj{22,30}{,-pytest}
[testenv]
passenv = CI CIRCLECI CIRCLE_*
deps =
coverage<5
codecov
dj111: Django>=1.11,<1.12
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
master: https://github.com/django/django/tarball/master
extras =
pytest: pytest
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=account.tests.settings
pytest: _ACCOUNT_TEST_RUNNER=-m pytest
commands =
coverage run {env:_ACCOUNT_TEST_RUNNER:setup.py test} {posargs}
coverage report -m --skip-covered
[testenv:checkqa]
commands =
flake8 account
isort --recursive --check-only --diff account -sp tox.ini
deps =
flake8 == 3.7.9
flake8-quotes == 2.1.1
isort == 4.3.21