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

Coverage: add more exclusions #7666

Merged
merged 5 commits into from
Jan 1, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Dec 31, 2023

Changes proposed in this pull request:

  • With recent Coverage.py, we can use exclude_also instead of exclude_lines which requires re-enabling the standard pragma
  • create_lut() was a helper method not run anywhere, should we delete it instead?
  • class TypeGuard is compatibility code being introduced in Add type hints to _util #7642. We have a # type: ignore[no-redef] on it, and I don't think we need to cover it in tests either.

@hugovk hugovk added the Testing label Dec 31, 2023
.coveragerc Outdated Show resolved Hide resolved
@nulano
Copy link
Contributor

nulano commented Dec 31, 2023

create_lut() was a helper method not run anywhere, should we delete it instead?

+1 for deleting it, it's easy to temporarily recreate if necessary.

@radarhere radarhere merged commit d6fd4c9 into python-pillow:main Jan 1, 2024
56 checks passed
@hugovk hugovk deleted the coverage-exclude_also branch January 1, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants