Skip to content

Commit

Permalink
Fix the linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
qubixes committed Jan 27, 2025
1 parent dac6180 commit e75dd59
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ibridges/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
from irods.models import DataObject

import ibridges.icat_columns as icat
from ibridges.exception import NotACollectionError, NotADataObjectError, CollectionDoesNotExistError, DataObjectDoesNotExistError, DoesNotExistError
from ibridges.exception import (
CollectionDoesNotExistError,
DoesNotExistError,
NotACollectionError,
NotADataObjectError,
)
from ibridges.meta import MetaData


Expand Down Expand Up @@ -542,7 +547,8 @@ def checksum(self) -> str:
return dataobj.checksum if dataobj.checksum is not None else dataobj.chksum()
if self.collection_exists():
raise NotADataObjectError("Cannot take checksum of a collection.")
raise DoesNotExistError(f"Cannot take checksum of {str(self)} irods path which does not exist.")
raise DoesNotExistError(
f"Cannot take checksum of {str(self)} irods path which does not exist.")

@property
def meta(self) -> MetaData:
Expand All @@ -562,8 +568,9 @@ def meta(self) -> MetaData:
return MetaData(self.dataobject)
if self.collection_exists():
return MetaData(self.collection)
raise DoesNotExistError("Cannot get metadata for path that is neither dataobject or collection:"
f" {self}")
raise DoesNotExistError(
"Cannot get metadata for path that is neither dataobject or collection:"
f" {self}")



Expand Down

0 comments on commit e75dd59

Please sign in to comment.