Skip to content

Commit aa98d95

Browse files
chore(deps): update pre-commit hooks (#5123)
* chore(deps): update pre-commit hooks updates: - [github.com/pre-commit/mirrors-clang-format: v18.1.2 → v18.1.4](pre-commit/mirrors-clang-format@v18.1.2...v18.1.4) - [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.4.3](astral-sh/ruff-pre-commit@v0.3.5...v0.4.3) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](pre-commit/mirrors-mypy@v1.9.0...v1.10.0) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/python-jsonschema/check-jsonschema: 0.28.1 → 0.28.2](python-jsonschema/check-jsonschema@0.28.1...0.28.2) * style: pre-commit fixes * Update .pre-commit-config.yaml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent ede061c commit aa98d95

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.pre-commit-config.yaml

+6-6
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: "v18.1.2"
28+
rev: "v18.1.4"
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.3.5
35+
rev: v0.4.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.9.0"
43+
rev: "v1.10.0"
4444
hooks:
4545
- id: mypy
4646
args: []
@@ -62,7 +62,7 @@ repos:
6262

6363
# Standard hooks
6464
- repo: https://github.com/pre-commit/pre-commit-hooks
65-
rev: "v4.5.0"
65+
rev: "v4.6.0"
6666
hooks:
6767
- id: check-added-large-files
6868
- id: check-case-conflict
@@ -123,7 +123,7 @@ repos:
123123
hooks:
124124
- id: codespell
125125
exclude: ".supp$"
126-
args: ["-x.codespell-ignore-lines", "-Lccompiler"]
126+
args: ["-x.codespell-ignore-lines", "-Lccompiler,intstruct"]
127127

128128
# Check for common shell mistakes
129129
- repo: https://github.com/shellcheck-py/shellcheck-py
@@ -148,7 +148,7 @@ repos:
148148
files: ^pybind11
149149

150150
- repo: https://github.com/python-jsonschema/check-jsonschema
151-
rev: 0.28.1
151+
rev: 0.28.2
152152
hooks:
153153
- id: check-readthedocs
154154
- id: check-github-workflows

tests/test_class.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ TEST_SUBMODULE(class_, m) {
403403
// [workaround(intel)] = default does not work here
404404
// Removing or defaulting this destructor results in linking errors with the Intel compiler
405405
// (in Debug builds only, tested with icpc (ICC) 2021.1 Beta 20200827)
406-
~PublicistB() override{}; // NOLINT(modernize-use-equals-default)
406+
~PublicistB() override {}; // NOLINT(modernize-use-equals-default)
407407
using ProtectedB::foo;
408408
using ProtectedB::get_self;
409409
using ProtectedB::void_foo;

tests/test_numpy_dtypes.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ TEST_SUBMODULE(numpy_dtypes, m) {
348348
// is not a POD type
349349
struct NotPOD {
350350
std::string v;
351-
NotPOD() : v("hi"){};
351+
NotPOD() : v("hi") {};
352352
};
353353
PYBIND11_NUMPY_DTYPE(NotPOD, v);
354354
#endif

tests/test_stl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct hash<TplCtorClass> {
7878
template <template <typename> class OptionalImpl, typename T>
7979
struct OptionalHolder {
8080
// NOLINTNEXTLINE(modernize-use-equals-default): breaks GCC 4.8
81-
OptionalHolder(){};
81+
OptionalHolder() {};
8282
bool member_initialized() const { return member && member->initialized; }
8383
OptionalImpl<T> member = T{};
8484
};

tests/test_thread.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace py = pybind11;
2020
namespace {
2121

2222
struct IntStruct {
23-
explicit IntStruct(int v) : value(v){};
23+
explicit IntStruct(int v) : value(v) {};
2424
~IntStruct() { value = -value; }
2525
IntStruct(const IntStruct &) = default;
2626
IntStruct &operator=(const IntStruct &) = default;

0 commit comments

Comments
 (0)