Add test coverage

This commit is contained in:
2025-09-26 21:02:27 +00:00
parent b1021bcbd5
commit 2b76760fe6
7 changed files with 261 additions and 6 deletions

View File

@@ -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"