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 5, 2023
1 parent 39de6b8 commit 2b08b65
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
- name: Black-Check
run: |
tox -r -e black-check
if: matrix.python-version == '3.11'
- name: Test with tox
run: |
tox -r
Expand Down
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
29 changes: 19 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ envlist =
py38-lint
py39-lint
py310-lint
py311-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 +24,7 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
usedevelop = True
Expand All @@ -34,6 +35,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 @@ -96,7 +98,7 @@ skip_install = true
commands = coverage erase

[testenv:isort-apply]
basepython = python3.10
basepython = python3.11
deps =
-cconstraints.txt
isort
Expand Down Expand Up @@ -170,8 +172,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 +190,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 +200,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 +211,7 @@ deps =

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

deps =
-cconstraints.txt
Expand Down

0 comments on commit 2b08b65

Please sign in to comment.