Skip to content

Commit

Permalink
chore: update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
hfudev committed Aug 19, 2024
1 parent 7d9c24e commit c8b7849
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -28,16 +28,16 @@ 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"]
files: \.rst$

# 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]
Expand Down
2 changes: 1 addition & 1 deletion pytest-embedded-idf/pytest_embedded_idf/unity_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c8b7849

Please sign in to comment.