Skip to content

Commit

Permalink
add py setup in tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Nov 3, 2023
1 parent 39de6b8 commit f911219
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions bobtemplates/plone/addon/setup.cfg.bob
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ profile = plone
# black compatible flake8 rules:
ignore =
W503,
W391,
C812,
E501
T001
Expand Down
26 changes: 17 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ envlist =
py310-lint
black-check
docs
py{310,39,38}-packagetests
py{311,310,39,38}-packagetests
py{38}-skeletontests-Plone{52}-template-addon
py{310,39}-skeletontests-Plone{60}-template-addon
py{311,310,39}-skeletontests-Plone{60}-template-addon
py{38}-skeletontests-Plone{52}-template-addon_all
py{310,39}-skeletontests-Plone{60}-template-addon_all
py{310,39}-skeletontests-Plone{60}-template-addon_theme_barceoneta
py{38,39,310}-skeletontests-Plone{60}-template-addon_mockup_pattern
py{311,310,39}-skeletontests-Plone{60}-template-addon_all
py{38,39,310,311}-skeletontests-Plone{60}-template-addon_mockup_pattern
coverage-report

skip_missing_interpreters = True
Expand All @@ -24,6 +23,7 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
usedevelop = True
Expand All @@ -34,6 +34,7 @@ basepython:
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11

commands =
mkdir -p {toxinidir}/_build/reports/coverage {toxinidir}/_build/reports/pytest
Expand Down Expand Up @@ -170,8 +171,15 @@ deps = {[lint]deps}
commands = {[lint]commands}
allowlist_externals = {[lint]allowlist_externals}

[testenv:py311-lint]
basepython = python3.11
skip_install = true
deps = {[lint]deps}
commands = {[lint]commands}
allowlist_externals = {[lint]allowlist_externals}

[testenv:black-check]
basepython = python3.10
basepython = python3.11
skip_install = True
deps =
-cconstraints.txt
Expand All @@ -181,7 +189,7 @@ commands =
black --check --diff -v bobtemplates setup.py skeleton-tests package_tests

[testenv:black-enforce]
basepython = python3.10
basepython = python3.11
skip_install = True
deps =
-cconstraints.txt
Expand All @@ -191,7 +199,7 @@ commands =
black -v bobtemplates setup.py skeleton-tests package_tests

[testenv:docs]
basepython = python3.10
basepython = python3.11
commands =
sphinx-build -b html -d _build/docs/doctrees docs _build/docs/html -W
# sphinx-build -b doctest docs _build/docs/doctrees
Expand All @@ -202,7 +210,7 @@ deps =

[testenv:release]
skip_install = true
basepython = python3.10
basepython = python3.11

deps =
-cconstraints.txt
Expand Down

0 comments on commit f911219

Please sign in to comment.