Skip to content

Commit

Permalink
Fixed TOX errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-costas committed Jul 18, 2023
1 parent c4f616a commit 2bc942a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions snapcraft/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()):
Expand Down
3 changes: 2 additions & 1 deletion snapcraft_legacy/project/_project_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down

0 comments on commit 2bc942a

Please sign in to comment.