From 396e3e4dcb40431b5a032dfc24b3a815e41fad28 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 17:02:20 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pycontribs/mirrors-prettier: v3.3.2 → v3.6.2](https://github.com/pycontribs/mirrors-prettier/compare/v3.3.2...v3.6.2) - [github.com/pre-commit/pre-commit-hooks.git: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks.git/compare/v4.6.0...v6.0.0) - [github.com/adrienverge/yamllint.git: v1.35.1 → v1.37.1](https://github.com/adrienverge/yamllint.git/compare/v1.35.1...v1.37.1) - [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.14.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.10...v0.14.3) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.4.2 → 25.9.0](https://github.com/psf/black-pre-commit-mirror/compare/24.4.2...25.9.0) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.18.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.18.2) - [github.com/pycqa/pylint: v3.2.3 → v4.0.2](https://github.com/pycqa/pylint/compare/v3.2.3...v4.0.2) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3aa308b..ffe8c4a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ exclude: | repos: - repo: https://github.com/pycontribs/mirrors-prettier # keep it before yamllint - rev: v3.3.2 + rev: v3.6.2 hooks: - id: prettier always_run: true @@ -15,7 +15,7 @@ repos: - prettier-plugin-toml - prettier-plugin-sort-json - repo: https://github.com/pre-commit/pre-commit-hooks.git - rev: v4.6.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -26,24 +26,24 @@ repos: - id: debug-statements language_version: python3 - repo: https://github.com/adrienverge/yamllint.git - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint files: \.(yaml|yml)$ types: [file, yaml] entry: yamllint --strict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.10" + rev: "v0.14.3" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - - repo: https://github.com/psf/black - rev: 24.4.2 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.9.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.18.2 hooks: - id: mypy # empty args needed in order to match mypy cli behavior @@ -54,7 +54,7 @@ repos: - packaging - rich>=11.0.0 - repo: https://github.com/pycqa/pylint - rev: v3.2.3 + rev: v4.0.2 hooks: - id: pylint # see https://github.com/PyCQA/pylint/issues/6535 From 2416d96374bc8f781ad65ce26e72dccb53a2b49b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 17:02:39 +0000 Subject: [PATCH 2/2] [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