-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (70 loc) · 1.71 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (70 loc) · 1.71 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
[project]
name = "gemini-file-search-demo"
version = "0.1.0"
description = "Using Gemini File Search Tool to add RAG to an agentic application"
authors = [
{name = "Dazbo (Darren Lester)", email = "derailed.dash@gmail.com"},
]
dependencies = [
"google-adk",
"google-cloud-logging",
"google-cloud-aiplatform[adk]",
"google-genai",
"fastapi",
"uvicorn",
]
requires-python = ">=3.12"
[project.optional-dependencies]
jupyter = [
"jupyter",
"ipython"
]
lint = [
"ruff",
"mypy",
"codespell",
"types-pyyaml",
"types-requests",
]
[tool.ruff]
line-length = 120
target-version = "py312"
extend-exclude = ["*.ipynb"]
[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", "B006", "B008", "W291", "E302"]
[tool.ruff.lint.isort]
known-first-party = ["app", "frontend"]
[tool.mypy]
disallow_untyped_calls = false
disallow_untyped_defs = false
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", ".*\\.ipynb"]
[tool.codespell]
ignore-words-list = "rouge"
skip = "uv.lock,.venv,./frontend,**/*.ipynb"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app","frontend"]