Skip to content
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

Add type annotations and other improvements #215

Merged
merged 4 commits into from
May 8, 2024

Conversation

michelletran-codecov
Copy link
Contributor

Just a few minor changes to improve the code quality:

  • fix the type annotation of coverage on ReportTotals and add comment
  • refactored _process_totals to be more readable
  • add type annotations to UserYaml.get_final_yaml

None of these changes should result in functional differences.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@michelletran-codecov michelletran-codecov requested a review from a team May 7, 2024 18:03
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.53%. Comparing base (f6c2c38) to head (d8ae62d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #215      +/-   ##
==========================================
- Coverage   89.54%   89.53%   -0.01%     
==========================================
  Files         327      327              
  Lines       10450    10449       -1     
  Branches     1822     1822              
==========================================
- Hits         9357     9356       -1     
  Misses       1020     1020              
  Partials       73       73              
Flag Coverage Δ
shared-docker-uploader ?
smart-labels 89.53% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@michelletran-codecov michelletran-codecov added this pull request to the merge queue May 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 7, 2024
This is because the type of coverage is _actually_ an optional
string (of a float of 5 decimal place precision... but I'm not adding
a validation for this). Fixing the type and adding a comment.
I also made the report generation more readable.
This is to make this more readable
@michelletran-codecov michelletran-codecov added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit fcaa997 May 8, 2024
10 checks passed
@michelletran-codecov michelletran-codecov deleted the fix_annotations branch May 8, 2024 19:52
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.

None yet

2 participants