-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
106 lines (92 loc) · 2.18 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
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
[tool.poetry]
name = "tiny-graphrag"
version = "0.1.0"
description = ""
authors = ["sdiehl <stephen.m.diehl@gmail.com>"]
readme = "README.md"
license = "MIT"
packages = [
{ include = "tiny_graphrag", from = "src" },
]
[tool.poetry.scripts]
graphrag = "tiny_graphrag.main:main"
[tool.poetry.dependencies]
python = ">=3.12,<3.13"
networkx = "^3.4.2"
gliner = "^0.2.13"
glirel = "^0.1.4"
spacy = "^3.8.2"
protobuf = "3.20.0"
datasets = "^3.0.2"
sqlalchemy = "^2.0.36"
psycopg2-binary = "^2.9.10"
pgvector = "^0.3.6"
sentence-transformers = "^3.2.1"
llama-cpp-python = "^0.3.1"
gliner-spacy = "^0.0.10"
cdlib = "^0.4.0"
igraph = "^0.11.8"
leidenalg = "^0.10.2"
tqdm = "^4.66.6"
termcolor = "^2.5.0"
[tool.poetry.group.apple]
optional = true
[tool.poetry.group.nvidia]
optional = true
[tool.poetry.group.apple.dependencies]
thinc-apple-ops = "^1.0.0"
[tool.poetry.group.nvidia.dependencies]
thinc-gpu-ops = "^0.0.4"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = "^24.10.0"
ruff = "^0.7.1"
mypy = "^1.13.0"
sqlalchemy-stubs = "^0.4"
jupyter = "^1.1.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
disallow_incomplete_defs = "false"
disallow_untyped_defs = "false"
strict = "true"
pretty = "true"
warn_return_any = "true"
warn_unused_configs = "true"
warn_redundant_casts = "true"
warn_unused_ignores = "true"
ignore_missing_imports = "true"
no_implicit_reexport = "true"
strict_optional = "true"
strict_equality = "true"
extra_checks = "true"
check_untyped_defs = "true"
disallow_subclassing_any = "true"
disallow_untyped_decorators = "true"
disallow_untyped_calls = "true"
disallow_any_generics = "true"
follow_imports = "silent"
plugins = "sqlmypy"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"N", # PEP8 naming convetions
"D" # pydocstyle
]
ignore = [
"D104", # missing docstring
"D100", # missing docstring in public class
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"prompts.py" = ["E501"]