From c8b784939d3fde671aa4be230dfbaaff5e5064e5 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Mon, 19 Aug 2024 09:08:57 +0200 Subject: [PATCH] chore: update pre-commit hooks --- .pre-commit-config.yaml | 10 +++++----- .../pytest_embedded_idf/unity_tester.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe1cae8e..ef7454b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,10 +15,10 @@ repos: - id: mixed-line-ending args: ["-f=lf"] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.4.3" + rev: "v0.6.1" hooks: - id: ruff - args: ["--fix", "--preview"] + args: ["--fix"] - id: ruff-format args: ["--preview"] @@ -28,8 +28,8 @@ repos: hooks: - id: sphinx-lint args: [--enable=default-role] - - repo: https://github.com/dzhu/rstfmt - rev: v0.0.14 + - repo: https://github.com/hfudev/rstfmt + rev: v0.1.4 hooks: - id: rstfmt args: ["-w", "-1"] @@ -37,7 +37,7 @@ repos: # git commit - repo: https://github.com/espressif/conventional-precommit-linter - rev: v1.8.0 + rev: v1.10.0 hooks: - id: conventional-precommit-linter stages: [commit-msg] diff --git a/pytest-embedded-idf/pytest_embedded_idf/unity_tester.py b/pytest-embedded-idf/pytest_embedded_idf/unity_tester.py index d9047cfe..fcfef146 100644 --- a/pytest-embedded-idf/pytest_embedded_idf/unity_tester.py +++ b/pytest-embedded-idf/pytest_embedded_idf/unity_tester.py @@ -828,7 +828,7 @@ def __init__(self, dut: t.Union['IdfDut', t.List['IdfDut']]) -> None: # type: i """ if isinstance(dut, Iterable): self.is_multi_dut = True - self.dut: t.List['IdfDut'] = list(dut) + self.dut: t.List[IdfDut] = list(dut) self.first_dut = self.dut[0] self.test_menu = self.first_dut.test_menu else: