From 2bc942a5f07edb423fb1839253e48a7351edab23 Mon Sep 17 00:00:00 2001 From: Sergio Costas Rodriguez Date: Tue, 18 Jul 2023 10:19:11 +0200 Subject: [PATCH] Fixed TOX errors --- snapcraft/utils.py | 1 + snapcraft_legacy/project/_project_info.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/snapcraft/utils.py b/snapcraft/utils.py index 505d289912..d8caf721b2 100644 --- a/snapcraft/utils.py +++ b/snapcraft/utils.py @@ -458,6 +458,7 @@ def is_snapcraft_running_from_snap() -> bool: """Check if snapcraft is running from the snap.""" return os.getenv("SNAP_NAME") == "snapcraft" and os.getenv("SNAP") is not None + def _remove_custom_data_from_dict(data): prog = re.compile("^custom-data-[a-zA-Z0-9][a-zA-Z0-9_-]*$") for element in list(data.keys()): diff --git a/snapcraft_legacy/project/_project_info.py b/snapcraft_legacy/project/_project_info.py index 041e336835..ef815f774e 100644 --- a/snapcraft_legacy/project/_project_info.py +++ b/snapcraft_legacy/project/_project_info.py @@ -19,11 +19,12 @@ import snapcraft_legacy.yaml_utils.errors from snapcraft_legacy import yaml_utils -from . import _schema from snapcraft.utils import ( remove_custom_data, ) +from . import _schema + class ProjectInfo: """Information gained from the snap's snapcraft.yaml file."""