Skip to content

Commit

Permalink
move coveragerc into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Mar 22, 2023
1 parent 6d9940f commit a57f074
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .coveragerc

This file was deleted.

34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,37 @@ allow_untyped_defs = true
[tool.codespell]
ignore-words-list = "statics"
skip = "docs/source/changelog.rst"


[tool.coverage.run]
source = ["distributed"]
omit = [
"distributed/tests/test*",
"distributed/*/tests/test*",
"distributed/cli/utils.py",
"distributed/cli/dask_spec.py",
"distributed/deploy/ssh.py",
"distributed/_version.py",
"distributed/pytest_resourceleaks.py",
"distributed/comm/ucx.py",
]

[tool.coverage.report]
show_missing = true
exclude_lines = [
# re-enable the standard pragma
"pragma: nocover",
"pragma: no cover",
# exclude nvml calls
'[\s(.]nvml[\s(.]',
'[\s(.]pynvml[\s(.]',
# exclude LOG_PDB
"LOG_PDB",
# always ignore type checking blocks
"TYPE_CHECKING",
"except ImportError",
"@overload",
]

[tool.coverage.html]
directory = "coverage_html_report"

0 comments on commit a57f074

Please sign in to comment.