镜像自地址
https://github.com/MINT-SJTU/Evo-RL.git
已同步 2026-11-20 18:17:06 +00:00
fix(ci): resolve quality pre-commit failures on main
- avoid E402 in sarm subtask test via importlib-based lazy module load - update value_infer_viz wording and formatting to satisfy typos/ruff-format - add explicit strict=True for zip to satisfy ruff B905
这个提交包含在:
@ -14,6 +14,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import importlib
|
||||
|
||||
import pytest
|
||||
|
||||
transformers = pytest.importorskip("transformers")
|
||||
@ -23,12 +25,11 @@ if not hasattr(transformers, "Qwen3VLMoeForConditionalGeneration"):
|
||||
allow_module_level=True,
|
||||
)
|
||||
|
||||
from lerobot.data_processing.sarm_annotations.subtask_annotation import (
|
||||
Subtask,
|
||||
SubtaskAnnotation,
|
||||
Timestamp,
|
||||
compute_temporal_proportions,
|
||||
)
|
||||
subtask_annotation = importlib.import_module("lerobot.data_processing.sarm_annotations.subtask_annotation")
|
||||
Subtask = subtask_annotation.Subtask
|
||||
SubtaskAnnotation = subtask_annotation.SubtaskAnnotation
|
||||
Timestamp = subtask_annotation.Timestamp
|
||||
compute_temporal_proportions = subtask_annotation.compute_temporal_proportions
|
||||
|
||||
|
||||
def make_annotation(subtasks: list[tuple[str, int, int]]) -> SubtaskAnnotation:
|
||||
|
||||
在新工单中引用
屏蔽一个用户