From 8f2087be5d4d239018e0f9fdb420bf198c587535 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Thu, 24 Apr 2025 18:35:25 +0200 Subject: [PATCH] add testing config --- pyproject.toml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dcc48f8..fca55e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ readme = "README.md" requires-python = ">=3.13" dependencies = [ "anilistapi", + "komcache", "komgapi", "limit>=0.2.3", "loguru>=0.7.3", @@ -14,10 +15,16 @@ dependencies = [ ] [dependency-groups] -dev = [ - "bump-my-version>=0.32.1", -] +dev = ["bump-my-version>=0.32.1"] +test = ["pytest>=8.3.4", "pytest-cov>=6.1.1"] [tool.uv.sources] -komgapi = { workspace = true } anilistapi = { workspace = true } +komgapi = { workspace = true } +komcache = { workspace = true } + +[tool.pytest.ini_options] +testpaths = ["tests"] +addopts = "--cov=src --cov-report=term-missing" +[tool.coverage.run] +omit = ["main.py", "test.py", "tests/*", "__init__.py"]