Repository navigation
Add try_get_chapters to scripture parsing - #407
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #407 +/- ##
=======================================
Coverage 92.16% 92.17%
=======================================
Files 396 396
Lines 25199 25225 +26
=======================================
+ Hits 23225 23251 +26
Misses 1974 1974 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
@claude Please address the comments on this PR.
@Enkidu93 reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: 1 of 3 files reviewed, 3 unresolved discussions.
|
@claude Please address the comments on this PR. |
|
Claude finished @Enkidu93's task in 3m 54s —— View job Addressed the review comments
F3 departs from the C# |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Eli C. Lowry <83078660+Enkidu93@users.noreply.github.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Eli C. Lowry <83078660+Enkidu93@users.noreply.github.com>
3a4f240 to
039e269
Compare
| with raises(ValueError): | ||
| get_chapters("OT,MAT-LUK") | ||
|
|
||
| # empty segments |
There was a problem hiding this comment.
FYI: F4. The empty-segment guard is tested only through string input with a doubled or lone ;. The list path (get_chapters(["MAT", ""]), ["-"], [""]) and a trailing delimiter ("MAT;") used to raise IndexError and now raise ValueError, which I confirmed by running them. No test pins this, so if it regresses, try_get_chapters raises again. Add one or two of these.
|
Verdict: approve. What matters most: the PR description still says Counts: Critical 0, Important 0, Low 1 new. What I ran: the branch was rebased (compare What I could not verify: Public API: Dropped: the unsorted merge in
Reviewed at 039e269 |
Enkidu93
left a comment
There was a problem hiding this comment.
@Enkidu93 reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion.
Ports machine PR 497 (sillsdev/machine#497): adds try_get_chapters, a non-raising counterpart to get_chapters. It returns (True, chapters) on success and (False, None) when get_chapters raises ValueError, the Python form of the C# out parameter. Exported from machine.scripture. The C# namespace move and SIL.Scripture qualification fixes are C#-only and skipped. Added test_try_get_chapters. ./local_check.sh --agent-strict passed (864 passed, 3 skipped). Closes issue 380 - Closes #380. 🤖 Generated with Claude Code
This change is