forked from stefanfoulis/django-phonenumber-field
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (40 loc) · 798 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
[tox]
envlist =
black
flake8
isort
py{35,36,37}-dj111
py{35,36,37}-dj21
py{35,36,37}-dj22
py{36,37}-djmaster
minversion = 1.9
[testenv]
deps =
coverage
dj111: Django>=1.11,<1.12
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<3.0
djmaster: https://github.com/django/django/archive/master.tar.gz
extras = phonenumberslite
commands =
coverage run --source phonenumber_field -m django test --settings=tests.settings {posargs}
coverage report
[testenv:black]
basepython = python3
commands =
black --target-version=py35 --check --diff .
deps =
black
skip_install = true
[testenv:flake8]
commands =
flake8
deps =
flake8
skip_install = true
[testenv:isort]
commands =
isort --check-only --diff
deps =
isort
skip_install = true