add linter and test ollama in python

This commit is contained in:
2024-04-29 15:31:01 +07:00
parent b2866d073c
commit c23b1d42bf
6 changed files with 984 additions and 294 deletions
+19
View File
@@ -24,6 +24,8 @@ python-dotenv = "^1.0.0"
pycaw = "^20230407"
torch = "^2.1.1+cpu"
torchaudio = "^2.1.1+cpu"
ollama = "^0.1.6"
ruff = "^0.4.2"
[[tool.poetry.source]]
@@ -34,3 +36,20 @@ priority = "supplemental"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
exclude = [
".git",
".ruff_cache",
".venv",
"venv",
"mongodb",
"data",
]
line-length = 112
[tool.ruff.lint]
select = ["E", "F", "UP", "I"]
[tool.ruff.format]
skip-magic-trailing-comma = true