-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logic to report reform parameter warnings and errors #1524
Add logic to report reform parameter warnings and errors #1524
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1524 +/- ##
======================================
Coverage 100% 100%
======================================
Files 37 37
Lines 2521 2565 +44
======================================
+ Hits 2521 2565 +44
Continue to review full report at Codecov.
|
Using the CLI
Notice that there is no output from the reform that contains a logic error, but that |
Unless I hear any suggestions about how to better implement reform parameter warnings and errors, I plan to merge #1524 at the end of the work day on Thursday, August 24. @MattHJensen @feenberg @Amy-Xu @andersonfrailey @hdoupe @GoFroggyRun @codykallen |
This pull request implements the approach to warnings and errors discussed at the end of the discussion in TaxBrain issue 630. As such, it replaces the less flexible approach used in #1502.
The Tax-Calculator CLI, tc, now uses these warning and error messages. See the changes to the
taxcalcio.py
file for details.TaxBrain can use this new Tax-Calculator capability by calling the
reform_warnings_errors
function in thedropq.py
file, which is new to the Tax-Calculator public API. Read this new function's docstring carefully before using it in TaxBrain. The consensus in #630 is to show warnings and proceed with tax calculation if there are no errors. If there are errors, we should show all the warning and error messages and then stop without doing any tax calculations. That is what the Tax-Calculator CLI, tc, does now.If anyone sees a better way to provide these capabilities, please make your suggestion here.
@MattHJensen @feenberg @Amy-Xu @andersonfrailey @hdoupe @GoFroggyRun @codykallen
@jdebacker @rickecon @brittainhard @talumbau