From 1ec9392bcbb743e7d91bad13931242ae5ca37f50 Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Tue, 24 Feb 2026 15:03:36 +0100 Subject: [PATCH] chore(style): pre-commit envs --- docs/source/envhub.mdx | 1 + src/lerobot/envs/factory.py | 4 +++- src/lerobot/scripts/lerobot_eval.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/source/envhub.mdx b/docs/source/envhub.mdx index 7aa8024c0..e5162c1a2 100644 --- a/docs/source/envhub.mdx +++ b/docs/source/envhub.mdx @@ -314,6 +314,7 @@ lerobot-eval \ ``` All `--env_kwargs.*` arguments will be collected into a dictionary and passed as keyword arguments to the hub environment's `make_env` function. This allows you to: + - Pass configuration file paths - Override default settings - Specify custom task parameters diff --git a/src/lerobot/envs/factory.py b/src/lerobot/envs/factory.py index 538aa0a1d..223304784 100644 --- a/src/lerobot/envs/factory.py +++ b/src/lerobot/envs/factory.py @@ -155,7 +155,9 @@ def make_env( # call the hub-provided make_env with any additional kwargs env_cfg = None if isinstance(cfg, str) else cfg - raw_result = _call_make_env(module, n_envs=n_envs, use_async_envs=use_async_envs, cfg=env_cfg, **kwargs) + raw_result = _call_make_env( + module, n_envs=n_envs, use_async_envs=use_async_envs, cfg=env_cfg, **kwargs + ) # normalize the return into {suite: {task_id: vec_env}} return _normalize_hub_result(raw_result) diff --git a/src/lerobot/scripts/lerobot_eval.py b/src/lerobot/scripts/lerobot_eval.py index f8c5a9e6e..dce0e0565 100644 --- a/src/lerobot/scripts/lerobot_eval.py +++ b/src/lerobot/scripts/lerobot_eval.py @@ -532,7 +532,7 @@ def eval_main(cfg: EvalPipelineConfig): n_envs=cfg.eval.batch_size, use_async_envs=cfg.eval.use_async_envs, trust_remote_code=cfg.trust_remote_code, - **cfg.env_kwargs + **cfg.env_kwargs, ) logging.info("Making policy.")