diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81daea13a..f62778c65 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.11.4 hooks: - id: ruff args: @@ -23,7 +23,7 @@ repos: - id: toml-sort-fix exclude: pixi.toml - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.6 + rev: v20.1.0 hooks: - id: clang-format args: diff --git a/include/eigenpy/angle-axis.hpp b/include/eigenpy/angle-axis.hpp index 84a5f2a2f..6181b07db 100644 --- a/include/eigenpy/angle-axis.hpp +++ b/include/eigenpy/angle-axis.hpp @@ -55,7 +55,8 @@ class AngleAxisVisitor : public bp::def_visitor > { bp::make_function((Vector3 & (AngleAxis::*)()) & AngleAxis::axis, bp::return_internal_reference<>()), &AngleAxisVisitor::setAxis, "The rotation axis.") - .add_property("angle", (Scalar(AngleAxis::*)() const)&AngleAxis::angle, + .add_property("angle", + (Scalar (AngleAxis::*)() const) & AngleAxis::angle, &AngleAxisVisitor::setAngle, "The rotation angle.") /* --- Methods --- */ diff --git a/include/eigenpy/decompositions/LLT.hpp b/include/eigenpy/decompositions/LLT.hpp index cb460c01a..8d2105f14 100644 --- a/include/eigenpy/decompositions/LLT.hpp +++ b/include/eigenpy/decompositions/LLT.hpp @@ -54,7 +54,7 @@ struct LLTSolverVisitor bp::args("self", "vector", "sigma"), bp::return_self<>()) #else .def("rankUpdate", - (Solver(Solver::*)( + (Solver (Solver::*)( const VectorXs &, const RealScalar &))&Solver::template rankUpdate, bp::args("self", "vector", "sigma")) diff --git a/include/eigenpy/decompositions/PermutationMatrix.hpp b/include/eigenpy/decompositions/PermutationMatrix.hpp index d66396c85..7c11c7a63 100644 --- a/include/eigenpy/decompositions/PermutationMatrix.hpp +++ b/include/eigenpy/decompositions/PermutationMatrix.hpp @@ -57,12 +57,12 @@ struct PermutationMatrixVisitor bp::return_self<>()) .def("setIdentity", - (void(PermutationMatrix::*)()) & PermutationMatrix::setIdentity, + (void (PermutationMatrix::*)())&PermutationMatrix::setIdentity, bp::arg("self"), "Sets self to be the identity permutation matrix.") .def("setIdentity", - (void(PermutationMatrix::*)(Eigen::DenseIndex)) & - PermutationMatrix::setIdentity, + (void (PermutationMatrix::*)( + Eigen::DenseIndex))&PermutationMatrix::setIdentity, bp::args("self", "size"), "Sets self to be the identity permutation matrix of given size.") diff --git a/include/eigenpy/std-vector.hpp b/include/eigenpy/std-vector.hpp index 08850a8d7..651cfd1a2 100644 --- a/include/eigenpy/std-vector.hpp +++ b/include/eigenpy/std-vector.hpp @@ -211,7 +211,7 @@ struct reference_arg_from_python &> result_type operator()() const { return ::boost::python::detail::void_ptr_to_reference(result(), - (result_type(*)())0); + (result_type (*)())0); } ~reference_arg_from_python() { diff --git a/unittest/complex.cpp b/unittest/complex.cpp index 9595f2a00..387b04d36 100644 --- a/unittest/complex.cpp +++ b/unittest/complex.cpp @@ -70,18 +70,18 @@ BOOST_PYTHON_MODULE(complex) { ascomplex); bp::def("real", - (MatrixXf(*)(const Eigen::MatrixBase &))&real); + (MatrixXf (*)(const Eigen::MatrixBase &))&real); bp::def("real", - (MatrixXd(*)(const Eigen::MatrixBase &))&real); + (MatrixXd (*)(const Eigen::MatrixBase &))&real); bp::def( "real", - (MatrixXld(*)(const Eigen::MatrixBase &))&real); + (MatrixXld (*)(const Eigen::MatrixBase &))&real); bp::def("imag", - (MatrixXf(*)(const Eigen::MatrixBase &))&imag); + (MatrixXf (*)(const Eigen::MatrixBase &))&imag); bp::def("imag", - (MatrixXd(*)(const Eigen::MatrixBase &))&imag); + (MatrixXd (*)(const Eigen::MatrixBase &))&imag); bp::def( "imag", - (MatrixXld(*)(const Eigen::MatrixBase &))&imag); + (MatrixXld (*)(const Eigen::MatrixBase &))&imag); }