Skip to content
Snippets Groups Projects
Unverified Commit 8136a790 authored by Oliver Smith's avatar Oliver Smith
Browse files

CI: ignore 'import tomllib' in vermin

parent 6ee9b4f7
No related branches found
No related tags found
No related merge requests found
Pipeline #190970 passed
......@@ -16,7 +16,6 @@ vermin \
--backport enum \
--backport typing \
--lint \
--no-parse-comments \
--eval-annotations \
$(find . -name '*.py' \
-a -not -path "./.venv/*" \
......
......@@ -5,7 +5,7 @@ from pmb.helpers.exceptions import NonBugError
try:
# Python >= 3.11
from tomllib import load, TOMLDecodeError
from tomllib import load, TOMLDecodeError # novermin
except ImportError:
# Python < 3.11
from tomli import load, TOMLDecodeError # type:ignore[import-not-found,no-redef]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment