-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (84 loc) · 2.1 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (84 loc) · 2.1 KB
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
91
92
93
94
95
96
97
98
99
[project]
name = "sentoru-agent"
version = "0.1.0"
description = ""
authors = [
{name = "Your Name", email = "your@email.com"},
]
dependencies = [
"google-adk>=1.4.2",
"opentelemetry-exporter-gcp-trace~=1.9.0",
"google-cloud-logging~=3.11.4",
"google-cloud-aiplatform[evaluation,agent-engines]~=1.95.1",
"safety>=3.2.9",
"llama-index>=0.12.41",
"ipykernel>=6.29.5",
"unidiff>=0.7.5",
]
requires-python = ">=3.10,<3.13"
[dependency-groups]
dev = [
"pytest>=8.3.4",
"pytest-asyncio>=0.23.8",
"nest-asyncio>=1.6.0",
"locust>=2.37.10",
"pyright>=1.1.402",
"ruff>=0.11.13",
]
[project.optional-dependencies]
jupyter = [
"jupyter~=1.0.0",
]
lint = [
"ruff>=0.4.6",
"mypy~=1.15.0",
"codespell~=2.2.0",
"types-pyyaml~=6.0.12.20240917",
"types-requests~=2.32.0.20240914",
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"RUF", # ruff specific rules
]
ignore = ["E501", "C901"] # ignore line too long, too complex
[tool.ruff.lint.isort]
known-first-party = ["app", "frontend"]
[tool.mypy]
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
check_untyped_defs = true
disallow_subclassing_any = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
follow_imports = "silent"
ignore_missing_imports = true
explicit_package_bases = true
disable_error_code = ["misc", "no-untyped-call", "no-any-return"]
exclude = [".venv"]
[tool.codespell]
ignore-words-list = "rouge"
skip = "./locust_env/*,uv.lock,.venv,**/*.ipynb"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
pythonpath = "."
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests/unit", "tests/integration"]
[tool.hatch.build.targets.wheel]
packages = ["app","frontend"]