Skip to content

Commit

Permalink
🧪 Omit third-party coverage @ site-packages
Browse files Browse the repository at this point in the history
This is a workaround for a coveragepy imperfection where it mistakenly
treats same-namespace third-party modules as same-project ones:
nedbat/coveragepy#1869.

Refs:
* nedbat/coveragepy#876
* nedbat/coveragepy#905
* nedbat/coveragepy@27d8255
* nedbat/coveragepy@5c2f614
  • Loading branch information
webknjaz committed Oct 4, 2024
1 parent 89433df commit 039e664
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ branch = true
cover_pylib = false
# https://coverage.rtfd.io/en/latest/contexts.html#dynamic-contexts
# dynamic_context = test_function # conflicts with `pytest-cov` if set here
# FIXME: drop `omit` post https://github.com/nedbat/coveragepy/issues/1869 fix
omit =
.tox/**
parallel = true
plugins =
covdefaults
Expand Down

0 comments on commit 039e664

Please sign in to comment.