Skip to content

Commit

Permalink
fix: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyrcdias committed Oct 25, 2022
1 parent c03776e commit 2d82646
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kingdom_sdk/domain/aggregate.py
Expand Up @@ -14,7 +14,7 @@ class Aggregate(Entity, ABC):

def __init__(
self,
id: UUID, # noqa
id: UUID,
version: int,
is_discarded: bool,
registered_at: datetime,
Expand Down
2 changes: 1 addition & 1 deletion kingdom_sdk/domain/entity.py
Expand Up @@ -29,7 +29,7 @@ class Entity(ABC):

def __init__(
self,
id: UUID, # noqa
id: UUID,
version: int,
is_discarded: bool,
registered_at: datetime,
Expand Down
2 changes: 1 addition & 1 deletion kingdom_sdk/ports/repository.py
Expand Up @@ -15,5 +15,5 @@ def list(self) -> List[Aggregate]:
raise NotImplementedError

@abstractmethod
def get(self, id: PrimaryKey_T) -> Optional[Aggregate]: # noqa
def get(self, id: PrimaryKey_T) -> Optional[Aggregate]:
raise NotImplementedError
2 changes: 1 addition & 1 deletion kingdom_sdk/utils/files.py
Expand Up @@ -8,6 +8,6 @@ def find(
"""Return a list containing the paths of the files found."""
return [
os.path.join(root, file_name)
for root, subdirs, files in os.walk(base_dir)
for root, _, files in os.walk(base_dir)
if root not in excluded_dirs and file_name in files
]

0 comments on commit 2d82646

Please sign in to comment.