Skip to content

Commit 3617f35

Browse files
chore(deps): update pre-commit hooks (#4689)
* chore(deps): update pre-commit hooks updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.263 → v0.0.270](astral-sh/ruff-pre-commit@v0.0.263...v0.0.270) - [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.3.0](pre-commit/mirrors-mypy@v1.2.0...v1.3.0) - [github.com/shellcheck-py/shellcheck-py: v0.9.0.2 → v0.9.0.5](shellcheck-py/shellcheck-py@v0.9.0.2...v0.9.0.5) - [github.com/pre-commit/mirrors-clang-format: v16.0.2 → v16.0.4](pre-commit/mirrors-clang-format@v16.0.2...v16.0.4) * Resolve new ruff error: ``` tests/test_pytypes.py:478:20: PLW0130 Duplicate value `3` in set ``` The reduction from `{3, 3}` to `{3}` never happened in pybind11 code, therefore this change is essentially a no-op for the purpose of unit-testing pybind11. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
1 parent 29487de commit 3617f35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ repos:
6868

6969
# Ruff, the Python auto-correcting linter written in Rust
7070
- repo: https://github.com/charliermarsh/ruff-pre-commit
71-
rev: v0.0.263
71+
rev: v0.0.270
7272
hooks:
7373
- id: ruff
7474
args: ["--fix", "--show-fixes"]
@@ -100,7 +100,7 @@ repos:
100100

101101
# Check static types with mypy
102102
- repo: https://github.com/pre-commit/mirrors-mypy
103-
rev: "v1.2.0"
103+
rev: "v1.3.0"
104104
hooks:
105105
- id: mypy
106106
args: []
@@ -128,7 +128,7 @@ repos:
128128

129129
# Check for common shell mistakes
130130
- repo: https://github.com/shellcheck-py/shellcheck-py
131-
rev: "v0.9.0.2"
131+
rev: "v0.9.0.5"
132132
hooks:
133133
- id: shellcheck
134134

@@ -143,7 +143,7 @@ repos:
143143

144144
# Clang format the codebase automatically
145145
- repo: https://github.com/pre-commit/mirrors-clang-format
146-
rev: "v16.0.2"
146+
rev: "v16.0.4"
147147
hooks:
148148
- id: clang-format
149149
types_or: [c++, c, cuda]

tests/test_pytypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def test_pybind11_str_raw_str():
475475
assert cvt({}) == "{}"
476476
assert cvt({3: 4}) == "{3: 4}"
477477
assert cvt(set()) == "set()"
478-
assert cvt({3, 3}) == "{3}"
478+
assert cvt({3}) == "{3}"
479479

480480
valid_orig = "DZ"
481481
valid_utf8 = valid_orig.encode("utf-8")

0 commit comments

Comments
 (0)