Fix issues related to py312 compatibility

Summary of changes:
- Bump flake8 from 3.9.2 to 7.1.1
- Add py312 section to tox.ini [testenv]

Change-Id: Ifdeb74cf1c9d6a08e4a9262d5e1cbe00b6de88b9
This commit is contained in:
Myles Penner 2024-08-20 23:08:46 +00:00
parent 8e06469fe4
commit f7f852d9dd

View File

@ -49,6 +49,13 @@ commands =
{toxinidir}/rename.sh {toxinidir}/rename.sh
charmcraft clean charmcraft clean
[testenv:py312]
basepython = python3.12
deps =
-c {env:TEST_CONSTRAINTS_FILE:https://raw.githubusercontent.com/openstack-charmers/zaza-openstack-tests/master/constraints/constraints-2024.1.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:py310] [testenv:py310]
basepython = python3.10 basepython = python3.10
deps = deps =
@ -65,7 +72,7 @@ deps =
[testenv:pep8] [testenv:pep8]
basepython = python3 basepython = python3
deps = flake8==3.9.2 deps = flake8==7.1.1
git+https://github.com/juju/charm-tools.git git+https://github.com/juju/charm-tools.git
commands = flake8 {posargs} hooks unit_tests tests actions lib files commands = flake8 {posargs} hooks unit_tests tests actions lib files
charm-proof charm-proof