-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (104 loc) · 2.98 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (104 loc) · 2.98 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
[build-system]
requires = ["hatchling>=1.24"]
build-backend = "hatchling.build"
[project]
name = "polycodegraph"
version = "0.1.2"
description = "Multi-language code graph builder, analyzer, PR risk reviewer, and MCP server. Supports Python, TypeScript, JavaScript, and Go."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [
{ name = "mochan", email = "smochan07@gmail.com" },
]
keywords = [
"code-graph", "static-analysis", "tree-sitter", "code-review",
"pr-review", "mcp", "claude-code", "blast-radius", "dead-code",
]
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",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"typer>=0.12",
"rich>=13.7",
"pydantic>=2.6",
"pyyaml>=6.0",
"networkx>=3.2",
"tree-sitter>=0.23",
"tree-sitter-language-pack>=0.7",
"tree-sitter-python>=0.25",
"tree-sitter-typescript>=0.23",
"tree-sitter-javascript>=0.25",
"tree-sitter-go>=0.23",
"pathspec>=0.12",
"questionary>=2.0",
"platformdirs>=4.2",
"pyvis>=0.3.2",
"mcp>=1.0.0",
]
[project.optional-dependencies]
viz = ["graphviz>=0.20"]
s3 = ["boto3>=1.34"]
sql = ["sqlalchemy>=2.0"]
mcp = ["mcp>=1.0"]
embed = [
"sentence-transformers>=3.0,<6.0",
"lancedb>=0.13,<1.0",
"pyarrow>=15.0",
]
bench = [
"anthropic>=0.40",
"httpx>=0.27",
"mcp>=1.0", # MCP stdio client for the Claude-Code-style harness
]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.5",
"mypy>=1.10",
"types-PyYAML",
]
[project.scripts]
codegraph = "codegraph.cli:app"
[project.urls]
Homepage = "https://github.com/smochan/polycodegraph"
Repository = "https://github.com/smochan/polycodegraph"
Issues = "https://github.com/smochan/polycodegraph/issues"
Changelog = "https://github.com/smochan/polycodegraph/blob/main/CHANGELOG.md"
[tool.hatch.build.targets.wheel]
# `bench` is a developer-only harness; it's NOT shipped in the wheel.
packages = ["codegraph"]
[tool.hatch.build.targets.wheel.shared-data]
[tool.hatch.build.targets.sdist]
# Lean sdist: ship only what end users + downstream packagers actually need.
# Tests, docs, and CI config live in the GitHub repo; clone for those.
include = [
"/codegraph",
"/README.md",
"/CHANGELOG.md",
"/LICENSE",
"/pyproject.toml",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "SIM", "RUF"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_unused_ignores = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers"
norecursedirs = ["tests/fixtures"]