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 coverage exclusion of lines within if TYPE_CHECKING: #16

Merged
merged 3 commits into from
Apr 19, 2022

Conversation

mattkram
Copy link
Contributor

Small tweak to .coveragerc based on this recommendation: nedbat/coveragepy#831 (comment)

This is to ensure imports used during type checking are not included in the coverage report, since they are never run.

@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2022

Codecov Report

Merging #16 (3576a79) into main (579bd02) will increase coverage by 0.85%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main       #16      +/-   ##
===========================================
+ Coverage   99.14%   100.00%   +0.85%     
===========================================
  Files           6         6              
  Lines         117       115       -2     
===========================================
- Hits          116       115       -1     
+ Misses          1         0       -1     
Impacted Files Coverage Δ
conda_project/cli/main.py 100.00% <0.00%> (+2.77%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 579bd02...3576a79. Read the comment docs.

@mattkram mattkram changed the title Add exclusion of lines within if TYPE_CHECKING: Add exclusion of lines within if TYPE_CHECKING: Apr 19, 2022
@mattkram mattkram changed the title Add exclusion of lines within if TYPE_CHECKING: Add coverage exclusion of lines within if TYPE_CHECKING: Apr 19, 2022
@AlbertDeFusco AlbertDeFusco merged commit e842402 into main Apr 19, 2022
@AlbertDeFusco AlbertDeFusco deleted the codecov-tweak branch April 19, 2022 12:21
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.

3 participants