Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (134 loc) · 3.61 KB
/
Copy pathpyproject.toml
File metadata and controls
148 lines (134 loc) · 3.61 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
136
137
138
139
140
141
142
143
144
145
146
147
148
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "code2llm"
version = "0.5.183"
description = "High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "Tom Sapletta", email = "tom@sapletta.com"},
]
keywords = [
"static-analysis",
"control-flow",
"data-flow",
"call-graph",
"reverse-engineering",
"toon-format",
"code-analysis",
"ast",
"optimization",
"complexity-analysis"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"networkx>=2.6",
"matplotlib>=3.4",
"pyyaml>=5.4",
"numpy>=1.20",
"jinja2>=3.0",
"radon>=5.1",
"astroid>=3.0",
"psutil>=5.9",
"code2logic",
"vulture>=2.10",
"tiktoken>=0.5",
"tree-sitter>=0.25",
"tree-sitter-python>=0.21",
"tree-sitter-javascript>=0.21",
"tree-sitter-typescript>=0.21",
"tree-sitter-go>=0.21",
"tree-sitter-rust>=0.21",
"tree-sitter-java>=0.21",
"tree-sitter-c>=0.21",
"tree-sitter-cpp>=0.22",
"tree-sitter-c-sharp>=0.21",
"tree-sitter-php>=0.22",
"tree-sitter-ruby>=0.21",
]
license = "Apache-2.0"
[project.optional-dependencies]
native = [
"code2llm-rust>=0.1.0",
]
graph = [
"code2graph>=0.1.0",
]
toon = [
"code2toon>=0.1.0",
]
diagrams = [
"code2flow>=0.1.0",
]
dev = [
"pytest>=6.2",
"pytest-cov>=2.12",
"pytest-xdist>=3.0",
"black>=21.0",
"flake8>=3.9",
"mypy>=0.910",
"costs>=0.1.20",
"code2llm-rust>=0.1.0",
"code2graph>=0.1.0",
"code2toon>=0.1.0",
"code2flow>=0.1.0",
]
[project.scripts]
code2llm = "code2llm.cli:main"
[project.urls]
Homepage = "https://github.com/wronai/stts"
Repository = "https://github.com/wronai/stts"
Issues = "https://github.com/wronai/stts/issues"
[tool.setuptools.packages.find]
where = ["."]
include = ["code2llm*"]
[tool.setuptools.package-data]
code2llm = ["templates/*.md"]
[tool.black]
line-length = 100
target-version = ['py38']
[tool.mypy]
python_version = "0.5.14"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
addopts = "-n auto" # Run tests in parallel using pytest-xdist
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')"
]
[tool.costs]
# AI Cost tracking configuration
badge = true
update_readme = true
readme_path = "README.md"
default_model = "openrouter/deep/deep-v4-pro"
analysis_mode = "byok"
full_history = true
max_commits = 500
# Cost thresholds for badge colors (USD)
badge_color_thresholds = { low = 1.0, medium = 5.0, high = 10.0, critical = 50.0 }
[tool.uv.dependency-groups]
automation = {requires-python = ">=3.12"}
[dependency-groups]
automation = ["goal>=2.2.0"]
[tool.uv.sources]
code2graph = { path = "packages/code2graph", editable = true }
code2toon = { path = "packages/code2toon", editable = true }
code2flow = { path = "packages/code2flow", editable = true }
code2llm-rust = { path = "packages/code2llm-rust", editable = true }