Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.1"
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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/enrich/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion test/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
1 change: 1 addition & 0 deletions test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import re

import pytest

from enrich.console import Console
from enrich.logging import RichHandler

Expand Down
Loading