Skip to content

Honor empty segments.all in yaml-generate - #124

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/empty-segments-all-2ccd
Sep 7, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/empty-segments-all-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Config.segments_all honors an explicit empty segments.all: []. yaml-generate used all or default, so an empty list was treated as missing:

  • discover_visual_map assigned Manim classes to default ids and rewrote visual_map.
  • manim.scenes sync walked default instead of empty all.
  • --list-gaps treated default ids as already in all.

This PR uses segments.all whenever the key is present (including []), and falls back to default only when all is missing or null.

Milestone: milestones/empty-segments-all.md. No clock / compile change.

Local gates

  • ruff check src/ tests/ — pass
  • pytest tests/ — 713 passed, 1 skipped
  • docgen benchmark — meets src/docgen/benchmark_data/baseline.json (no --update-baseline)
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 22:33
An explicit all: [] was treated as missing via `all or default`, so
discover_visual_map and manim.scenes sync walked default ids even
though Config.segments_all is empty. Use all whenever the key is
present, including an empty list.

Co-authored-by: jmjava <jmjava@gmail.com>
ruff, pytest (713 passed, 1 skipped), and docgen benchmark all green.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review September 7, 2026 22:34
@cursor
cursor Bot merged commit 64db0a0 into main Sep 7, 2026
6 checks passed
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