-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (127 loc) · 3.86 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (127 loc) · 3.86 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
[project]
name = "cldk"
version = "2.0.0-rc.6"
description = "The official Python SDK for Codellm-Devkit."
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.11"
authors = [
{ name = "Rahul Krishna", email = "i.m.ralk@gmail.com" },
{ name = "Rangeet Pan", email = "rangeet.pan@ibm.com" },
{ name = "Saurabh Sinhas", email = "sinhas@us.ibm.com" },
{ name = "Raju Pavuluri", email = "pavuluri@us.ibm.com" },
]
keywords = ["ibm", "llm", "large language models", "code analyzer", "syntax tree"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"pydantic>=2.10.6,<3",
"networkx>=3.4.2,<4",
"tree-sitter==0.24.0",
"rich==14.0.0",
"wget==3.2",
"requests>=2.32.3,<3",
"tree-sitter-java==0.23.5",
"tree-sitter-python==0.23.6",
"tree-sitter-javascript==0.23.1",
"codeanalyzer-python==1.5.2",
"codeanalyzer-typescript==1.6.0",
]
[project.optional-dependencies]
# The Neo4j-backed analysis backends (read-only; no analyzer is invoked).
neo4j = ["neo4j>=5.14,<7"]
# The local Java backend: the analyzer wheel carries the jar and a bundled JVM (jdk4py).
java = ["codeanalyzer-java==3.2.0"]
# Everything. `codeanalyzer-python` and `codeanalyzer-typescript` are still hard
# dependencies; #340 moves them here, and this list grows when it does.
all = ["cldk[java]", "cldk[neo4j]"]
[project.urls]
Homepage = "https://codellm-devkit.info"
Repository = "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/codellm-devkit/python-sdk"
[dependency-groups]
dev = [
"ipdb>=0.13.13,<0.14",
"ipython>=8.32.0,<9",
]
test = [
"cldk[java]", # the Java suite drives the real analyzer; the extra carries it
"toml>=0.10.2,<0.11",
"pytest==8.3.5",
"pytest-pspec>=0.0.4,<0.0.5",
"pytest-cov>=6.0.0,<7",
"pylint>=3.3.4,<4",
"flake8>=7.1.1,<8",
"black>=25.1.0,<26",
"coverage>=7.6.10,<8",
"jupyter>=1.1.1,<2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["cldk"]
[tool.hatch.build.targets.sdist]
include = [
"cldk",
"LICENSE",
"README.md",
"CHANGELOG.md",
]
[tool.backend-versions]
codeanalyzer-java = "3.2.0"
codeanalyzer-python = "1.5.2"
codeanalyzer-typescript = "1.6.0"
########################################
# Tool configurations
########################################
[tool.flake8]
max-line-length = 180
count = true
[tool.black]
line-length = 180
[tool.pylint.'MESSAGES CONTROL']
disable = "no-member,protected-access,global-statement"
[tool.pylint.FORMAT]
max-line-length = 180
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--pspec --cov=cldk --cov-fail-under=50"
testpaths = ["tests"]
[tool.coverage.run]
source = ["cldk"]
omit = [
"venv/*",
".venv/*"
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"pragma: no branch",
"pass",
"subprocess.CalledProcessError",
"sys.exit",
"if __name__ == .__main__.:"
]
ignore_errors = true
[tool.coverage.xml]
output="./coverage.xml"
[tool.coverage.html]
title = "Test Coverage Report"
directory = "coverage_html_report"
[tool.cldk.testing]
sample-application = "tests/resources/java/application/"
sample-application-analysis-json = "tests/resources/java/analysis_json/"
sample-typescript-application = "tests/resources/typescript/application/"
sample-typescript-analysis-json = "tests/resources/typescript/analysis_json/"