Skip to content

Add type aliases#8

Open
lukeschmitt-tr wants to merge 1 commit intographite-base/8from
04-15-add_type_aliases
Open

Add type aliases#8
lukeschmitt-tr wants to merge 1 commit intographite-base/8from
04-15-add_type_aliases

Conversation

@lukeschmitt-tr
Copy link
Copy Markdown
Contributor

@lukeschmitt-tr lukeschmitt-tr commented Apr 16, 2026

Add aliases for dataset types.

Copy link
Copy Markdown
Contributor Author

lukeschmitt-tr commented Apr 16, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

This was referenced Apr 16, 2026
@lukeschmitt-tr lukeschmitt-tr marked this pull request as ready for review April 16, 2026 03:05
@lukeschmitt-tr lukeschmitt-tr force-pushed the 04-15-auto-detect_dataset_types branch from b3b0c65 to 5de06ea Compare May 8, 2026 03:58
@lukeschmitt-tr lukeschmitt-tr force-pushed the 04-15-add_type_aliases branch from 3254290 to 12b6778 Compare May 8, 2026 03:58
@lukeschmitt-tr lukeschmitt-tr requested a review from Copilot May 8, 2026 04:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for short --type aliases when uploading/importing datasets, improving CLI ergonomics while preserving strict validation via DatasetType.

Changes:

  • Introduced --type alias resolution (lerobotlerobot_v3, mcaptrossenmcap) with centralized parsing/validation.
  • Updated dataset type resolution messaging to mention aliases.
  • Added CLI tests covering alias acceptance and invalid --type rejection.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/trossen_cloud_cli/commands/datasets.py Adds alias mapping + parsing helper and wires it into upload and import-hf.
tests/test_validators.py Adds CLI tests verifying alias handling and invalid type errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/trossen_cloud_cli/commands/datasets.py
Comment thread tests/test_validators.py
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

print_success(f"Downloaded to {local_path}")

dataset_type = _resolve_dataset_type(local_path, dataset_type)
dataset_type = _resolve_dataset_type(local_path, _parse_dataset_type(dataset_type_str))
Comment on lines +121 to +123
require_auth()

dataset_type = _resolve_dataset_type(path, dataset_type)
dataset_type = _resolve_dataset_type(path, _parse_dataset_type(dataset_type_str))
Comment on lines 265 to 268
print_success(f"Downloaded to {local_path}")

dataset_type = _resolve_dataset_type(local_path, dataset_type)
dataset_type = _resolve_dataset_type(local_path, _parse_dataset_type(dataset_type_str))

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@lukeschmitt-tr lukeschmitt-tr changed the base branch from 04-15-auto-detect_dataset_types to graphite-base/8 May 8, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants