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

Tell coveragepy to ignore type checking code and ... #1855

Merged
merged 3 commits into from Apr 20, 2022

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Apr 19, 2022

Summary of changes

This is so we can get a more accurate picture of coverage.

For more info see:

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

This patch removes code from `rdflib/` that does not seem like it belongs
in `rdflib/`, most of it is related to doctest, some of it belongs in
`test/` and was moved to `test/test_misc/test_collection.py`, and yet
more of it seems to just be there for debugging purposes, though it
would possibly be better to put that in a separate place if it is needed
again or to debug using tests if possible.

Other changes:
- Removed an invocation of `rdflib.util.test` from `test_util.py`. This
  seems like an attempt to invoke doctest however pytest takes care of
  that so this is not needed.
…ve_deadcode

Remove testing and debug code from rdflib
This is so we can get a more accurate picture of coverage.

For more info see:
- nedbat/coveragepy#831
@aucampia aucampia marked this pull request as ready for review April 19, 2022 17:31
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deffo.

@aucampia aucampia merged commit e4aae60 into RDFLib:master Apr 20, 2022
@aucampia
Copy link
Member Author

Merged with one review as this only changed coverage config: 7fb9eeb...e4aae60

@aucampia aucampia deleted the iwana-20220419T1752-coverage_ignore branch May 7, 2022 09:30
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

1 participant