Skip to content

Commit

Permalink
Resolve pylint and reuse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
led02 committed Nov 15, 2023
1 parent 68884ea commit 6873250
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 24 deletions.
1 change: 0 additions & 1 deletion src/hermes/commands/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from hermes.commands.deposit.base import BaseDepositPlugin
from hermes.error import MisconfigurationError
from hermes.model.linked_data import HermesData, HermesHarvestData, CodeMetaData
from hermes.model.errors import MergeError
from hermes.model.path import ContextPath


Expand Down
3 changes: 2 additions & 1 deletion src/hermes/model/linked_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

_log = logging.getLogger(__name__)


class HermesData:
"""
The HermesContext stores the metadata for a certain project.
Expand Down Expand Up @@ -65,7 +66,7 @@ def __getitem__(self, key: ContextPath | str) -> t.Any:
Can be in dotted syntax or as a :class:`ContextPath` instance.
:return: The value stored under the given key.
"""
if not key is ContextPath:
if not isinstance(key, ContextPath):
key = ContextPath.parse(key)
data = key.get_from(self.data)
return data
Expand Down
Empty file removed test/pydalos_test/__init__.py
Empty file.
22 changes: 0 additions & 22 deletions test/pydalos_test/test_linked_data.py

This file was deleted.

0 comments on commit 6873250

Please sign in to comment.