Skip to content

Commit

Permalink
fix: lint before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Nov 26, 2024
1 parent c85fce2 commit 8f1b561
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 8f1b561

Please sign in to comment.