ioos / compliance-checker

Python tool to check your datasets against compliance standards
http://ioos.github.io/compliance-checker/
Apache License 2.0
104 stars 56 forks source link

Remove assert statement #1083

Closed ocefpaf closed 1 month ago

ocefpaf commented 1 month ago

Asserts are dropped when using optimizations or compilers. They should be used only in tests, not in code. For more info see https://docs.astral.sh/ruff/rules/assert/

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 81.68%. Comparing base (0a84ef6) to head (b3f1891). Report is 1 commits behind head on develop.

Files Patch % Lines
compliance_checker/base.py 0.00% 1 Missing and 1 partial :warning:
compliance_checker/suite.py 0.00% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1083 +/- ## =========================================== - Coverage 81.75% 81.68% -0.07% =========================================== Files 25 25 Lines 5224 5226 +2 Branches 1253 1255 +2 =========================================== - Hits 4271 4269 -2 - Misses 644 646 +2 - Partials 309 311 +2 ```

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