-
Notifications
You must be signed in to change notification settings - Fork 47
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 command-line option --allow-changes
to iodata-convert
#374
Conversation
Reviewer's Guide by SourceryThis pull request introduces a new command-line option File-Level Changes
Tips
|
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tovrstra - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟡 Testing: 3 issues found
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sourcery is really incredible at this....catches spelling errors even. Wow.
No concerns with this; the bot's a better reviewer than me ...
Thanks for the quick check. I'm going to fix that and follow one of its suggestions for unit tests. Sourcery sometimes has a good idea of what still needs testing, but actual code changes still require some human oversight. (Or I am too picky.) |
@sourcery-ai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tovrstra - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟡 Testing: 2 issues found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
It's indeed good at catching spelling mistakes. :) Even if not all the AI comments are spot on, it just makes you rethink things, which is also helpful. |
This addresses one of the steps of #191. The
iodata-convert
script gets an option to decide whether a (not trivially reversible) conversion of data should raise an error (default) or a warning (with the option). The default is not error when there is data degradation, out of an abundance of caution.Summary by Sourcery
This pull request introduces a new command-line option
--allow-changes
to theiodata-convert
script, allowing users to permit non-trivially reversible data conversions with warnings. Theconvert
function has been updated to support this new option, and corresponding unit tests have been added to ensure its correct functionality.--allow-changes
to theiodata-convert
script, allowing users to permit non-trivially reversible conversions with warnings instead of errors.convert
function to handle the newallow_changes
parameter, enabling conditional data modification for compatibility with the output format.--allow-changes
option, including scenarios where data degradation is allowed and where it raises errors.