forked from pennersr/django-allauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
68 lines (61 loc) · 1.54 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
[tox]
envlist =
py{35,36,37}-django20
py{35,36,37}-django21
py{35,36,37,38}-django22
py{36,37,38}-django30
py{36,37,38}-django31
py{36,37,38}-djangomaster
docs
checkqa
standardjs
[testenv]
setenv =
PYTHONWARNINGS = all
deps =
coverage
django20: Django==2.0.*
django21: Django==2.1.*
django22: Django==2.2.*
django30: Django==3.0.*
django31: Django==3.1.*
djangomaster: https://github.com/django/django/archive/master.tar.gz
commands =
coverage run manage.py test {posargs:allauth}
coverage report
coverage html
[testenv:docs]
skip_install = True
deps =
Sphinx
whitelist_externals = make
commands =
make -C {toxinidir}/docs html
[testenv:checkqa]
skip_install = True
ignore_errors = True
deps =
flake8
isort
black
commands =
flake8 {posargs:{toxinidir}/allauth}
isort --check-only --skip-glob '*/migrations/*' --diff {posargs:{toxinidir}/allauth}
black --check {posargs:{toxinidir}/allauth} {posargs:{toxinidir}/setup.py}
[testenv:isort]
basepython = python3.7
skip_install = True
deps =
isort >5
commands =
isort --skip-glob '*/migrations/*' {posargs:{toxinidir}/allauth}
[testenv:standardjs]
skip_install = True
commands =
/usr/bin/env bash -c "mkdir -p {toxinidir}/node_modules"
/usr/bin/env npm install standard --no-lockfile --no-progress --non-interactive --silent
/usr/bin/env bash -c "find {toxinidir}/allauth -name '*.js' | xargs {toxinidir}/node_modules/.bin/standard"
[coverage:run]
include = allauth*
[flake8]
exclude = migrations