Skip to content

Conversation

@domfournier
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Nov 18, 2025

Codecov Report

❌ Patch coverage is 78.94737% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.83%. Comparing base (00f7c81) to head (3fafd47).

Files with missing lines Patch % Lines
geoh5py/shared/validators.py 63.63% 4 Missing and 4 partials ⚠️
geoh5py/ui_json/forms.py 86.66% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #810      +/-   ##
===========================================
- Coverage    90.86%   90.83%   -0.03%     
===========================================
  Files          113      113              
  Lines         9871     9911      +40     
  Branches      1837     1845       +8     
===========================================
+ Hits          8969     9003      +34     
- Misses         488      491       +3     
- Partials       414      417       +3     
Files with missing lines Coverage Δ
geoh5py/groups/__init__.py 100.00% <100.00%> (ø)
geoh5py/ui_json/ui_json.py 88.19% <100.00%> (+1.66%) ⬆️
geoh5py/ui_json/forms.py 94.54% <86.66%> (-1.31%) ⬇️
geoh5py/shared/validators.py 89.30% <63.63%> (-1.66%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +141 to +142
UidOrNumeric = UUID | float | int | None
StringOrNumeric = str | float | int
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move to ui_json.annotations. I would like to eventually remove this module when we deprecate Params



# pylint: disable=too-many-return-statements
# pylint: disable=too-many-return-statements, too-many-branches
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move the exception at the function level instead of the entire file. Will be easier to refactor later.

StringOrNumeric = str | float | int


def uuid_to_string_or_numeric(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move to ui_json.utils

return self.value


OptionalUUIDList = Annotated[
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also move to ui_json.annotations

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.

3 participants