-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (115 loc) · 3.15 KB
/
pyproject.toml
File metadata and controls
133 lines (115 loc) · 3.15 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[project]
name = "agent-starter-pack"
version = "0.32.0"
description = "CLI to bootstrap production-ready Google Cloud GenAI agent projects from templates."
authors = [
{ name = "Google LLC", email = "agent-starter-pack@google.com" },
]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"click>=8.1.7",
"cookiecutter>=2.6.0, <3.0.0",
"google-cloud-aiplatform>=1.120.0",
"rich>=13.7.0",
"pyyaml>=6.0.1",
"backoff>=2.2.1",
"tomli>=1.1.0; python_version < \"3.11\"",
"requests>=2.31.0",
]
[dependency-groups]
dev = [
"google-cloud-logging~=3.11.4",
"grpcio~=1.70.0",
"myst-parser~=2.0.0",
"pytest~=7.4.3",
"pytest-cov~=4.1.0",
"pytest-mock~=3.12.0",
"pytest-rerunfailures>=15.0",
"pytest-xdist~=3.6.1",
"rich~=13.7.0",
"sphinx~=7.1.2",
"sphinx-autoapi~=3.0.0",
"sphinx-click~=5.1.0",
"sphinx-rtd-theme~=2.0.0",
"types-PyYAML",
"types-requests",
]
[project.optional-dependencies]
jupyter = [
"ipykernel>=6.29.5",
"jupyter"
]
lint = [
"ruff",
"ty",
"codespell",
]
[tool.pytest.ini_options]
pythonpath = [".", "agent_starter_pack", "agent_starter_pack/agents/agentic_rag"]
testpaths = ["tests"]
addopts = "-s -v --ignore=tests/integration"
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s - %(levelname)s - %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.ruff]
line-length = 88
target-version = "py311"
include = ["agent_starter_pack/cli/**/*.py", "tests/**/*.py"]
exclude = ["./agent_starter_pack/agents/**/*.py", "./tests/cicd/scripts/**/*.py"]
[tool.ruff.lint]
preview = true
select = [
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"RUF", # ruff specific rules
"PLW1514", # unspecified-encoding (require encoding in open calls)
]
ignore = ["E501", "C901", "RUF001", "UP036"]
[tool.ruff.lint.isort]
known-first-party = ["app", "frontend"]
[tool.ty]
# ty is Astral's Rust-based type checker (same team as ruff/uv)
# See: https://docs.astral.sh/ty/
[tool.ty.environment]
python-version = "3.11"
[tool.ty.src]
# Exclude agent templates and cicd scripts from type checking
exclude = [
"agent_starter_pack/agents/**",
"tests/cicd/scripts/**",
]
[tool.ty.rules]
# Ignore missing third-party type stubs
unresolved-import = "ignore"
[[tool.ty.overrides]]
# Relax type checking for test files (pytest fixtures with yield have complex types)
include = ["tests/**"]
[tool.ty.overrides.rules]
invalid-return-type = "ignore"
[tool.codespell]
ignore-words-list = "rouge"
skip = "./locust_env/*,uv.lock,.venv,**/*.ipynb"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
agent-starter-pack = "agent_starter_pack.cli.main:cli"
[tool.hatch.build.targets.wheel]
packages = ["agent_starter_pack", "llm.txt"]
exclude = [
"agent_starter_pack/resources/idx",
"agent_starter_pack/resources/idx_ag",
"agent_starter_pack/resources/containers",
]
[tool.uv]
index-url = "https://pypi.org/simple"
[tool.uv.workspace]
members = ["temp"]