Skip to content

Commit 65ebafd

Browse files
authored
Merge pull request #543 from stack-of-tasks/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 688783d + dd80395 commit 65ebafd

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44
autoupdate_schedule: quarterly
55
repos:
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: v0.8.6
7+
rev: v0.11.4
88
hooks:
99
- id: ruff
1010
args:
@@ -23,7 +23,7 @@ repos:
2323
- id: toml-sort-fix
2424
exclude: pixi.toml
2525
- repo: https://github.com/pre-commit/mirrors-clang-format
26-
rev: v19.1.6
26+
rev: v20.1.0
2727
hooks:
2828
- id: clang-format
2929
args:

include/eigenpy/angle-axis.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class AngleAxisVisitor : public bp::def_visitor<AngleAxisVisitor<AngleAxis> > {
5555
bp::make_function((Vector3 & (AngleAxis::*)()) & AngleAxis::axis,
5656
bp::return_internal_reference<>()),
5757
&AngleAxisVisitor::setAxis, "The rotation axis.")
58-
.add_property("angle", (Scalar(AngleAxis::*)() const)&AngleAxis::angle,
58+
.add_property("angle",
59+
(Scalar (AngleAxis::*)() const) & AngleAxis::angle,
5960
&AngleAxisVisitor::setAngle, "The rotation angle.")
6061

6162
/* --- Methods --- */

include/eigenpy/decompositions/LLT.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct LLTSolverVisitor
5454
bp::args("self", "vector", "sigma"), bp::return_self<>())
5555
#else
5656
.def("rankUpdate",
57-
(Solver(Solver::*)(
57+
(Solver (Solver::*)(
5858
const VectorXs &,
5959
const RealScalar &))&Solver::template rankUpdate<VectorXs>,
6060
bp::args("self", "vector", "sigma"))

include/eigenpy/decompositions/PermutationMatrix.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ struct PermutationMatrixVisitor
5757
bp::return_self<>())
5858

5959
.def("setIdentity",
60-
(void(PermutationMatrix::*)()) & PermutationMatrix::setIdentity,
60+
(void (PermutationMatrix::*)())&PermutationMatrix::setIdentity,
6161
bp::arg("self"),
6262
"Sets self to be the identity permutation matrix.")
6363
.def("setIdentity",
64-
(void(PermutationMatrix::*)(Eigen::DenseIndex)) &
65-
PermutationMatrix::setIdentity,
64+
(void (PermutationMatrix::*)(
65+
Eigen::DenseIndex))&PermutationMatrix::setIdentity,
6666
bp::args("self", "size"),
6767
"Sets self to be the identity permutation matrix of given size.")
6868

include/eigenpy/std-vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ struct reference_arg_from_python<std::vector<Type, Allocator> &>
211211

212212
result_type operator()() const {
213213
return ::boost::python::detail::void_ptr_to_reference(result(),
214-
(result_type(*)())0);
214+
(result_type (*)())0);
215215
}
216216

217217
~reference_arg_from_python() {

unittest/complex.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ BOOST_PYTHON_MODULE(complex) {
7070
ascomplex<long double, Eigen::Dynamic, Eigen::Dynamic, 0>);
7171

7272
bp::def("real",
73-
(MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &))&real<MatrixXcf>);
73+
(MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &))&real<MatrixXcf>);
7474
bp::def("real",
75-
(MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &))&real<MatrixXcd>);
75+
(MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &))&real<MatrixXcd>);
7676
bp::def(
7777
"real",
78-
(MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &))&real<MatrixXcld>);
78+
(MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &))&real<MatrixXcld>);
7979

8080
bp::def("imag",
81-
(MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &))&imag<MatrixXcf>);
81+
(MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &))&imag<MatrixXcf>);
8282
bp::def("imag",
83-
(MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &))&imag<MatrixXcd>);
83+
(MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &))&imag<MatrixXcd>);
8484
bp::def(
8585
"imag",
86-
(MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &))&imag<MatrixXcld>);
86+
(MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &))&imag<MatrixXcld>);
8787
}

0 commit comments

Comments
 (0)