Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and ssbarnea committed Jun 10, 2024
1 parent a81666b commit 79355f7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ exclude: |
^docs/conf.py$
)
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
- repo: https://github.com/pycontribs/mirrors-prettier
# keep it before yamllint
rev: v4.0.0-alpha.8
rev: v3.3.1
hooks:
- id: prettier
always_run: true
Expand Down
1 change: 1 addition & 0 deletions src/enrich/console.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module that helps integrating with rich library."""

import os
import sys
from typing import Any, TextIO
Expand Down
1 change: 1 addition & 0 deletions src/enrich/logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implements enriched RichHandler"""

from datetime import datetime
from typing import TYPE_CHECKING, Any, Iterable, Optional

Expand Down
2 changes: 2 additions & 0 deletions test/test_console.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for rich module."""

import io
import sys

Expand Down Expand Up @@ -43,6 +44,7 @@ def test_console_soft_wrap() -> None:
)
text = 21 * "x"
console.print(text, end="")
# pylint: disable=no-member
assert console.file.getvalue() == text # type: ignore
result = console.export_text()
assert text in result
Expand Down
1 change: 1 addition & 0 deletions test/test_logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests related to enriched RichHandler"""

import io
import logging
import re
Expand Down

0 comments on commit 79355f7

Please sign in to comment.