Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18 +/- ##
==========================================
+ Coverage 91.36% 91.46% +0.10%
==========================================
Files 3 3
Lines 463 504 +41
==========================================
+ Hits 423 461 +38
- Misses 40 43 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a significant refactor and expansion of capability and attribute handling in the TRO utilities package. The most important changes include replacing the previous capability mapping logic with extensible enums, updating all relevant interfaces and tests to use the new enums, and incrementing the package version to reflect these breaking changes.
Capability and Attribute Refactor
MetaEnumand refactoredTROVCapabilityandTRPAttributeinto extensible enums (TROVTypeEnum) with utility methods for value listing and translation, replacing the previous mapping and string-based approach. (tro_utils/__init__.pytro_utils/init.pyR3-R66)TROVCapabilityandTRPAttribute. (tro_utils/__init__.pytro_utils/init.pyR3-R66)caps_mappingand updated all internal logic to use enum values and translation methods instead. (tro_utils/__init__.py[1]tro_utils/tro_utils.py[2] [3]API and CLI Changes
attrs(attributes) instead ofcaps(capabilities), including in CLI commands, internal APIs, and tests. (tro_utils/cli.py[1] [2] [3]tro_utils/tro_utils.py[4] [5]tests/test_tro_utils.py[6] [7] [8] [9]tro_utils/cli.pytro_utils/cli.pyL356-R358)Version Update
0.1.3to0.2.0inpyproject.tomland from0.1.0to0.2.0intro_utils/__init__.pyto reflect breaking changes and new features. (pyproject.toml[1]tro_utils/__init__.py[2]