Skip to content

Commit 2b08b65

Browse files
committed
add py setup in tox.ini
1 parent 39de6b8 commit 2b08b65

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- name: Black-Check
4343
run: |
4444
tox -r -e black-check
45+
if: matrix.python-version == '3.11'
4546
- name: Test with tox
4647
run: |
4748
tox -r

bobtemplates/plone/addon/setup.cfg.bob

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ profile = plone
1313
# black compatible flake8 rules:
1414
ignore =
1515
W503,
16+
W391,
1617
C812,
1718
E501
1819
T001

tox.ini

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ envlist =
66
py38-lint
77
py39-lint
88
py310-lint
9+
py311-lint
910
black-check
1011
docs
11-
py{310,39,38}-packagetests
12+
py{311,310,39,38}-packagetests
1213
py{38}-skeletontests-Plone{52}-template-addon
13-
py{310,39}-skeletontests-Plone{60}-template-addon
14+
py{311,310,39}-skeletontests-Plone{60}-template-addon
1415
py{38}-skeletontests-Plone{52}-template-addon_all
15-
py{310,39}-skeletontests-Plone{60}-template-addon_all
16-
py{310,39}-skeletontests-Plone{60}-template-addon_theme_barceoneta
17-
py{38,39,310}-skeletontests-Plone{60}-template-addon_mockup_pattern
16+
py{311,310,39}-skeletontests-Plone{60}-template-addon_all
17+
py{38,39,310,311}-skeletontests-Plone{60}-template-addon_mockup_pattern
1818
coverage-report
1919

2020
skip_missing_interpreters = True
@@ -24,6 +24,7 @@ python =
2424
3.8: py38
2525
3.9: py39
2626
3.10: py310
27+
3.11: py311
2728

2829
[testenv]
2930
usedevelop = True
@@ -34,6 +35,7 @@ basepython:
3435
py38: python3.8
3536
py39: python3.9
3637
py310: python3.10
38+
py311: python3.11
3739

3840
commands =
3941
mkdir -p {toxinidir}/_build/reports/coverage {toxinidir}/_build/reports/pytest
@@ -96,7 +98,7 @@ skip_install = true
9698
commands = coverage erase
9799

98100
[testenv:isort-apply]
99-
basepython = python3.10
101+
basepython = python3.11
100102
deps =
101103
-cconstraints.txt
102104
isort
@@ -170,8 +172,15 @@ deps = {[lint]deps}
170172
commands = {[lint]commands}
171173
allowlist_externals = {[lint]allowlist_externals}
172174

175+
[testenv:py311-lint]
176+
basepython = python3.11
177+
skip_install = true
178+
deps = {[lint]deps}
179+
commands = {[lint]commands}
180+
allowlist_externals = {[lint]allowlist_externals}
181+
173182
[testenv:black-check]
174-
basepython = python3.10
183+
basepython = python3.11
175184
skip_install = True
176185
deps =
177186
-cconstraints.txt
@@ -181,7 +190,7 @@ commands =
181190
black --check --diff -v bobtemplates setup.py skeleton-tests package_tests
182191

183192
[testenv:black-enforce]
184-
basepython = python3.10
193+
basepython = python3.11
185194
skip_install = True
186195
deps =
187196
-cconstraints.txt
@@ -191,7 +200,7 @@ commands =
191200
black -v bobtemplates setup.py skeleton-tests package_tests
192201

193202
[testenv:docs]
194-
basepython = python3.10
203+
basepython = python3.11
195204
commands =
196205
sphinx-build -b html -d _build/docs/doctrees docs _build/docs/html -W
197206
# sphinx-build -b doctest docs _build/docs/doctrees
@@ -202,7 +211,7 @@ deps =
202211

203212
[testenv:release]
204213
skip_install = true
205-
basepython = python3.10
214+
basepython = python3.11
206215

207216
deps =
208217
-cconstraints.txt

0 commit comments

Comments
 (0)