Skip to content

ENH: stricter handling of empty comment lines in description parsers#127

Merged
fedorov merged 1 commit intomainfrom
revise-description-parsing
Mar 25, 2026
Merged

ENH: stricter handling of empty comment lines in description parsers#127
fedorov merged 1 commit intomainfrom
revise-description-parsing

Conversation

@fedorov
Copy link
Copy Markdown
Member

@fedorov fedorov commented Mar 25, 2026

Summary

  • Table description parser: empty comment line (# alone) now stops collection, so only the actual description text is captured (e.g., excludes "Approach overview" section in volume_geometry_index.sql)
  • Column description parser: empty comment line inside a # description: block now raises ValueError with line number, catching accidental paragraph breaks early
  • Updated test to expect the new error behavior

Test plan

  • All 13 existing parser tests pass
  • test_empty_description_lines updated to assert ValueError is raised
  • Pre-commit checks pass

🤖 Generated with Claude Code

Table description parser now stops collecting at an empty comment line
(bare `#`), so only the actual description is captured. Column
description parser raises ValueError if an empty comment line appears
inside a `# description:` block, catching accidental paragraph breaks
early.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@fedorov fedorov merged commit a60979d into main Mar 25, 2026
10 checks passed
@fedorov fedorov deleted the revise-description-parsing branch March 25, 2026 15:30
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.

1 participant