diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3aa308b..6aeff7e 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.4.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: v5.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -33,17 +33,17 @@ repos: types: [file, yaml] entry: yamllint --strict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.10" + rev: "v0.8.6" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.14.1 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: v3.3.3 hooks: - id: pylint # see https://github.com/PyCQA/pylint/issues/6535 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