Skip to content

Commit 23749d7

Browse files
committed
initialize pytest and pytest-coverage
1 parent fa532c0 commit 23749d7

File tree

4 files changed

+145
-1
lines changed

4 files changed

+145
-1
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[coverage:report]
2+
skip_empty = true

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
test-coverage:
2+
pytest --cov=llmtune tests/
3+
4+
fix-format:
5+
ruff check --fix
6+
ruff format
7+
18
build-release:
29
rm -rf dist
310
rm -rf build

poetry.lock

Lines changed: 134 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ shellingham = "^1.5.4"
6767

6868
[tool.poetry.group.dev.dependencies]
6969
ruff = "~0.3.5"
70+
pytest = "^8.1.1"
71+
pytest-cov = "^5.0.0"
7072

7173
[build-system]
7274
requires = ["poetry-core", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]

0 commit comments

Comments
 (0)