Skip to content

Commit

Permalink
fix cov
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Aug 6, 2024
1 parent 355c470 commit f9babce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[run]
source = src/numba_stats
relative_files = True

[report]
exclude_lines =
pragma: no cover
4 changes: 4 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def maxtest(session: nox.Session) -> None:
@nox.session(python="3.12", reuse_venv=True)
def cov(session: nox.Session) -> None:
"""Run covage and place in 'htmlcov' directory."""
import warnings

warnings.warn("JIT-compiled code lines are not counted.")

session.install("-e.[test]")
session.run("coverage", "run", "-m", "pytest", env=ENV)
session.run("coverage", "html", "-d", "htmlcov")
Expand Down

0 comments on commit f9babce

Please sign in to comment.