Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JochenSiegWork committed Nov 20, 2024
1 parent b3e79ee commit ab1e2de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions molpipeline/mol2any/mol2concatinated_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def _set_element_execution_details(
else:
self._output_type = "mixed"
self._requires_fitting = any(
element[1]._requires_fitting
for element in element_list # pylint: disable=protected-access
element[1]._requires_fitting # pylint: disable=protected-access
for element in element_list
)

def get_params(self, deep: bool = True) -> dict[str, Any]:
Expand Down
6 changes: 3 additions & 3 deletions tests/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@contextmanager
def capture_logs(
level: str = "INFO", format: str = "{level}:{name}:{message}"
level: str = "INFO", log_format: str = "{level}:{name}:{message}"
) -> Generator[list[loguru.Message], None, None]:
"""Capture loguru-based logs.
Expand All @@ -22,7 +22,7 @@ def capture_logs(
----------
level : str, optional
Log level, by default "INFO"
format : str, optional
log_format : str, optional
Log format, by default "{level}:{name}:{message}"
Yields
Expand All @@ -36,6 +36,6 @@ def capture_logs(
List of log messages
"""
output: list[loguru.Message] = []
handler_id = logger.add(output.append, level=level, format=format)
handler_id = logger.add(output.append, level=level, format=log_format)
yield output
logger.remove(handler_id)

0 comments on commit ab1e2de

Please sign in to comment.