-
Notifications
You must be signed in to change notification settings - Fork 0
Centralize shared in the library. #14
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
* Update version to v0.1.12 and refactor attributes * Add docstrings to methods in shared.py Added docstrings for methods in shared.py to improve code documentation and clarity. * Update SCR/valetudo_map_parser/config/shared.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update SCR/valetudo_map_parser/config/shared.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update SCR/valetudo_map_parser/config/shared.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update SCR/valetudo_map_parser/config/shared.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update SCR/valetudo_map_parser/config/shared.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update SCR/valetudo_map_parser/config/shared.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… shared updated locally Signed-off-by: Sandro Cantarella <sandro@a3a68459-3659-4d50-ae96-08f848c5a8b3.fritz.box>
sca075
left a comment
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.
all okay
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 centralizes shared data management in the Valetudo map parser library by modifying the async_get_image method to return a tuple containing both PIL image and data dictionary, making this a breaking change. The PR also updates the workflow to use trusted publishing for PyPI releases.
- Modified async_get_image to return tuple (PIL image, data dictionary) instead of just PIL image
- Added centralized shared data update mechanism through _async_update_shared_data method
- Updated GitHub workflow to use trusted publishing for PyPI releases
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Version bump from 0.1.10rc5 to 0.1.10rc6 |
| SCR/valetudo_map_parser/hypfer_handler.py | Modified get_calibration_data to accept rotation_angle parameter |
| SCR/valetudo_map_parser/config/utils.py | Updated async_get_image return type and added shared data centralization |
| SCR/valetudo_map_parser/config/types.py | Added new TypedDict classes for destinations structure |
| SCR/valetudo_map_parser/config/shared.py | Code cleanup and added to_dict method for data serialization |
| .github/workflows/release.yaml | Updated to use trusted publishing instead of manual token configuration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sandro Cantarella <sandro@a3a68459-3659-4d50-ae96-08f848c5a8b3.fritz.box>
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
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
We already made the shared to dictionary possible and this changes we update the shared data locally at current we return a pil and data dictionary so this is a braking change. Workflow release changed.