Repository navigation
fix: warn and leave skipped parse_currency out of the report - #550
Merged
Merged
Conversation
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Merged
When apply_plan replays a parse_currency step on data with a value that is not a currency string, it skips the column (#538). The CleanReport still listed the step as applied and nothing told the user. Now both backends warn with the column name, and the report leaves the step out.
JohnnyWilson16
force-pushed
the
fix/report-skipped-currency-jwd
branch
from
December 1, 2026 11:04
88be559 to
2cde983
Compare
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.
Stacked on #548 (it includes that CHANGELOG commit). Merge #548 first.
Cause
#538 made
apply_planskip a replayedparse_currencystep when the new data has a value that is not a currency string. That keeps the data safe. ButCleanReport.actionsstill listedparse_currencyas applied, and no warning told the user the column was unchanged.Change
backends.py: new_skip_currency()helper. Both backends call it when they skip. It records the action and warns:parse_currency skipped on column 'amount': it has values that are not currency strings. The column is unchanged.engine.py: the report keeps only the actions the backend did not skip.[Unreleased]→### Changed(public behavior change: newUserWarningand a shorterreport.actionsin this case).Check
tests/test_skipped_currency_report.py(pandas DataFrame, Polars DataFrame, Polars LazyFrame).Before (main 15488cb):
After:
Full suite: 127 passed, 2 skipped (mkdocs-material not installed locally). ruff and mypy clean.