Skip to content

Commit d810d4f

Browse files
chore(deps): update pre-commit hooks (#5918)
* chore(deps): update pre-commit hooks updates: - [github.com/pre-commit/mirrors-clang-format: v21.1.2 → v21.1.6](pre-commit/mirrors-clang-format@v21.1.2...v21.1.6) - [github.com/astral-sh/ruff-pre-commit: v0.14.3 → v0.14.7](astral-sh/ruff-pre-commit@v0.14.3...v0.14.7) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](pre-commit/mirrors-mypy@v1.18.2...v1.19.0) - [github.com/PyCQA/pylint: v4.0.2 → v4.0.4](pylint-dev/pylint@v4.0.2...v4.0.4) - [github.com/python-jsonschema/check-jsonschema: 0.34.1 → 0.35.0](python-jsonschema/check-jsonschema@0.34.1...0.35.0) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 55e4bb9 commit d810d4f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ repos:
2525

2626
# Clang format the codebase automatically
2727
- repo: https://github.com/pre-commit/mirrors-clang-format
28-
rev: "v21.1.2"
28+
rev: "v21.1.6"
2929
hooks:
3030
- id: clang-format
3131
types_or: [c++, c, cuda]
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.14.3
35+
rev: v0.14.7
3636
hooks:
3737
- id: ruff-check
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.18.2"
43+
rev: "v1.19.0"
4444
hooks:
4545
- id: mypy
4646
args: []
@@ -135,14 +135,14 @@ repos:
135135

136136
# PyLint has native support - not always usable, but works for us
137137
- repo: https://github.com/PyCQA/pylint
138-
rev: "v4.0.2"
138+
rev: "v4.0.4"
139139
hooks:
140140
- id: pylint
141141
files: ^pybind11
142142

143143
# Check schemas on some of our YAML files
144144
- repo: https://github.com/python-jsonschema/check-jsonschema
145-
rev: 0.34.1
145+
rev: 0.35.0
146146
hooks:
147147
- id: check-readthedocs
148148
- id: check-github-workflows

tests/test_buffers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ TEST_SUBMODULE(buffers, m) {
237237
}
238238

239239
float operator()(py::ssize_t i, py::ssize_t j) const {
240-
return Matrix::operator()(i *m_row_factor, j *m_col_factor);
240+
return Matrix::operator()(i * m_row_factor, j * m_col_factor);
241241
}
242242

243243
float &operator()(py::ssize_t i, py::ssize_t j) {
244-
return Matrix::operator()(i *m_row_factor, j *m_col_factor);
244+
return Matrix::operator()(i * m_row_factor, j * m_col_factor);
245245
}
246246

247247
using Matrix::data;

0 commit comments

Comments
 (0)