Skip to content

Commit a57f074

Browse files
committed
move coveragerc into pyproject.toml
1 parent 6d9940f commit a57f074

File tree

2 files changed

+34
-32
lines changed

2 files changed

+34
-32
lines changed

.coveragerc

Lines changed: 0 additions & 32 deletions
This file was deleted.

pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,37 @@ allow_untyped_defs = true
212212
[tool.codespell]
213213
ignore-words-list = "statics"
214214
skip = "docs/source/changelog.rst"
215+
216+
217+
[tool.coverage.run]
218+
source = ["distributed"]
219+
omit = [
220+
"distributed/tests/test*",
221+
"distributed/*/tests/test*",
222+
"distributed/cli/utils.py",
223+
"distributed/cli/dask_spec.py",
224+
"distributed/deploy/ssh.py",
225+
"distributed/_version.py",
226+
"distributed/pytest_resourceleaks.py",
227+
"distributed/comm/ucx.py",
228+
]
229+
230+
[tool.coverage.report]
231+
show_missing = true
232+
exclude_lines = [
233+
# re-enable the standard pragma
234+
"pragma: nocover",
235+
"pragma: no cover",
236+
# exclude nvml calls
237+
'[\s(.]nvml[\s(.]',
238+
'[\s(.]pynvml[\s(.]',
239+
# exclude LOG_PDB
240+
"LOG_PDB",
241+
# always ignore type checking blocks
242+
"TYPE_CHECKING",
243+
"except ImportError",
244+
"@overload",
245+
]
246+
247+
[tool.coverage.html]
248+
directory = "coverage_html_report"

0 commit comments

Comments
 (0)