-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathtox.ini
74 lines (68 loc) · 1.49 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
69
70
71
72
73
74
[tox]
envlist =
{py38,py39,py310}-django40
{py38,py39,py310,py311}-django41
{py38,py39,py310,py311,py312}-django42
{py310,py311,py312}-django50
{py310,py311,py312,py313}-django51
coverage
skip_missing_interpreters = True
[testenv]
deps =
six
mock
factory_boy
py{38,313}: Faker>=5.0,<6.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
passenv =
ALGOLIA*
commands =
pip3 install -r requirements.txt
python runtests.py
[versions]
twine = >=5.1,<6.0
wheel = >=0.45,<1.0
ruff = >=0.7.4,<1.0
pyright = >=1.1.389,<2.0
setuptools = >=75.0,<76.0
[testenv:coverage]
basepython = python3.13
deps = coverage
passenv =
ALGOLIA*
commands =
coverage run --branch --source=algoliasearch_django runtests.py
coverage report
[testenv:coveralls]
basepython = python3.13
deps =
coverage
coveralls
passenv =
ALGOLIA*
commands =
coverage run --branch --source=algoliasearch_django runtests.py
coverage report
coveralls
[testenv:build]
basepython = python3.13
deps =
twine {[versions]twine}
wheel {[versions]wheel}
setuptools {[versions]setuptools}
commands =
python setup.py sdist bdist_wheel
twine check dist/*
[testenv:lint]
deps =
ruff {[versions]ruff}
pyright {[versions]pyright}
commands =
pip3 install -r requirements.txt
ruff check --fix --unsafe-fixes
ruff format .
pyright algoliasearch_django