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

Fix deepsource.io issues #1080

Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Jul 17, 2022

See https://deepsource.io/gh/DimitriPapadopoulos/zarr-python/ for complete list of issues.

Not all issues make sense. Some of them are false positives, others may result in less readable code.

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/tutorial.rst
  • Changes documented in docs/release.rst
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@codecov
Copy link

codecov bot commented Jul 17, 2022

Codecov Report

Merging #1080 (0aca1fd) into main (4b83302) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1080   +/-   ##
=======================================
  Coverage   99.94%   99.94%           
=======================================
  Files          34       34           
  Lines       13846    13846           
=======================================
  Hits        13839    13839           
  Misses          7        7           
Impacted Files Coverage Δ
zarr/convenience.py 100.00% <100.00%> (ø)
zarr/hierarchy.py 99.78% <100.00%> (ø)
zarr/storage.py 100.00% <100.00%> (ø)
zarr/tests/test_convenience.py 100.00% <100.00%> (ø)
zarr/tests/test_creation.py 100.00% <100.00%> (ø)
zarr/tests/test_hierarchy.py 100.00% <100.00%> (ø)
zarr/tests/test_storage.py 100.00% <100.00%> (ø)

Copy link
Member

@joshmoore joshmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, @DimitriPapadopoulos. Can you update docs/releases.rst?

An instance of the pre-Python 2.5 ternary syntax is being used.
Using [condition] and [on_true] or [on_false] may give wrong
results when on_true has a false boolean value.
Unlike pop() which raises a KeyError by default, get() returns None by default.
@DimitriPapadopoulos
Copy link
Contributor Author

Done.

@joshmoore
Copy link
Member

Thanks, @DimitriPapadopoulos!

@joshmoore joshmoore merged commit ece1810 into zarr-developers:main Jul 19, 2022
@DimitriPapadopoulos DimitriPapadopoulos deleted the fix_deepsource.io_issues branch July 19, 2022 19:12
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.

None yet

2 participants