-
Notifications
You must be signed in to change notification settings - Fork 107
/
tox.ini
46 lines (41 loc) · 881 Bytes
/
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 =
py{36,37,38}-django{22,30,master},
flake8,black
[travis:env]
DJANGO =
2.2: django22
3.0: django30
master: djangomaster
[testenv]
passenv = *
usedevelop = True
deps =
django22: Django>=2.2,<3.0
django30: Django>=3.0a1,<3.1
djangomaster: https://github.com/django/django/archive/master.zip
-e.[test]
commands =
py.test \
--ds=tests.settings \
-m 'not settings_b' \
--cov=graphql_auth \
--cov-report=xml \
{posargs}
py.test \
--ds=tests.settings_b \
-m 'settings_b' \
--cov=graphql_auth \
--cov-report=xml \
--cov-append \
{posargs}
[testenv:flake8]
basepython=python3.8
deps = -e.[dev]
commands =
flake8 graphql_auth
[testenv:black]
basepython = python3.8
deps = -e.[dev]
commands =
black --exclude "/migrations/" graphql_auth testproject setup.py quickstart tests --check