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 exclude in coverage for if TYPE_CHECKING: branches #1278

Merged
merged 1 commit into from
May 25, 2023

Conversation

MegaIng
Copy link
Member

@MegaIng MegaIng commented May 25, 2023

A small addition to the cleanup PR that should increase coverage by ignoring code that is never supposed to be executed. See nedbat/coveragepy#831

I decided to add the code to pyproject.toml instead of adding another config file. The required tomli lib should be installed by default by pytest

@erezsh erezsh merged commit 41853ff into lark-parser:cleanup_may2023 May 25, 2023
@erezsh
Copy link
Member

erezsh commented May 25, 2023

Good idea!

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.

2 participants