forked from innovacion/searchbox
Add test coverage
This commit is contained in:
@@ -29,6 +29,7 @@ dev = [
|
||||
"fastembed>=0.7.3",
|
||||
"pytest>=8.4.2",
|
||||
"pytest-asyncio>=1.2.0",
|
||||
"pytest-cov>=7.0.0",
|
||||
"pytest-sugar>=1.1.1",
|
||||
"ruff>=0.13.2",
|
||||
]
|
||||
@@ -48,3 +49,26 @@ extend-exclude = ["tests"]
|
||||
[tool.ruff.lint]
|
||||
extend-select = ["I", "D", "ERA", "UP", "FURB", "TRY", "PERF"]
|
||||
ignore = ["D203", "D213"]
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["src"]
|
||||
branch = true
|
||||
omit = [
|
||||
"tests/*",
|
||||
"*/conftest.py",
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
exclude_lines = [
|
||||
"pragma: no cover",
|
||||
"def __repr__",
|
||||
"raise AssertionError",
|
||||
"raise NotImplementedError",
|
||||
"if __name__ == .__main__.:",
|
||||
"@abstractmethod",
|
||||
]
|
||||
show_missing = true
|
||||
precision = 2
|
||||
|
||||
[tool.coverage.html]
|
||||
directory = "htmlcov"
|
||||
|
||||
Reference in New Issue
Block a user