From 5f1afe34ef97602e971a7e206c4995b639bd4c90 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Fri, 16 Aug 2024 14:32:20 -0400 Subject: [PATCH] style: add noqas for a ruff fix Bug is documented here: https://github.com/astral-sh/ruff/issues/12940 --- craft_parts/plugins/maven_plugin.py | 2 +- tests/unit/plugins/test_maven_plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/craft_parts/plugins/maven_plugin.py b/craft_parts/plugins/maven_plugin.py index c52ac743b..46402118f 100644 --- a/craft_parts/plugins/maven_plugin.py +++ b/craft_parts/plugins/maven_plugin.py @@ -21,7 +21,7 @@ from pathlib import Path from typing import Literal, cast from urllib.parse import urlparse -from xml.etree import ElementTree +from xml.etree import ElementTree # noqa: ICN001 (Normally imported as ET) from overrides import override diff --git a/tests/unit/plugins/test_maven_plugin.py b/tests/unit/plugins/test_maven_plugin.py index a6ebc5660..94ed7c0d2 100644 --- a/tests/unit/plugins/test_maven_plugin.py +++ b/tests/unit/plugins/test_maven_plugin.py @@ -19,7 +19,7 @@ from pathlib import Path from textwrap import dedent from unittest import mock -from xml.etree import ElementTree +from xml.etree import ElementTree # noqa: ICN001 (Normally imported as ET) import pytest from craft_parts import Part, PartInfo, ProjectInfo, errors