-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Input Type Validation Made all functions that take input compatible with floats that are equal to ints. Fixed a few formatting issues. Added type validation for __init__: Checks wether p and n can be converted cleanly to int using %1. If they can't a TypeError is thrown. If %1 is zero then they are cast to int using int(). Added Type Validation for coordinates_from_distance: If h%1 is not 0 a TypeError is thrown. If h%1 is 0 h is cast to int using int(). Standardized Error Messages in coordinates_from_distance: Changed the ValueErrors thrown to the same formatting as the ValueErrors in __init__. Added Type Validation for distance_from_coordinates: If for any element in x element%1 is not 0 then a TypeError is thrown. Otherwise x is iterated through and each element is cast to int using int(). Formatting Correction in _binary_repr: "width:int" ->"width: int" * Fixed syntax and type checking Made an error in a error message syntax 0.0 != False so I changed how %1 is checked. * more tests and travis (#26) * more tests and travis * add empty requirements in order to not have to change travis later * misname * added python 3.6 and 3.7 to travis (#27) * Update README.rst * Update README.rst * Trav multi version (#28) * added python 3.6 and 3.7 to travis * travis typo * More tests explicit min (#29) * test bounds and explicit min * fixed docstring * extended type hints to floats (#30) * new pypi version (#31) Co-authored-by: C-Jameson <[email protected]>
- Loading branch information
1 parent
3363854
commit fcd750a
Showing
7 changed files
with
117 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: python | ||
python: | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
# command to install dependencies | ||
install: | ||
- pip install -r requirements.txt | ||
# command to run tests | ||
script: | ||
- pytest |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Metadata for this package.""" | ||
|
||
__package_name__ = "hilbertcurve" | ||
__version__ = "1.0.4" | ||
__version__ = "1.0.5" |
This file contains 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
Empty file.
This file contains 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