Skip to content

Commit

Permalink
build: use python3.12 as default version
Browse files Browse the repository at this point in the history
  • Loading branch information
rmax committed Jul 4, 2024
1 parent 39cba9f commit 48fe815
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
security
flake8
py{38,39,310,311}-scrapy{26,27,28,29}-redis{42,43,44,45,46,50}
py{38,39,310,311,312}-scrapy{26,27,28,29,210,211}-redis{42,43,44,45,46,50}
minversion = 3.0.0

[base]
Expand All @@ -16,6 +16,7 @@ basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
deps =
{[base]deps}
scrapy26: scrapy~=2.6.0
Expand All @@ -35,28 +36,31 @@ commands =

[testenv:flake8]
basepython =
python3.11
python3.12
deps =
{[base]deps}
commands =
flake8 --ignore=W503,E265,E731 docs/ tests/
flake8 --ignore=W503,E265,E731 docs src tests

[testenv:security]
basepython = python3.11
basepython =
python3.12
deps =
bandit==1.7.3
bandit~=1.7.3
commands =
bandit -r -c .bandit.yml src/ tests/

[testenv:pytest]
basepython = python3.11
basepython =
python3.12
deps =
{[testenv]deps}
commands =
python -m pytest --cov-report term --cov=scrapy_redis

[testenv:build]
basepython=python3.11
basepython =
python3.12
deps =
{[base]deps}
build
Expand Down

0 comments on commit 48fe815

Please sign in to comment.