Skip to content

Commit

Permalink
Bump mypy Python to 3.8 to fix failing tests
Browse files Browse the repository at this point in the history
| mypy: error: argument --python-version: Python 3.5 is not supported (must be 3.8 or higher)
  • Loading branch information
hloeung committed Jul 22, 2024
1 parent 5445f7a commit 5b1f69b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ commands =
echo "Canceling the test before completion creates __init__.py files \
which could cause undesired behaviours. Make sure to delete the __init__.py files manually."
; Check for Python 3.5 compatibility to ensure Xenial support
mypy --ignore-missing-imports --python-version 3.5 {toxinidir}/lib/charms/layer/jenkins {posargs}
mypy --ignore-missing-imports --python-version 3.5 {toxinidir}/reactive {posargs}
mypy --ignore-missing-imports --python-version 3.8 {toxinidir}/lib/charms/layer/jenkins {posargs}
mypy --ignore-missing-imports --python-version 3.8 {toxinidir}/reactive {posargs}
; Execute unit tests
touch {toxinidir}/lib/charms/__init__.py
touch {toxinidir}/lib/charms/layer/__init__.py
Expand Down

0 comments on commit 5b1f69b

Please sign in to comment.