Skip to content

Commit 7dde109

Browse files
authored
Merge pull request #511 from stack-of-tasks/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 2caf583 + b6cdb2a commit 7dde109

File tree

6 files changed

+25
-24
lines changed

6 files changed

+25
-24
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 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.5.7
7+
rev: v0.6.9
88
hooks:
99
- id: ruff
1010
args:
@@ -22,12 +22,12 @@ repos:
2222
hooks:
2323
- id: toml-sort-fix
2424
- repo: https://github.com/pre-commit/mirrors-clang-format
25-
rev: v18.1.8
25+
rev: v19.1.1
2626
hooks:
2727
- id: clang-format
2828
args:
2929
- '--style={BasedOnStyle: Google, SortIncludes: false, Standard: Cpp03}'
3030
- repo: https://github.com/pre-commit/pre-commit-hooks
31-
rev: v4.6.0
31+
rev: v5.0.0
3232
hooks:
3333
- id: trailing-whitespace

include/eigenpy/angle-axis.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ 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",
59-
(Scalar(AngleAxis::*)() const) & AngleAxis::angle,
58+
.add_property("angle", (Scalar(AngleAxis::*)() const)&AngleAxis::angle,
6059
&AngleAxisVisitor::setAngle, "The rotation angle.")
6160

6261
/* --- Methods --- */

include/eigenpy/decompositions/LLT.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ struct LLTSolverVisitor
5454
bp::args("self", "vector", "sigma"), bp::return_self<>())
5555
#else
5656
.def("rankUpdate",
57-
(Solver(Solver::*)(const VectorXs &, const RealScalar &)) &
58-
Solver::template rankUpdate<VectorXs>,
57+
(Solver(Solver::*)(
58+
const VectorXs &,
59+
const RealScalar &))&Solver::template rankUpdate<VectorXs>,
5960
bp::args("self", "vector", "sigma"))
6061
#endif
6162

include/eigenpy/fwd.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343
EIGENPY_PRAGMA_WARNING(Deprecated : the_message)
4444
#define EIGENPY_PRAGMA_DEPRECATED_HEADER(old_header, new_header) \
4545
EIGENPY_PRAGMA_WARNING( \
46-
Deprecated header file \
47-
: #old_header has been replaced \
48-
by #new_header.\n Please use #new_header instead of #old_header.)
46+
Deprecated header file : #old_header has been replaced \
47+
by #new_header.\n Please use #new_header instead of #old_header.)
4948
#elif defined(WIN32)
5049
#define EIGENPY_PRAGMA(x) __pragma(#x)
5150
#define EIGENPY_PRAGMA_MESSAGE(the_message) \

python/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void exposeIsApprox() {
3232

3333
bp::def("is_approx",
3434
(bool (*)(const Eigen::MatrixBase<MatrixXs> &,
35-
const Eigen::MatrixBase<MatrixXs> &, const RealScalar &)) &
36-
is_approx,
35+
const Eigen::MatrixBase<MatrixXs> &,
36+
const RealScalar &))&is_approx,
3737
(bp::arg("A"), bp::arg("B"), bp::arg("prec") = dummy_precision),
3838
"Returns True if A is approximately equal to B, within the "
3939
"precision determined by prec.");

unittest/complex.cpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,19 @@ BOOST_PYTHON_MODULE(complex) {
6969
bp::def("ascomplex",
7070
ascomplex<long double, Eigen::Dynamic, Eigen::Dynamic, 0>);
7171

72-
bp::def("real", (MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &)) &
73-
real<MatrixXcf>);
74-
bp::def("real", (MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &)) &
75-
real<MatrixXcd>);
76-
bp::def("real", (MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &)) &
77-
real<MatrixXcld>);
72+
bp::def("real",
73+
(MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &))&real<MatrixXcf>);
74+
bp::def("real",
75+
(MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &))&real<MatrixXcd>);
76+
bp::def(
77+
"real",
78+
(MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &))&real<MatrixXcld>);
7879

79-
bp::def("imag", (MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &)) &
80-
imag<MatrixXcf>);
81-
bp::def("imag", (MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &)) &
82-
imag<MatrixXcd>);
83-
bp::def("imag", (MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &)) &
84-
imag<MatrixXcld>);
80+
bp::def("imag",
81+
(MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &))&imag<MatrixXcf>);
82+
bp::def("imag",
83+
(MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &))&imag<MatrixXcd>);
84+
bp::def(
85+
"imag",
86+
(MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &))&imag<MatrixXcld>);
8587
}

0 commit comments

Comments
 (0)