diff --git a/flepimop/gempyor_pkg/src/gempyor/logging.py b/flepimop/gempyor_pkg/src/gempyor/logging.py index db5123823..cf31bafc3 100644 --- a/flepimop/gempyor_pkg/src/gempyor/logging.py +++ b/flepimop/gempyor_pkg/src/gempyor/logging.py @@ -75,11 +75,7 @@ def emit(self, record: logging.LogRecord) -> None: [`logging.Handler.emit`](https://docs.python.org/3/library/logging.html#logging.Handler.emit) """ msg = self.format(record) - msg = ( - f"{msg}." - if self._punctuate and not msg.endswith(self._punctuation) - else msg - ) + msg = f"{msg}." if self._punctuate and not msg.endswith(self._punctuation) else msg click.echo( message=msg, file=self._file, nl=self._nl, err=self._err, color=self._color ) diff --git a/flepimop/gempyor_pkg/tests/logging/test__get_logging_level.py b/flepimop/gempyor_pkg/tests/logging/test__get_logging_level.py index 210d0bd69..67480442c 100644 --- a/flepimop/gempyor_pkg/tests/logging/test__get_logging_level.py +++ b/flepimop/gempyor_pkg/tests/logging/test__get_logging_level.py @@ -28,7 +28,5 @@ def test__get_logging_level_negative_verbosity_value_error(verbosity: int) -> No (5, logging.DEBUG), ), ) -def test__get_logging_level_output_validation( - verbosity: int, expected_level: int -) -> None: +def test__get_logging_level_output_validation(verbosity: int, expected_level: int) -> None: assert _get_logging_level(verbosity) == expected_level diff --git a/flepimop/gempyor_pkg/tests/logging/test_get_script_logger.py b/flepimop/gempyor_pkg/tests/logging/test_get_script_logger.py index 1e0c5a2d0..b96e69cb7 100644 --- a/flepimop/gempyor_pkg/tests/logging/test_get_script_logger.py +++ b/flepimop/gempyor_pkg/tests/logging/test_get_script_logger.py @@ -37,9 +37,7 @@ def test_get_script_logger( if log_format is None: logger = get_script_logger(name, verbosity, handler=handler) else: - logger = get_script_logger( - name, verbosity, handler=handler, log_format=log_format - ) + logger = get_script_logger(name, verbosity, handler=handler, log_format=log_format) assert isinstance(logger, logging.Logger) assert logger.name == name