-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (117 loc) · 3.02 KB
/
pyproject.toml
File metadata and controls
135 lines (117 loc) · 3.02 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[project]
name = "real_ladybug"
description = "Highly scalable, extremely fast, easy-to-use embeddable graph database"
readme = "README.md"
license = { text = "MIT" }
keywords = ["graph", "database"]
version = "0.0.1"
[project.urls]
Homepage = "https://ladybugdb.com/"
Documentation = "https://docs.ladybugdb.com/"
Repository = "https://github.com/lbugdb/lbug"
Changelog = "https://github.com/LadybugDB/ladybug/releases"
[project.optional-dependencies]
dev = [
"networkx~=3.0",
"numpy~=2.0",
"pandas~=2.2",
"polars~=1.30",
"pyarrow~=20.0",
"pybind11~=2.13",
"pytest",
"pytest-asyncio~=1.0",
"setuptools~=80.9",
"ruff==0.11.12",
"mypy==1.16.0",
"torch>=2.5.0",
"torch-geometric>=2.5.0",
]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
[[tool.uv.index]]
name = "torch-geometric"
url = "https://data.pyg.org/whl/torch-2.5.0+cpu/"
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
[tool.uv]
index-strategy = "unsafe-best-match"
[tool.mypy]
files = ["src_py", "test"]
strict = true
enable_error_code = [
"redundant-expr",
"truthy-bool",
"ignore-without-code",
]
disable_error_code = [
"import-not-found",
"no-any-return",
]
[[tool.mypy.overrides]]
module = [
"_lbug.*",
"networkx.*",
"pandas.*",
"pyarrow.*",
"pytz.*",
"torch_geometric.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 119
preview = true
fix = true
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # flake8-docstrings
"D213", # Augment NumPy docstring convention: Multi-line docstring summary should start at the second line
"D417", # Augment NumPy docstring convention: Missing argument descriptions
"I", # isort
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"PT", # flake8-pytest-style
"RUF", # Ruff-specific rules
"PTH", # flake8-use-pathlib
"FA", # flake8-future-annotations
"PIE", # flake8-pie
"TD", # flake8-todos
"TRY", # tryceratops
"EM", # flake8-errmsg
"FBT001", # flake8-boolean-trap
]
ignore = [
"D105", # Missing docstring in magic method
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D205", # 1 blank line required between summary line and description
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following TODO
]
[tool.ruff.lint.per-file-ignores]
"test/**/*.py" = ["D100", "D102", "D103", "E501", "F841", "TCH002"]
"src_py/torch_geo*.py" = ["E501", "FBT001"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 119
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.format]
docstring-code-format = true
[tool.setuptools.packages.find]
where = ["src_py", "build"]
exclude = ["src_cpp*"]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"