@@ -7,12 +7,15 @@ envlist =
7
7
{py310,py311,py312,py313}-django51
8
8
coverage
9
9
skip_missing_interpreters = True
10
+ allowlist_externals = True
10
11
11
12
[testenv]
12
13
deps =
13
14
six
14
15
mock
15
16
factory_boy
17
+ ruff {[versions]ruff}
18
+ pyright {[versions]pyright}
16
19
py{38,313}: Faker>=5.0,<6.0
17
20
django40: Django>=4.0,<4.1
18
21
django41: Django>=4.1,<4.2
@@ -21,7 +24,12 @@ deps =
21
24
django51: Django>=5.1,<5.2
22
25
passenv =
23
26
ALGOLIA*
24
- commands = python runtests.py
27
+ commands =
28
+ pip3 install -r requirements.txt
29
+ ruff check --fix --unsafe-fixes
30
+ ruff format .
31
+ pyright algoliasearch_django
32
+ python runtests.py
25
33
26
34
[versions]
27
35
twine = >=5.1,<6.0
@@ -62,14 +70,3 @@ commands =
62
70
python setup.py sdist bdist_wheel
63
71
twine check dist/*
64
72
twine upload -u {env:PYPI_USER} -p {env:PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*
65
-
66
- [testenv:lint]
67
- basepython = python3.11
68
- deps =
69
- ruff {[versions]ruff}
70
- pyright {[versions]pyright}
71
- commands =
72
- pip3 install -r requirements.txt
73
- ruff check --fix --unsafe-fixes
74
- ruff format .
75
- pyright algoliasearch_django
0 commit comments