-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
65 lines (58 loc) · 1.11 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
[project]
name = "dbdex"
version = "0.1.0"
description = "Use AI to query your database"
authors = [
{name = "Finn Andersen", email = "[email protected]"},
]
requires-python = ">=3.10"
dependencies = [
"sqlalchemy>=2.0.0",
"pydantic>=2.0.0",
"pydantic-ai[logfire]>=0.0.19", # Installs all model dependencies
"logfire[sqlalchemy]>=3.1.0",
"gnureadline>=8.2.0",
"rich>=13.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.9.0",
"pyright",
]
postgres = [
"psycopg2-binary>=2.9.0",
]
mysql = [
"pymysql>=1.0.0",
"cryptography>=41.0.0",
]
oracle = [
"cx_Oracle>=8.3.0",
]
mssql = [
"pyodbc>=4.0.39",
]
all = [
"dbdex[postgres, mysql, oracle, mssql]",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
[tool.pytest.ini_options]
addopts = "-ra -q --cov"
testpaths = [
"tests",
]