-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (65 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
79 lines (65 loc) · 1.91 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
[tool.poetry]
name = "harlequin-adbc"
version = "0.1.2"
description = "A Harlequin adapter for ADBC drivers."
authors = ["Tyler Hillery <tylerhillery@users.noreply.github.com>"]
homepage = "https://harlequin.sh"
repository = "https://github.com/TylerHillery/harlequin-adbc"
license = "MIT"
readme = "README.md"
packages = [
{ include = "harlequin_adbc", from = "src" },
]
[tool.poetry.plugins."harlequin.adapter"]
adbc = "harlequin_adbc:HarlequinAdbcAdapter"
[tool.poetry.dependencies]
python = ">=3.9, <4.0"
harlequin = ">=1.7,<3"
adbc-driver-manager = ">=0.9.0"
pyarrow = ">=14.0.0"
# driver adapters (optional install for extras)
adbc-driver-flightsql = { version = ">=0.9", optional = true }
adbc-driver-postgresql = { version = ">=0.9", optional = true }
adbc-driver-snowflake = { version = ">=0.9", optional = true }
adbc-driver-sqlite = { version = ">=0.9", optional = true }
[tool.poetry.group.dev.dependencies]
ruff = ">=0.1.6"
pytest = ">=7.4.3"
mypy = ">=1.7.0"
pre-commit = ">=3.5.0"
importlib_metadata = ">=4.6.0"
[tool.poetry.extras]
flightsql = ["adbc-driver-flightsql"]
postgresql = ["adbc-driver-postgresql"]
snowflake = ["adbc-driver-snowflake"]
sqlite = ["adbc-driver-sqlite"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
select = ["A", "B", "E", "F", "I"]
[tool.mypy]
python_version = "3.8"
files = [
"src/**/*.py",
"tests/**/*.py",
]
mypy_path = "src:stubs"
show_column_numbers = true
# show error messages from unrelated files
follow_imports = "normal"
# be strict
disallow_untyped_calls = true
disallow_untyped_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
strict_optional = true
warn_return_any = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
no_implicit_reexport = true
strict_equality = true