Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #61

Merged
merged 2 commits into from
Jun 10, 2024
Merged
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
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
Loading