Skip to content
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 ensure BZ2 #55

Merged
merged 3 commits into from
Oct 31, 2022
Merged

Add ensure BZ2 #55

merged 3 commits into from
Oct 31, 2022

Conversation

cthoyt
Copy link
Owner

@cthoyt cthoyt commented Oct 31, 2022

This PR adds an ensure_open_bz2 function that works similarly to ensure_open_gz. It also exposed a new function for opening BZ2-compressed JSON, like the one available in hetionet.

@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2022

Codecov Report

Merging #55 (c097cb8) into main (d84f24d) will increase coverage by 0.39%.
The diff coverage is 84.21%.

@@            Coverage Diff             @@
##             main      #55      +/-   ##
==========================================
+ Coverage   65.01%   65.40%   +0.39%     
==========================================
  Files          10       10              
  Lines         906      925      +19     
  Branches      153      147       -6     
==========================================
+ Hits          589      605      +16     
- Misses        296      299       +3     
  Partials       21       21              
Impacted Files Coverage Δ
src/pystow/__init__.py 100.00% <ø> (ø)
src/pystow/api.py 68.94% <62.50%> (-0.34%) ⬇️
src/pystow/impl.py 72.28% <100.00%> (+1.19%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cthoyt cthoyt merged commit ebdc314 into main Oct 31, 2022
@cthoyt cthoyt deleted the json-bz2 branch October 31, 2022 13:50
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants