-
Notifications
You must be signed in to change notification settings - Fork 20
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
refactor: separate isfloat
into a new file within validators.py
and rename to is_number
#301
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.
I reran auto_api just to ensure the new api is loading since we've created a new file src/diffpy/utils/validators.py
@@ -17,6 +17,8 @@ | |||
|
|||
import numpy | |||
|
|||
from diffpy.utils import validators |
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.
import is_number
from validators
tests/test_validators.py
Outdated
from diffpy.utils.validators import is_number | ||
import pytest | ||
|
||
@pytest.mark.parametrize("input,expected", [ |
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.
Lots of tests
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #301 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 9 +1
Lines 511 516 +5
=========================================
+ Hits 511 516 +5
|
isfloat
into a separate file within validators.py
and rename to is_number
isfloat
into a new file within validators.py
and rename to is_number
@sbillinge ready for review - seems like we are all done with 3.6.0 issues on time! Dec 30th. I also spoke to Lucas as well. Once merged, I will use this PR as an educational material. |
very beautiful. |
Closes #7