Skip to content

Conversation

@jtrobles-cdd
Copy link
Member

  • Improve type annotation of Rut(value). Rut.__init__() is able to accept values of type Rut by converting them to str, so a more appropriate type annotation for value is str | Rut instead of just str.
  • Add method validate_dv() to Rut. This method is useful when we want to validate the DV of a Rut that was instantiated with validate_dv=False.
  • Refactor validation of DV in Rut.__init__().

`Rut.__init__()` is able to accept values of type `Rut` by converting
them to `str`, so a more appropriate type annotation for `value` is
`str | Rut` instead of just `str`.
This method is useful when we want to validate the DV of a `Rut` that
was instantiated with `validate_dv=False`.
@jtrobles-cdd jtrobles-cdd added enhancement New feature or request component: rut labels Oct 10, 2024
@jtrobles-cdd jtrobles-cdd self-assigned this Oct 10, 2024
@jtrobles-cdd jtrobles-cdd requested a review from a team as a code owner October 10, 2024 22:41
@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.63%. Comparing base (05e1f30) to head (6321d3a).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #721      +/-   ##
===========================================
+ Coverage    87.61%   87.63%   +0.01%     
===========================================
  Files           38       38              
  Lines         3134     3139       +5     
  Branches       386      386              
===========================================
+ Hits          2746     2751       +5     
  Misses         246      246              
  Partials       142      142              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarqubecloud
Copy link

@jtrobles-cdd jtrobles-cdd merged commit 4b52749 into develop Oct 11, 2024
@jtrobles-cdd jtrobles-cdd deleted the task/improve-rut branch October 11, 2024 14:43
@svillegas-cdd svillegas-cdd mentioned this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: rut enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants