ghiggi / gpm_api

Global Precipitation Measurement Mission (GPM) python package to download and analyze data with xarray
https://gpm-api.readthedocs.io
MIT License
46 stars 4 forks source link

Refactor code style #53

Closed ghiggi closed 3 months ago

ghiggi commented 3 months ago

Prework

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and communicate accordingly:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

Summary

Add several ruff pre-commit rules and fix code to pass the pre-commit checks.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 88.31325% with 97 lines in your changes are missing coverage. Please review.

Project coverage is 87.86%. Comparing base (03a7204) to head (21548d4).

Files Patch % Lines
gpm/visualization/profile.py 0.00% 15 Missing :warning:
gpm/dataset/crs.py 75.92% 13 Missing :warning:
gpm/dataset/conventions.py 42.85% 8 Missing :warning:
gpm/utils/checks.py 85.36% 6 Missing :warning:
gpm/io/local.py 64.28% 5 Missing :warning:
gpm/retrievals/routines.py 0.00% 5 Missing :warning:
gpm/tests/utils/hdf5.py 0.00% 5 Missing :warning:
gpm/accessor/methods.py 76.47% 4 Missing :warning:
gpm/dataset/dataset.py 0.00% 4 Missing :warning:
gpm/dataset/datatree.py 20.00% 4 Missing :warning:
... and 16 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #53 +/- ## ========================================== + Coverage 87.66% 87.86% +0.19% ========================================== Files 111 111 Lines 10534 10248 -286 ========================================== - Hits 9235 9004 -231 + Misses 1299 1244 -55 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

coveralls commented 3 months ago

Coverage Status

coverage: 87.861% (+0.2%) from 87.669% when pulling 21548d4785691081f533eb0bb47883a2795106d0 on refactor-code-style into 03a72041e77dd261d44c6980fd0299aee5328ba5 on main.