Skip to content

Conversation

@benk-mira
Copy link
Contributor

@benk-mira benk-mira commented Jan 13, 2026

GEOPY-2632 - Simplify the BaseForm.infer method

@github-actions github-actions bot changed the title Geopy 2632 GEOPY-2632: Simplify the BaseForm.infer method Jan 13, 2026
@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 96.72131% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.16%. Comparing base (ef4d20c) to head (1564ad1).
⚠️ Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
geoh5py/ui_json/forms.py 96.61% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #829   +/-   ##
========================================
  Coverage    91.15%   91.16%           
========================================
  Files          113      113           
  Lines         9999    10017   +18     
  Branches      1883     1873   -10     
========================================
+ Hits          9115     9132   +17     
- Misses         468      473    +5     
+ Partials       416      412    -4     
Files with missing lines Coverage Δ
geoh5py/shared/utils.py 91.80% <ø> (ø)
geoh5py/ui_json/__init__.py 100.00% <100.00%> (ø)
geoh5py/ui_json/forms.py 95.79% <96.61%> (+1.01%) ⬆️

... and 2 files with indirect coverage changes

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

Copy link
Contributor

@domfournier domfournier left a comment

Choose a reason for hiding this comment

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

The logic is pretty complicated - I have flashbacks from InputFile.
Can you comment the lines for the different cases?

Copy link
Contributor

@domfournier domfournier left a comment

Choose a reason for hiding this comment

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

Looks great. Minor comments below

strict = isinstance(value, (int, float, bool))
validation.validate_python(value, strict=strict)
filtered_candidates.append(candidate)
except ValidationError:
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