Improve coverage

This commit is contained in:
2026-02-20 06:02:57 +00:00
parent f848bbf0f2
commit fd6b698077
28 changed files with 2719 additions and 387 deletions

View File

@@ -20,7 +20,7 @@ dependencies = [
"redis[hiredis]>=5.2.0",
"tenacity>=9.0.0",
"python-multipart>=0.0.12",
"rag-client",
"httpx>=0.27.0",
]
[project.scripts]
@@ -32,6 +32,7 @@ build-backend = "uv_build"
[dependency-groups]
dev = [
"fakeredis>=2.34.0",
"inline-snapshot>=0.32.1",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
@@ -43,19 +44,16 @@ dev = [
]
[tool.ruff]
exclude = ["tests"]
exclude = ["tests", "scripts"]
[tool.ruff.lint]
select = ['ALL']
ignore = ['D203', 'D213']
[tool.ty.src]
include = ["src", "packages"]
include = ["src"]
exclude = ["tests"]
[tool.uv.sources]
rag-client = { workspace = true }
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
@@ -67,6 +65,13 @@ addopts = [
"--cov-branch",
]
filterwarnings = [
"ignore:Call to '__init__' function with deprecated usage:DeprecationWarning:fakeredis",
"ignore:.*retry_on_timeout.*:DeprecationWarning",
"ignore:.*lib_name.*:DeprecationWarning",
"ignore:.*lib_version.*:DeprecationWarning",
]
env = [
"FIRESTORE_EMULATOR_HOST=[::1]:8911",
"GCP_PROJECT_ID=test-project",
@@ -77,8 +82,3 @@ env = [
"REDIS_PORT=6379",
"DLP_TEMPLATE_COMPLETE_FLOW=projects/test/dlpJobTriggers/test",
]
[tool.uv.workspace]
members = [
"packages/rag-client",
]