forked from kyma-project/kyma-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (83 loc) · 2.13 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[tool.poetry]
name = "kyma-companion"
version = "0.1.0"
description = "Kyma Companion is AI Kyma assistant that helps you to manage your Kyma runtime"
authors = [
"Muhammad Faizan [email protected]",
"Aleksei Chernyshov [email protected]",
"Carina Kothe [email protected]",
"Friedrich Wilken [email protected]",
"Tibor Kiss [email protected]",
"Marco Bebway [email protected]",
"Piotr Bochynski [email protected]",
"Mansur Uralov [email protected]",
]
readme = "README.md"
packages = [{ include = "src" }]
license = "Apache-2.0"
package-mode = false
[tool.poetry.dependencies]
python = "~3.12"
# Add your production dependencies here
fastapi = "^0.111.0"
pytest = "^8.2.2"
langchain-community = "^0.2.6"
langchain-google-genai = "^1.0.7"
langchain-openai = "^0.1.14"
ai-core-sdk = "^2.3.11"
generative-ai-hub-sdk = "^1.11.1"
langfuse = "^2.39.1"
langgraph = "^0.1.7"
redis = "^5.0.7"
requests = "^2.32.3"
[tool.poetry.group.test.dependencies]
pytest = "^8.2.2"
pytest-mock = "^3.14.0"
pytest-asyncio = "^0.23.7"
fakeredis = "^2.23.3"
types-pyyaml = "^6.0.12.20240311"
[tool.poetry.group.dev.dependencies]
ruff = "v0.4.10"
flake8-bugbear = "^24.4.26"
poethepoet = "^0.27.0"
langfuse = "^2.38.0"
mypy = "^1.10.1"
flake8 = "^7.1.0"
black = "^24.4.2"
types-requests = "^2.32.0.20240712"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra"
pythonpath = [
"src"
]
testpaths = [
"tests",
]
[tool.poe.tasks]
lint = "ruff check ."
typecheck = "mypy . --pretty"
format = "black . --check"
codecheck = ["lint", "typecheck", "format"]
format-fix = "black ."
lint-fix = "ruff check . --fix"
codefix = ["format-fix", "lint-fix"]
test = "pytest tests"
run = "fastapi run src/main.py --port 8000"
run-local = "fastapi dev src/main.py --port 8000"
[tool.mypy]
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
disallow_untyped_defs = false
disallow_any_expr = false
ignore_missing_imports = true
show_column_numbers = true
allow_redefinition = true
disable_error_code = ["union-attr"]
# Exclude specific files or directories
exclude = [
'tests',
'scripts'
]