-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (59 loc) · 1.13 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
[tox]
envlist =
black
flake8
isort
dj32
dj40
dj41
djmain
isolated_build = true
minversion = 1.9
[testenv]
deps =
babel
coverage
dj32: Django>=3.2,<4.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
djmain: https://github.com/django/django/archive/main.tar.gz
djangorestframework
extras = phonenumberslite
commands =
coverage run --source phonenumber_field -m django test --settings=tests.settings {posargs}
coverage xml -o coverage-reports/coverage.xml
coverage html -d coverage-reports/html
coverage report
python check-translations
[testenv:black]
basepython = python3
commands =
black --target-version=py37 --check --diff .
deps =
black
skip_install = true
[testenv:flake8]
commands =
flake8
deps =
flake8
flake8-bugbear
flake8-comprehensions
skip_install = true
[testenv:isort]
commands =
isort --check-only --diff .
deps =
isort>=5.0.2
skip_install = true
[testenv:doctest]
deps =
beautifulsoup4
django
djangorestframework
Sphinx
sphinx-rtd-theme
changedir = docs/
allowlist_externals=make
commands =
make doctest