Get baseline 100% clean coverage (#1553)
This commit is contained in:
parent
da4fce2195
commit
89e9c43acf
1 changed files with 1032 additions and 1084 deletions
|
|
@ -60,6 +60,7 @@ dev = [
|
|||
"pytest-pretty>=1.2.0",
|
||||
"inline-snapshot>=0.23.0",
|
||||
"dirty-equals>=0.9.0",
|
||||
"coverage[toml]==7.10.7",
|
||||
]
|
||||
docs = [
|
||||
"mkdocs>=1.6.1",
|
||||
|
|
@ -168,3 +169,40 @@ MD033 = false # no-inline-html Inline HTML
|
|||
MD041 = false # first-line-heading/first-line-h1
|
||||
MD046 = false # indented-code-blocks
|
||||
MD059 = false # descriptive-link-text
|
||||
|
||||
# https://coverage.readthedocs.io/en/latest/config.html#run
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
patch = ["subprocess"]
|
||||
concurrency = ["multiprocessing", "thread"]
|
||||
source = ["src", "tests"]
|
||||
relative_files = true
|
||||
omit = [
|
||||
"src/mcp/client/__main__.py",
|
||||
"src/mcp/server/__main__.py",
|
||||
"src/mcp/os/posix/utilities.py",
|
||||
"src/mcp/os/win32/utilities.py",
|
||||
]
|
||||
|
||||
# https://coverage.readthedocs.io/en/latest/config.html#report
|
||||
[tool.coverage.report]
|
||||
fail_under = 100
|
||||
skip_covered = true
|
||||
show_missing = true
|
||||
ignore_errors = true
|
||||
precision = 2
|
||||
exclude_lines = [
|
||||
"pragma: no cover",
|
||||
"if TYPE_CHECKING:",
|
||||
"@overload",
|
||||
"raise NotImplementedError",
|
||||
"^\\s*\\.\\.\\.\\s*$",
|
||||
]
|
||||
|
||||
# https://coverage.readthedocs.io/en/latest/config.html#paths
|
||||
[tool.coverage.paths]
|
||||
source = [
|
||||
"src/",
|
||||
"/home/runner/work/python-sdk/python-sdk/src/",
|
||||
'D:\a\python-sdk\python-sdk\src',
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue