diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0085cb6fc19262b12505005da8b2c522019e9279..e2e9834af6fde384573b27f727e2d6db3206e1e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_branch: devel repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.7 + rev: v0.4.8 hooks: - id: ruff args: @@ -19,7 +19,7 @@ repos: - id: toml-sort-fix exclude: poetry.lock - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.3 + rev: v18.1.6 hooks: - id: clang-format args: diff --git a/include/hpp/manipulation/graph/dot.hh b/include/hpp/manipulation/graph/dot.hh index 7bde131c07d438c2736aaa545745546a9855609d..1ddeb737067d7157e34d0a2ffa7042217f4e9e2a 100644 --- a/include/hpp/manipulation/graph/dot.hh +++ b/include/hpp/manipulation/graph/dot.hh @@ -54,7 +54,7 @@ struct DrawingAttributes { } std::string& operator[](const std::string& K) { return attr[K]; } DrawingAttributes() - : separator(", "), openSection("["), closeSection("]"), attr(){}; + : separator(", "), openSection("["), closeSection("]"), attr() {}; }; struct Tooltip { @@ -62,7 +62,7 @@ struct Tooltip { typedef std::list<std::string> TooltipLineVector; TooltipLineVector v; - Tooltip() : v(){}; + Tooltip() : v() {}; inline std::string toStr() const { std::stringstream ss; size_t i = v.size(); diff --git a/include/hpp/manipulation/graph/graph-component.hh b/include/hpp/manipulation/graph/graph-component.hh index 11be055cfdec15b1785a224784f565b67f71c6c5..77880222ff9e8cfe144511970c9d0423a0e323ac 100644 --- a/include/hpp/manipulation/graph/graph-component.hh +++ b/include/hpp/manipulation/graph/graph-component.hh @@ -50,7 +50,7 @@ namespace graph { /// Define common methods of the graph components. class HPP_MANIPULATION_DLLAPI GraphComponent { public: - virtual ~GraphComponent(){}; + virtual ~GraphComponent() {}; /// Get the component name. const std::string& name() const; diff --git a/include/hpp/manipulation/graph/state-selector.hh b/include/hpp/manipulation/graph/state-selector.hh index aca693619fdec2ab5115d6cbff6963dbab912311..5287c79a08bf3acc604b8f173741f20ddefbc347 100644 --- a/include/hpp/manipulation/graph/state-selector.hh +++ b/include/hpp/manipulation/graph/state-selector.hh @@ -41,7 +41,7 @@ namespace graph { /// be ordered because a configuration can be in several states. class HPP_MANIPULATION_DLLAPI StateSelector { public: - virtual ~StateSelector(){}; + virtual ~StateSelector() {}; /// Create a new StateSelector. static StateSelectorPtr_t create(const std::string& name); diff --git a/include/hpp/manipulation/graph/statistics.hh b/include/hpp/manipulation/graph/statistics.hh index 84a1f5f80e86276f470f0e3359614d0567cca6bc..b8a41f73c26d21c18e0f55e4ab1cabeea8725447 100644 --- a/include/hpp/manipulation/graph/statistics.hh +++ b/include/hpp/manipulation/graph/statistics.hh @@ -103,7 +103,7 @@ class HPP_MANIPULATION_DLLLOCAL NodeBin : public ::hpp::statistics::Bin { class HPP_MANIPULATION_DLLLOCAL Histogram { public: - virtual ~Histogram(){}; + virtual ~Histogram() {}; virtual void add(const RoadmapNodePtr_t& node) = 0; diff --git a/include/hpp/manipulation/handle.hh b/include/hpp/manipulation/handle.hh index 5c366e1828756194e1b364a3cbf30a71be3d7139..04291ace3f9de2c03f1f2957aafb05d05ff56d8a 100644 --- a/include/hpp/manipulation/handle.hh +++ b/include/hpp/manipulation/handle.hh @@ -58,7 +58,7 @@ typedef constraints::ImplicitPtr_t ImplicitPtr_t; class HPP_MANIPULATION_DLLAPI Handle { public: static std::string className; - virtual ~Handle(){}; + virtual ~Handle() {}; /// Create constraint corresponding to a gripper grasping this object /// \param robot the robot that grasps the handle, diff --git a/include/hpp/manipulation/path-planner/states-path-finder.hh b/include/hpp/manipulation/path-planner/states-path-finder.hh index e30354117ce6d4644123793a11c086abcd443e61..2d2dd62bccd3a2a7a52580822de6f84f3be35f08 100644 --- a/include/hpp/manipulation/path-planner/states-path-finder.hh +++ b/include/hpp/manipulation/path-planner/states-path-finder.hh @@ -100,7 +100,7 @@ class HPP_MANIPULATION_DLLAPI StatesPathFinder : public core::PathPlanner { public: struct OptimizationData; - virtual ~StatesPathFinder(){}; + virtual ~StatesPathFinder() {}; static StatesPathFinderPtr_t create(const core::ProblemConstPtr_t& problem); diff --git a/src/graph/edge.cc b/src/graph/edge.cc index 7842db027c4cac36279aa5082a532fc904a526cd..b5a727e62649c98f114795a66a8d28bd43a488a0 100644 --- a/src/graph/edge.cc +++ b/src/graph/edge.cc @@ -445,7 +445,8 @@ bool WaypointEdge::build(core::PathPtr_t& path, ConfigurationIn_t q1, hppDout(info, "Waypoint edge " << name() << ": generateTargetConfig failed at waypoint " << i - << "." << "\nUse cache: " << useCache); + << "." + << "\nUse cache: " << useCache); lastSucceeded_ = false; return false; }