Skip to content

Commit

Permalink
ci: pre-commit autoupdate (#975)
Browse files Browse the repository at this point in the history
* ci: pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](astral-sh/ruff-pre-commit@v0.8.3...v0.8.4)
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.0](pre-commit/mirrors-mypy@v1.13.0...v1.14.0)

* test: Make mypy happy again

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: gmuloc <gmulocher@arista.com>
  • Loading branch information
pre-commit-ci[bot] and gmuloc authored Dec 23, 2024
1 parent f440b30 commit 5afc61d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repos:
- '<!--| ~| -->'

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.8.4
hooks:
- id: ruff
name: Run Ruff linter
Expand Down Expand Up @@ -85,7 +85,7 @@ repos:
types: [text]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.0
hooks:
- id: mypy
name: Check typing with mypy
Expand Down
4 changes: 2 additions & 2 deletions tests/units/reporter/test_md_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from __future__ import annotations

from io import StringIO
from io import BytesIO, TextIOWrapper
from pathlib import Path

import pytest
Expand Down Expand Up @@ -46,7 +46,7 @@ def generate_section(self) -> None:

results = ResultManager()

with StringIO() as mock_file:
with TextIOWrapper(BytesIO(b"1 2 3")) as mock_file:
report = FakeMDReportBase(mock_file, results)
assert report.generate_heading_name() == "Fake MD Report Base"

Expand Down

0 comments on commit 5afc61d

Please sign in to comment.