-
Notifications
You must be signed in to change notification settings - Fork 1
Hea 572/relax data completeness constraint #179
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
Conversation
…_completeness_constraint_2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR relaxes data completeness constraints in the HEA database development pipeline by introducing a configurable strictness mode and updating the Python target version to 3.12.
- Adds configurable strict mode to handle validation errors as warnings instead of exceptions when strictness is disabled
- Updates Python target version from 3.10 to 3.12 across configuration files
- Refactors asset functions to use consistent return patterns and improved error handling
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Updates Python version requirements and tool configurations to target Python 3.12 |
| pipelines_tests/test_assets/test_livelihood_activity_regexes.json | Adds new test cases for wild food and fish gathering activities |
| pipelines/assets/wild_foods.py | Refactors asset functions to use config parameter and simplified return patterns |
| pipelines/assets/wealth_characteristic.py | Updates validation function call to include config parameter |
| pipelines/assets/other_cash_income.py | Refactors asset functions similar to wild_foods.py with config support |
| pipelines/assets/livelihood_activity_regexes.json | Adds new regex patterns for wild food and fish gathering with numeric support |
| pipelines/assets/livelihood_activity.py | Major refactoring to support configurable strictness and improved error handling |
| pipelines/assets/fixtures.py | Complete rewrite of validation logic to support per-instance validation and configurable strictness |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| record_reference += f"{instance['bss_column']}:{instance['bss_column']}: " | ||
| elif "bss_row" in instance: | ||
| record_reference += f"{instance['bss_row']}:{instance['bss_row']}: " | ||
| record_reference += f"{str({k: v for k,v in instance.items()})}" |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The dictionary comprehension and str() conversion creates verbose error messages. Consider limiting the keys shown or formatting the output more readably.
No description provided.