Skip to content

Commit fa768f4

Browse files
committed
dependency setup
1 parent be13c17 commit fa768f4

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

.coveragerc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ ENV/
4747
env.bak/
4848
venv.bak/
4949

50+
# Coverage Report
51+
.coverage
52+
/htmlcov

poetry.lock

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ shellingham = "^1.5.4"
6969
ruff = "~0.3.5"
7070
pytest = "^8.1.1"
7171
pytest-cov = "^5.0.0"
72+
pytest-mock = "^3.14.0"
7273

7374
[build-system]
7475
requires = ["poetry-core", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
@@ -94,4 +95,18 @@ indent-style = "space"
9495
skip-magic-trailing-comma = false
9596
line-ending = "auto"
9697

98+
[tool.coverage.run]
99+
omit = [
100+
# Ignore UI for now as this might change quite often
101+
"llmtune/ui/*",
102+
"llmtune/utils/rich_print_utils.py"
103+
]
104+
105+
[tool.coverage.report]
106+
skip_empty = true
107+
exclude_also = [
108+
"pass",
109+
]
97110

111+
[tool.pytest.ini_options]
112+
addopts = "--cov=llmtune --cov-report term-missing"

0 commit comments

Comments
 (0)