Skip to content

Commit 8f1b561

Browse files
committed
fix: lint before tests
1 parent c85fce2 commit 8f1b561

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

tox.ini

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ envlist =
77
{py310,py311,py312,py313}-django51
88
coverage
99
skip_missing_interpreters = True
10+
allowlist_externals = True
1011

1112
[testenv]
1213
deps =
1314
six
1415
mock
1516
factory_boy
17+
ruff {[versions]ruff}
18+
pyright {[versions]pyright}
1619
py{38,313}: Faker>=5.0,<6.0
1720
django40: Django>=4.0,<4.1
1821
django41: Django>=4.1,<4.2
@@ -21,7 +24,12 @@ deps =
2124
django51: Django>=5.1,<5.2
2225
passenv =
2326
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
2533

2634
[versions]
2735
twine = >=5.1,<6.0
@@ -62,14 +70,3 @@ commands =
6270
python setup.py sdist bdist_wheel
6371
twine check dist/*
6472
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

Comments
 (0)