-
Notifications
You must be signed in to change notification settings - Fork 54
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
MNT add helper functions to convert types to strings in .audit #215
MNT add helper functions to convert types to strings in .audit #215
Conversation
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.
Otherwise LGTM.
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.
Pretty good overall, thanks. I only have minor comments, please take a look.
PS: I didn't see Adrin's review when I wrote this one.
…f github.com:E-Aho/skops into ENH-Add-helper-functions-to-convert-types-to-strings
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.
Otherwise LGTM
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.
We can have a separate PR to work on the public API allowing users to pass types.
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.
Looks, great, this PR can be merged, there are just two minor improvements for docstrings that I would suggest.
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
you might want to enable pre-commit hooks, which include |
I've got that all set up on my personal computer, trying to wrestle through it on my work laptop atm to get this merged lol |
This is a good reminder to me how nice it is to have pre-commit hooks 🙃 Should be good to go now |
Note: I change the commit title to MNT since this doesn't expose any changes to the user. I feel like ENH has user-facing implications. |
A few minor changes to the new audit functionality that allows us to pass in types as well as strings as defaults.
This PR adds in a few helper functions to convert from types to their namespace strings, and a helper function that can convert any non-string
defaults
in a passed in list to their namespace.Also includes new tests that cover this added functionality