Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Jun 10, 2024
2 parents 8509f68 + 579a73b commit 36abf12
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
18 changes: 9 additions & 9 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: v3.0.0-alpha.6
rev: v3.3.1
hooks:
- id: prettier
always_run: true
Expand All @@ -15,16 +15,16 @@ repos:
- prettier-plugin-toml
- prettier-plugin-sort-json
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.4.2
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -35,7 +35,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -45,14 +45,14 @@ repos:
- flake8-docstrings>=1.5.0
language_version: python3
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
rev: v1.35.1
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint --strict
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.10.0
hooks:
- id: mypy
# empty args needed in order to match mypy cli behavior
Expand All @@ -63,7 +63,7 @@ repos:
- packaging
- rich>=11.0.0
- repo: https://github.com/pycqa/pylint
rev: v2.17.0
rev: v3.2.3
hooks:
- id: pylint
# see https://github.com/PyCQA/pylint/issues/6535
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 36abf12

Please sign in to comment.