mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-14 05:22:14 +00:00
annotate: compress conftest + pyproject comments (fix stale backend note)
The pyproject annotations-extra comment still described the removed
vllm/transformers in-process backends ('vllm preferred ... transformers
fallback', '_make_vllm_client'); rewrite it for the openai-only reality
and trim it. Also condense the conftest lazy-import NOTE. Comments only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,13 +26,10 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
# NOTE: ``build_annotation_dataset`` pulls in ``lerobot.datasets`` (-> the HF
|
||||
# ``datasets`` library + ``pandas``), which only ship under the ``dataset``
|
||||
# extra. It is imported LAZILY inside the fixtures below so this conftest
|
||||
# imports cleanly in dependency tiers without that extra (e.g. the base
|
||||
# ``--extra test`` fast-test tier). The annotation test modules guard
|
||||
# themselves with a module-level ``pytest.importorskip("datasets")`` so
|
||||
# their collection is skipped — never erroring — when the extra is absent.
|
||||
# ``build_annotation_dataset`` pulls in ``lerobot.datasets`` (HF ``datasets``
|
||||
# + ``pandas``, only in the ``dataset`` extra), so it's imported lazily inside
|
||||
# each fixture — this conftest stays importable without that extra. The test
|
||||
# modules ``pytest.importorskip("datasets")`` so they skip rather than error.
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user