diff --git a/tox.ini b/tox.ini index 9e7ddc5..d57176e 100644 --- a/tox.ini +++ b/tox.ini @@ -7,12 +7,15 @@ envlist = {py310,py311,py312,py313}-django51 coverage skip_missing_interpreters = True +allowlist_externals = True [testenv] deps = six mock factory_boy + ruff {[versions]ruff} + pyright {[versions]pyright} py{38,313}: Faker>=5.0,<6.0 django40: Django>=4.0,<4.1 django41: Django>=4.1,<4.2 @@ -21,7 +24,12 @@ deps = django51: Django>=5.1,<5.2 passenv = ALGOLIA* -commands = python runtests.py +commands = + pip3 install -r requirements.txt + ruff check --fix --unsafe-fixes + ruff format . + pyright algoliasearch_django + python runtests.py [versions] twine = >=5.1,<6.0 @@ -62,14 +70,3 @@ commands = python setup.py sdist bdist_wheel twine check dist/* twine upload -u {env:PYPI_USER} -p {env:PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/* - -[testenv:lint] -basepython = python3.11 -deps = - ruff {[versions]ruff} - pyright {[versions]pyright} -commands = - pip3 install -r requirements.txt - ruff check --fix --unsafe-fixes - ruff format . - pyright algoliasearch_django