-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (94 loc) · 2.35 KB
/
pyproject.toml
File metadata and controls
110 lines (94 loc) · 2.35 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "camel-database-agent"
version = "0.2.0"
description = "An integration package connecting Database and Camel"
authors = [{ name = "Lei Zhang" }]
requires-python = ">=3.10,<3.13"
readme = "README.md"
license = "Apache-2.0"
dependencies = [
"camel-ai[all]>=0.2.40",
"tabulate>=0.9",
"colorama>=0.4",
"dotenv>=0.9",
"PyMySQL==1.1.1",
"psycopg>=3.2"
]
[dependency-groups]
test = [
"pytest>=7,<8",
"mock>=5,<6",
"pytest-asyncio>=0.23.0,<0.24",
"testcontainers>=4.9"
]
dev=[
"ruff>=0.7,<0.8",
"mypy>=1.5.1,<2",
"pre-commit>=3,<4",
"types-tabulate>=0.9",
"pandas-stubs>=2.2",
"uv==0.6.5",
]
[project.urls]
Repository = "https://github.com/coolbeevip/camel-database-agent"
[tool.uv]
default-groups = [
"dev", "test"
]
[tool.hatch.build.targets.sdist]
include = ["camel_database_agent"]
[tool.hatch.build.targets.wheel]
include = ["camel_database_agent"]
[tool.ruff]
line-length = 99
fix = true
target-version = "py39"
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"E",
]
ignore = [
"B028", # Warning without stacklevel
"B904", # use 'raise ... from err'
"B905", # use explicit 'strict=' parameter with 'zip()'
"N818", # Exception name should be named with an Error suffix
"C416", # I think comprehension is more clear https://docs.astral.sh/ruff/rules/unnecessary-comprehension/
"C408", # we have used lots of dict(...) instead of literal
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["camel_database_agent"]
[tool.ruff.lint.per-file-ignores]
"camel_database_agent/database_prompt.py" = ["E501"]
"camel_database_agent/datagen/prompts.py" = ["E501"]
"camel_database_agent/database/prompts.py" = ["E501"]
[tool.pytest.ini_options]
pythonpath = ["."]
addopts = ["--strict-markers"]
[tool.coverage.report]
include_namespace_packages = true
[tool.mypy]
exclude = [
'\.venv/.*', # exclude .venv directory
'site-packages/.*', # exclude site-packages
]
[[tool.mypy.overrides]]
module = [
"camel.*",
"colorama",
"pandas",
"qdrant_client.*",
"tabulate"
]
ignore_missing_imports = true