tensorwerk / hangar-py

Hangar is version control for tensor data. Commit, branch, merge, revert, and collaborate in the data-defined software era.
Apache License 2.0
204 stars 29 forks source link

added hash type codes #165

Closed rlizzo closed 4 years ago

rlizzo commented 4 years ago

Motivation and Context

Why is this change required? What problem does it solve?:

Add type codes for hashes used to calculate data hash digests.

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Is this PR ready for review, or a work in progress?

How Has This Been Tested?

Put an x in the boxes that apply:

Checklist:

codecov[bot] commented 4 years ago

Codecov Report

Merging #165 into master will increase coverage by 0.02%. The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
+ Coverage   95.14%   95.16%   +0.02%     
==========================================
  Files          65       66       +1     
  Lines       11831    11878      +47     
  Branches     1024     1029       +5     
==========================================
+ Hits        11256    11303      +47     
- Misses        384      385       +1     
+ Partials      191      190       -1
Impacted Files Coverage Δ
tests/test_commit_ref_verification.py 100% <ø> (ø) :arrow_up:
src/hangar/records/parsing.py 98.52% <100%> (+0.02%) :arrow_up:
tests/property_based/test_pbb_valid_hash_tcodes.py 100% <100%> (ø)
tests/property_based/test_pbt_arrayset.py 100% <100%> (ø) :arrow_up:
src/hangar/cli/cli.py 89.52% <100%> (ø) :arrow_up:
tests/test_remote_serialize.py 100% <100%> (ø) :arrow_up:
src/hangar/remote/server.py 77.47% <100%> (+0.18%) :arrow_up:
src/hangar/records/commiting.py 89.92% <100%> (ø) :arrow_up:
tests/test_dataloaders.py 98.88% <100%> (ø) :arrow_up:
src/hangar/records/hashmachine.py 100% <100%> (ø) :arrow_up:
... and 6 more