-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
74 lines (68 loc) · 2.47 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
66
67
68
69
70
71
72
73
74
[project]
name = "pgvecto-rs"
version = "0.2.2"
description = "Python binding for pgvecto.rs"
authors = [
{ name = "TensorChord", email = "envd-maintainers@tensorchord.ai" },
{ name = "盐粒 Yanli", email = "mail@yanli.one" },
{ name = "cutecutecat", email = "junyuchen@tensorchord.ai" },
]
dependencies = ["numpy>=1.23", "toml>=0.10"]
requires-python = "<3.13,>=3.8"
readme = "README.md"
license = { text = "Apache-2.0" }
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[build-system]
build-backend = "pdm.backend"
requires = ["pdm-backend"]
[project.optional-dependencies]
psycopg3 = ["psycopg[binary]>=3.1.12"]
sdk = ["openai>=1.2.2", "pgvecto_rs[sqlalchemy]"]
sqlalchemy = ["SQLAlchemy>=2.0.23"]
django = ["Django>=4.2"]
[tool.pdm.dev-dependencies]
lint = ["ruff>=0.1.5"]
test = ["pytest>=7.4.3"]
# scipy need --no-isolation to install, which requires these modules
scipy-sparse = [
"Cython==0.29.34",
"setuptools>=70",
"wheel>=0.43",
"pdm-backend>=2.3.2",
"editables>=0.5",
"scipy>=1.13; python_version >= '3.9'",
"scipy>=1.10,<1.13; python_version == '3.8'",
]
[tool.pdm.scripts]
test = "pytest tests/"
format = "ruff format ."
fix = "ruff --fix ."
check = { composite = ["ruff format . --check", "ruff check ."] }
[tool.ruff]
lint.select = [
"E", #https://docs.astral.sh/ruff/rules/#error-e
"F", #https://docs.astral.sh/ruff/rules/#pyflakes-f
"I", #https://docs.astral.sh/ruff/rules/#isort-i
"TID", #https://docs.astral.sh/ruff/rules/#flake8-tidy-imports-tid
"S", #https://docs.astral.sh/ruff/rules/#flake8-bandit-s
"B", #https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"SIM", #https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
"N", #https://docs.astral.sh/ruff/rules/#pep8-naming-n
"PT", #https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
"TRY", #https://docs.astral.sh/ruff/rules/#tryceratops-try
"FLY", #https://docs.astral.sh/ruff/rules/#flynt-fly
"PL", #https://docs.astral.sh/ruff/rules/#pylint-pl
"NPY", #https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy
"RUF", #https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
]
lint.ignore = ["S101", "E731", "E501"]
src = ["src"]
[tool.pytest.ini_options]
addopts = "-r aR"