forked from tirth8205/code-review-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (101 loc) · 2.96 KB
/
pyproject.toml
File metadata and controls
112 lines (101 loc) · 2.96 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "code-review-graph"
version = "2.1.0"
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>=0.1.0,<2",
"tree-sitter>=0.23.0,<1",
"tree-sitter-language-pack>=0.3.0,<1",
"networkx>=3.2,<4",
"watchdog>=4.0.0,<6",
]
[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"
[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[eval]",
"code-review-graph[wiki]",
]
dev = [
"pytest>=8.0,<9",
"pytest-asyncio>=0.23,<1",
"ruff>=0.3.0,<1",
]
[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"
[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
[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"]