Support multi-sheet workbooks#7
Merged
Merged
Conversation
Add optional --pfmea-sheet / --control-plan-sheet to select a worksheet by name in multi-sheet .xlsx files. When omitted, the active sheet is used (unchanged default). A missing sheet raises a clear ParseError listing the available sheet names; header auto-detection still applies to the selected sheet. Threaded through parse_pfmea / parse_control_plan / check_files. No change to scoring, matching, finding types or the JSON schema. Adds 9 tests (explicit selection, missing-sheet errors, default compatibility, header auto-detect on a selected sheet, CLI Markdown + JSON). Closes #4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #4 — read a chosen worksheet from a multi-sheet
.xlsx.Scope
--pfmea-sheet,--control-plan-sheet(select a worksheet by name).parse_pfmea/parse_control_plan/check_filesvia an optionalsheetarg.ParseErrorlisting the available sheet names.Tests (9 new, 63 total)
Limits (unchanged)
.xlsx-only, selection by name (no index). No CSV, no configurable mapping, no change to scoring / matching / finding types / JSON schema.Checklist
ruff+pytestgreen (63 tests)Closes #4.