From ebe6ea34dff5a56b85e56054b7c885b297f202be Mon Sep 17 00:00:00 2001 From: Khalil Meftah Date: Mon, 4 May 2026 20:20:05 +0200 Subject: [PATCH] refactor: clean up import statements --- .../policies/gaussian_actor/configuration_gaussian_actor.py | 2 +- src/lerobot/processor/hil_processor.py | 1 - src/lerobot/rl/algorithms/__init__.py | 2 +- src/lerobot/rl/algorithms/sac/__init__.py | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lerobot/policies/gaussian_actor/configuration_gaussian_actor.py b/src/lerobot/policies/gaussian_actor/configuration_gaussian_actor.py index f7fb6b03b..e6f9ebea1 100644 --- a/src/lerobot/policies/gaussian_actor/configuration_gaussian_actor.py +++ b/src/lerobot/policies/gaussian_actor/configuration_gaussian_actor.py @@ -1,4 +1,4 @@ -# !/usr/bin/env python +#!/usr/bin/env python # Copyright 2025 The HuggingFace Inc. team. # All rights reserved. diff --git a/src/lerobot/processor/hil_processor.py b/src/lerobot/processor/hil_processor.py index f18f1320d..e7351827b 100644 --- a/src/lerobot/processor/hil_processor.py +++ b/src/lerobot/processor/hil_processor.py @@ -4,7 +4,6 @@ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 diff --git a/src/lerobot/rl/algorithms/__init__.py b/src/lerobot/rl/algorithms/__init__.py index 31acda717..c09bd26fc 100644 --- a/src/lerobot/rl/algorithms/__init__.py +++ b/src/lerobot/rl/algorithms/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from .sac import SACAlgorithm as SACAlgorithm, SACAlgorithmConfig as SACAlgorithmConfig +from .sac import SACAlgorithm, SACAlgorithmConfig __all__ = [ "SACAlgorithm", diff --git a/src/lerobot/rl/algorithms/sac/__init__.py b/src/lerobot/rl/algorithms/sac/__init__.py index 6e0e76a66..9d076bcbb 100644 --- a/src/lerobot/rl/algorithms/sac/__init__.py +++ b/src/lerobot/rl/algorithms/sac/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from lerobot.rl.algorithms.sac.configuration_sac import SACAlgorithmConfig -from lerobot.rl.algorithms.sac.sac_algorithm import SACAlgorithm +from .configuration_sac import SACAlgorithmConfig +from .sac_algorithm import SACAlgorithm __all__ = ["SACAlgorithm", "SACAlgorithmConfig"]