[Refactor] Move auxiliary files out of the repository root (#58572)
Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
@@ -130,6 +130,54 @@ markers = [
|
||||
"optional: optional tests that are automatically skipped, include --optional to run them",
|
||||
]
|
||||
|
||||
[tool.coverage.run]
|
||||
# Track the installed vllm package (this is what actually gets imported during tests)
|
||||
# Use wildcard pattern to match the installed location
|
||||
source = ["vllm", "*/dist-packages/vllm", "*/site-packages/vllm"]
|
||||
omit = [
|
||||
"*/tests/*",
|
||||
"*/test_*",
|
||||
"*/__pycache__/*",
|
||||
"*/build/*",
|
||||
"*/dist/*",
|
||||
"*/vllm.egg-info/*",
|
||||
"*/third_party/*",
|
||||
"*/examples/*",
|
||||
"*/benchmarks/*",
|
||||
"*/docs/*",
|
||||
]
|
||||
|
||||
[tool.coverage.paths]
|
||||
# Map all possible vllm locations to a canonical "vllm" path
|
||||
# This ensures coverage.combine properly merges data from different test runs
|
||||
source = [
|
||||
"vllm",
|
||||
"/vllm-workspace/src/vllm",
|
||||
"/vllm-workspace/vllm",
|
||||
"*/site-packages/vllm",
|
||||
"*/dist-packages/vllm",
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
exclude_lines = [
|
||||
'pragma: no cover',
|
||||
'def __repr__',
|
||||
'if self.debug:',
|
||||
'if settings.DEBUG',
|
||||
'raise AssertionError',
|
||||
'raise NotImplementedError',
|
||||
'if 0:',
|
||||
'if __name__ == .__main__.:',
|
||||
'class .*\bProtocol\):',
|
||||
'@(abc\.)?abstractmethod',
|
||||
]
|
||||
|
||||
[tool.coverage.html]
|
||||
directory = "htmlcov"
|
||||
|
||||
[tool.coverage.xml]
|
||||
output = "coverage.xml"
|
||||
|
||||
[tool.ty.src]
|
||||
respect-ignore-files = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user