Skip to content

Commit 8ed592e

Browse files
feat: Support pgvector as a custom x-sql-datatype
Signed-off-by: Edgar Ramírez-Mondragón <[email protected]>
1 parent 8e4ff98 commit 8ed592e

File tree

4 files changed

+369
-82
lines changed

4 files changed

+369
-82
lines changed

pyproject.toml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ lint = [
5656
"ruff>=0.1.14",
5757
]
5858
testing = [
59-
"pytest>=7.4.2",
59+
"pgvector>=0.4.1",
60+
"pytest>=9",
6061
"tap-countries",
6162
"tap-fundamentals",
6263
]
6364
typing = [
65+
{ include-group = "testing" },
6466
"mypy>=1.6.1",
65-
"types-paramiko>=3.3.0.0,<4",
67+
"types-paramiko>=4",
6668
"types-simplejson>=3.19.0.2",
6769
"types-sqlalchemy>=1.4.53.38",
6870
"types-jsonschema>=4.19.0.3",
@@ -83,14 +85,21 @@ warn_redundant_casts = true
8385
warn_unused_configs = true
8486
warn_unused_ignores = true
8587

88+
[[tool.mypy.overrides]]
89+
follow_untyped_imports = true
90+
module = [
91+
"pgvector.*",
92+
]
93+
8694
[build-system]
8795
requires = [
8896
"hatchling==1.27.0",
8997
"hatch-vcs==0.5.0",
9098
]
9199
build-backend = "hatchling.build"
92100

93-
[tool.pytest.ini_options]
101+
[tool.pytest]
102+
minversion = "9.0"
94103
filterwarnings = [
95104
"error",
96105
"ignore:Exception ignored:pytest.PytestUnraisableExceptionWarning",
@@ -119,12 +128,6 @@ select = [
119128
"RUF", # ruff
120129
]
121130

122-
[tool.ruff.lint.flake8-import-conventions]
123-
banned-from = ["sqlalchemy"]
124-
125-
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
126-
sqlalchemy = "sa"
127-
128131
[tool.ruff.lint.pydocstyle]
129132
convention = "google"
130133

0 commit comments

Comments
 (0)