Skip to content

Commit a0ba7a7

Browse files
committed
update unit tests
1 parent dc17550 commit a0ba7a7

6 files changed

Lines changed: 659 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,39 @@ dev = [
2525
]
2626

2727
[tool.setuptools]
28-
# You have a flat repo layout: toolserver/ is the package
2928
packages = ["toolserver"]
3029

3130
[tool.pytest.ini_options]
3231
testpaths = ["tests"]
33-
addopts = "-q"
32+
addopts = [
33+
"-q",
34+
"--cov=toolserver",
35+
"--cov-report=term-missing",
36+
"--cov-fail-under=95",
37+
]
38+
39+
[tool.coverage.run]
40+
branch = true
41+
source = ["toolserver"]
42+
omit = [
43+
"*/tests/*",
44+
"*/__pycache__/*",
45+
]
46+
47+
[tool.coverage.report]
48+
fail_under = 95
49+
show_missing = true
50+
skip_covered = false
51+
exclude_lines = [
52+
"pragma: no cover",
53+
"if __name__ == .__main__.:",
54+
"raise NotImplementedError",
55+
"if TYPE_CHECKING:",
56+
]
3457

3558
[tool.ruff]
3659
line-length = 110
3760
target-version = "py311"
3861

3962
[tool.ruff.lint]
40-
select = ["E", "F", "I"]
63+
select = ["E", "F", "I"]

0 commit comments

Comments
 (0)