Skip to content

Commit 36ee467

Browse files
pre-commit-ci[bot]henryiii
authored andcommitted
chore(deps): update pre-commit hooks (#5350)
* chore(deps): update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.3](astral-sh/ruff-pre-commit@v0.5.6...v0.6.3) - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@v1.11.1...v1.11.2) - [github.com/sirosen/texthooks: 0.6.6 → 0.6.7](sirosen/texthooks@0.6.6...0.6.7) - [github.com/PyCQA/pylint: v3.2.6 → v3.2.7](pylint-dev/pylint@v3.2.6...v3.2.7) - [github.com/python-jsonschema/check-jsonschema: 0.29.1 → 0.29.2](python-jsonschema/check-jsonschema@0.29.1...0.29.2) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9e6a67d commit 36ee467

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Diff for: .pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ repos:
3232

3333
# Ruff, the Python auto-correcting linter/formatter written in Rust
3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: v0.5.6
35+
rev: v0.6.3
3636
hooks:
3737
- id: ruff
3838
args: ["--fix", "--show-fixes"]
3939
- id: ruff-format
4040

4141
# Check static types with mypy
4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: "v1.11.1"
43+
rev: "v1.11.2"
4444
hooks:
4545
- id: mypy
4646
args: []
@@ -93,7 +93,7 @@ repos:
9393

9494
# Avoid directional quotes
9595
- repo: https://github.com/sirosen/texthooks
96-
rev: "0.6.6"
96+
rev: "0.6.7"
9797
hooks:
9898
- id: fix-ligatures
9999
- id: fix-smartquotes
@@ -142,14 +142,14 @@ repos:
142142

143143
# PyLint has native support - not always usable, but works for us
144144
- repo: https://github.com/PyCQA/pylint
145-
rev: "v3.2.6"
145+
rev: "v3.2.7"
146146
hooks:
147147
- id: pylint
148148
files: ^pybind11
149149

150150
# Check schemas on some of our YAML files
151151
- repo: https://github.com/python-jsonschema/check-jsonschema
152-
rev: 0.29.1
152+
rev: 0.29.2
153153
hooks:
154154
- id: check-readthedocs
155155
- id: check-github-workflows

Diff for: tests/conftest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def stderr(self):
136136
return Output(self.err)
137137

138138

139-
@pytest.fixture()
139+
@pytest.fixture
140140
def capture(capsys):
141141
"""Extended `capsys` with context manager and custom equality operators"""
142142
return Capture(capsys)
@@ -172,7 +172,7 @@ def _sanitize_docstring(thing):
172172
return _sanitize_general(s)
173173

174174

175-
@pytest.fixture()
175+
@pytest.fixture
176176
def doc():
177177
"""Sanitize docstrings and add custom failure explanation"""
178178
return SanitizedString(_sanitize_docstring)
@@ -184,7 +184,7 @@ def _sanitize_message(thing):
184184
return _hexadecimal.sub("0", s)
185185

186186

187-
@pytest.fixture()
187+
@pytest.fixture
188188
def msg():
189189
"""Sanitize messages and add custom failure explanation"""
190190
return SanitizedString(_sanitize_message)

Diff for: tests/test_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
pytest.skip("Can't run a new event_loop in pyodide", allow_module_level=True)
1212

1313

14-
@pytest.fixture()
14+
@pytest.fixture
1515
def event_loop():
1616
loop = asyncio.new_event_loop()
1717
yield loop

Diff for: tests/test_custom_type_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pybind11_tests import custom_type_setup as m
1010

1111

12-
@pytest.fixture()
12+
@pytest.fixture
1313
def gc_tester():
1414
"""Tests that an object is garbage collected.
1515

Diff for: tests/test_numpy_array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_dtypes():
2424
)
2525

2626

27-
@pytest.fixture()
27+
@pytest.fixture
2828
def arr():
2929
return np.array([[1, 2, 3], [4, 5, 6]], "=u2")
3030

0 commit comments

Comments
 (0)