-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (123 loc) · 3.88 KB
/
pyproject.toml
File metadata and controls
135 lines (123 loc) · 3.88 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "code-review-graph"
version = "2.3.2"
description = "Persistent incremental knowledge graph for token-efficient, context-aware code reviews with Claude Code"
readme = {file = "README.md", content-type = "text/markdown"}
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Tirth" },
]
keywords = ["code-review", "knowledge-graph", "tree-sitter", "claude-code", "mcp"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"mcp>=1.0.0,<2",
# fastmcp 2.14+ fixes CVE-2025-62800/62801/66416 and drops the
# transitive fakeredis dep that was broken by a rename upstream.
# See: #139, #195
"fastmcp>=3.2.4",
"tree-sitter>=0.23.0,<1",
"tree-sitter-language-pack>=0.3.0,<1",
"networkx>=3.2,<4",
"watchdog>=4.0.0,<6",
"tomli>=2.0.0,<3; python_version < '3.11'",
]
[project.urls]
Homepage = "https://code-review-graph.com"
Repository = "https://github.com/tirth8205/code-review-graph"
Documentation = "https://github.com/tirth8205/code-review-graph/blob/main/docs/INDEX.md"
Changelog = "https://github.com/tirth8205/code-review-graph/blob/main/CHANGELOG.md"
Issues = "https://github.com/tirth8205/code-review-graph/issues"
[project.scripts]
code-review-graph = "code_review_graph.cli:main"
crg-daemon = "code_review_graph.daemon_cli:main"
[project.optional-dependencies]
embeddings = [
"sentence-transformers>=3.0.0,<4",
"numpy>=1.26,<3",
]
google-embeddings = [
"google-generativeai>=0.8.0,<1",
]
communities = [
"igraph>=0.11.0",
]
eval = [
"matplotlib>=3.7.0",
"pyyaml>=6.0",
]
wiki = [
"ollama>=0.1.0",
]
all = [
"code-review-graph[embeddings]",
"code-review-graph[communities]",
"code-review-graph[enrichment]",
"code-review-graph[eval]",
"code-review-graph[wiki]",
]
enrichment = [
"jedi>=0.19.2",
]
dev = [
"pytest>=8.0,<9",
"pytest-asyncio>=0.23,<1",
"pytest-cov>=4.0,<8",
"ruff>=0.3.0,<1",
"tomli>=2.0; python_version < '3.11'",
]
[tool.hatch.build.targets.wheel]
packages = ["code_review_graph"]
[tool.hatch.build.targets.sdist]
include = [
"code_review_graph/",
"skills/",
".claude-plugin/",
"docs/",
"hooks/",
"LICENSE",
"README.md",
"pyproject.toml",
]
[tool.ruff]
line-length = 100
target-version = "py310"
exclude = [
"diagrams/", # diagram DSL scripts — intentionally compact, non-standard style
"tests/fixtures/sample_databricks_notebook.ipynb", # SQL/R/Scala cells are not valid Python
]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
[tool.ruff.lint.per-file-ignores]
"code_review_graph/visualization.py" = ["E501"] # embedded HTML/JS template
"tests/fixtures/sample_databricks_export.py" = ["F841", "W292"] # intentional fixture patterns
"tests/fixtures/sample_notebook.ipynb" = ["F401", "I001"] # fixture imports: intentionally unused, split across cells
"tests/test_multilang.py" = ["E501"] # long assertions with explanatory comments
[tool.bandit]
# B101: assert used (fine in non-security code)
# B404: import subprocess (we need git interaction)
# B603: subprocess without shell=True (we use list args, not shell)
# B607: partial executable path (calling "git" by name is standard)
# B608: SQL f-string — false positive, we use parameterized "?" placeholders on a local SQLite DB
skips = ["B101", "B404", "B603", "B607", "B608"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
norecursedirs = ["tests/fixtures"]
[dependency-groups]
dev = [
"pytest>=8.4.2",
]