From 90f00c3a2de8c6be7a7a159dfc4d865313dedec9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 17:02:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/enrich/logging.py | 2 +- test/test_console.py | 3 ++- test/test_logging.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/enrich/logging.py b/src/enrich/logging.py index 0060d26..76a094d 100644 --- a/src/enrich/logging.py +++ b/src/enrich/logging.py @@ -19,7 +19,7 @@ class FluidLogRender: # pylint: disable=too-few-public-methods """Renders log by not using columns and avoiding any wrapping.""" # pylint: disable=too-many-arguments - def __init__( # noqa: PLR0913 + def __init__( self, show_time: bool = False, show_level: bool = False, diff --git a/test/test_console.py b/test/test_console.py index 43d8ad3..4184c43 100644 --- a/test/test_console.py +++ b/test/test_console.py @@ -4,9 +4,10 @@ import sys import pytest -from enrich.console import Console, should_do_markup from pytest_mock import MockFixture # pylint: disable=wrong-import-order +from enrich.console import Console, should_do_markup + def test_rich_console_ex() -> None: """Validate that ConsoleEx can capture output from print() calls.""" diff --git a/test/test_logging.py b/test/test_logging.py index e089c55..bf2d4f0 100644 --- a/test/test_logging.py +++ b/test/test_logging.py @@ -7,6 +7,7 @@ import re import pytest + from enrich.console import Console from enrich.logging import RichHandler