-
Notifications
You must be signed in to change notification settings - Fork 314
/
tox.ini
67 lines (62 loc) · 1.22 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
[tox]
envlist =
ruff
dj42
dj50
dj51
djmain
mypy
isolated_build = true
minversion = 1.9
[gh]
python =
3.8 = dj42
3.9 = dj42
3.10 = dj{42,50,51,main}
3.11 = dj{42,50,51,main}
3.12 = dj{42,50,51,main}
3.13 = dj{42,50,51,main}
[testenv]
deps =
babel
coverage
dj42: Django>=4.2,<4.3
dj50: Django>=5.0b1,<5.1
dj51: Django>=5.1b1,<5.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
[testenv:ruff]
commands =
ruff check
deps =
ruff
skip_install = true
[testenv:doctest]
deps =
beautifulsoup4
django
djangorestframework
Sphinx
sphinx-rtd-theme
changedir = docs/
allowlist_externals=make
commands =
make doctest
[testenv:mypy]
commands =
mypy phonenumber_field
mypy tests --no-check-untyped-defs
deps =
typing_extensions
Django
phonenumbers
djangorestframework
django-stubs[compatible-mypy]
djangorestframework-stubs
types-babel