-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (104 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
119 lines (104 loc) · 2.28 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
[project]
name = "codegraphx"
version = "0.3.0"
description = "Deterministic local-first code intelligence CLI for code graph extraction and analysis"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastapi",
"numpy",
"neo4j>=5.0.0",
"pydantic",
"python-dotenv>=1.0.0",
"PyYAML>=6.0.0",
"rich>=13.0.0",
"sentence-transformers",
"tree-sitter",
"tree-sitter-javascript",
"tree-sitter-language-pack",
"tree-sitter-python",
"typer>=0.12,<1.0",
]
[project.scripts]
codegraphx = "codegraphx.__main__:main"
[project.optional-dependencies]
dev = [
"build>=1.2",
"mypy>=1.13",
"pip-audit>=2.7",
"pre-commit>=4.0",
"pytest>=9.0.3",
"pytest-cov>=6.0",
"ruff>=0.8",
]
[dependency-groups]
dev = [
"build>=1.2",
"pytest>=9.0.3",
"pytest-cov>=6.0",
"ruff>=0.8",
"mypy>=1.13",
"pip-audit>=2.7",
"pre-commit>=4.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/codegraphx"]
[tool.hatch.build.targets.sdist]
include = ["src/codegraphx", "README.md", "LICENSE", "pyproject.toml", "config"]
[tool.ruff]
line-length = 120
target-version = "py311"
src = ["src", "tests"]
extend-exclude = [
"cg_platform",
"cli",
"codegraphx",
"core",
"data",
"dist",
"extractors",
"graph",
"llm",
"metrics",
"parsers",
"schema",
"scripts",
"semantic",
"tests/test_all.py",
"tests/test_models.py",
"tests/test_platform_scaffold.py",
".venv",
"venv",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "S", "B", "SIM"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "S106"]
[tool.mypy]
python_version = "3.11"
strict = true
files = ["src"]
mypy_path = ["src", "."]
explicit_package_bases = true
[[tool.mypy.overrides]]
module = ["tree_sitter_language_pack", "tree_sitter_language_pack.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["tree_sitter", "tree_sitter.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests/unit", "tests/integration"]
addopts = "--basetemp=.pytest_tmp --import-mode=importlib"
[tool.coverage.run]
source = ["src/codegraphx"]
branch = true
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]