Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#61)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.6 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.0.0-alpha.6...v4.0.0-alpha.8)
- [github.com/PyCQA/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2)
- [github.com/psf/black: 23.1.0 → 24.4.2](psf/black@23.1.0...24.4.2)
- [github.com/pre-commit/pre-commit-hooks.git: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks.git/compare/v4.4.0...v4.6.0)
- [github.com/PyCQA/flake8: 6.0.0 → 7.0.0](PyCQA/flake8@6.0.0...7.0.0)
- [github.com/adrienverge/yamllint.git: v1.29.0 → v1.35.1](https://github.com/adrienverge/yamllint.git/compare/v1.29.0...v1.35.1)
- [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.10.0](pre-commit/mirrors-mypy@v1.1.1...v1.10.0)
- [github.com/pycqa/pylint: v2.17.0 → v3.2.3](pylint-dev/pylint@v2.17.0...v3.2.3)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jun 10, 2024
1 parent 6d10222 commit 579a73b
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 579a73b

Please sign in to comment.