tests: add base tests

This commit is contained in:
cătălin 2024-12-18 18:27:46 +01:00
commit 9893d36be3
No known key found for this signature in database
23 changed files with 353 additions and 206 deletions

View file

@ -12,26 +12,24 @@ dependencies = [
"platformdirs>=4.3.6",
"pydantic>=2.9.2",
"pydantic-settings>=2.6.0",
"pyinstaller>=6.11.0",
"twitchwebsocket>=1.2.1",
"loguru>=0.7.2",
"ffmpeg>=1.4",
"ffmpeg-python>=0.2.0",
"gtts>=2.5.4",
"litestar[standard]>=2.13.0",
"httpx>=0.28.0",
"caribou>=0.4.1",
"aiosqlite>=0.20.0",
"pyjwt>=2.10.1",
"huey>=2.5.2",
"twitchio>=2.10.0",
"redis>=5.2.1",
"pytest>=8.3.4",
]
[tool.uv]
dev-dependencies = [
"mypy>=1.13.0",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.0",
"ruff>=0.8.3",
"pytest-coverage>=0.0",
]
[[tool.mypy.overrides]]
@ -42,6 +40,9 @@ module = [
"nltk.tokenize.destructive",
"TwitchWebsocket",
"tokenizer",
"caribou.migrate",
"twitchio",
"twitchio.ext",
"gtts"
]
ignore_missing_imports = true
@ -52,3 +53,7 @@ extend-select = [
"SIM", "PTH", "ERA", "PGH", "PL", "RUF", "FURB", "PERF"
]
extend-ignore = ["S101", "ISC002", "COM812", "ISC001"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"