Skip to content

Expand TRPAttributes#18

Merged
Xarthisius merged 2 commits intomainfrom
updates
Feb 21, 2026
Merged

Expand TRPAttributes#18
Xarthisius merged 2 commits intomainfrom
updates

Conversation

@Xarthisius
Copy link
Contributor

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

  • Introduced MetaEnum and refactored TROVCapability and TRPAttribute into extensible enums (TROVTypeEnum) with utility methods for value listing and translation, replacing the previous mapping and string-based approach. (tro_utils/__init__.py tro_utils/init.pyR3-R66)
  • Expanded the list of supported capabilities and attributes, adding many new types to both TROVCapability and TRPAttribute. (tro_utils/__init__.py tro_utils/init.pyR3-R66)
  • Removed caps_mapping and 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

  • Changed function and method signatures throughout the codebase to accept attrs (attributes) instead of caps (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]
  • CLI options now use enum values for attribute selection, improving extensibility and clarity. (tro_utils/cli.py tro_utils/cli.pyL356-R358)

Version Update

  • Updated package version from 0.1.3 to 0.2.0 in pyproject.toml and from 0.1.0 to 0.2.0 in tro_utils/__init__.py to reflect breaking changes and new features. (pyproject.toml [1] tro_utils/__init__.py [2]

@codecov
Copy link

codecov bot commented Feb 21, 2026

Codecov Report

❌ Patch coverage is 92.85714% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.46%. Comparing base (9da12b3) to head (a9a41ca).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
tro_utils/__init__.py 95.74% 2 Missing ⚠️
tro_utils/tro_utils.py 75.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

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

@Xarthisius Xarthisius merged commit c12fb47 into main Feb 21, 2026
8 checks passed
@Xarthisius Xarthisius deleted the updates branch February 21, 2026 16:06
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.

1 participant