Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
206 lines (184 loc) · 5.11 KB
/
Copy pathpyproject.toml
File metadata and controls
206 lines (184 loc) · 5.11 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
[project]
name = "uckn-framework"
version = "1.0.0"
description = "Universal Claude Code Knowledge Network (UCKN) - AI-powered development knowledge management framework"
authors = [
{name = "Claude Code Community", email = "noreply@anthropic.com"}
]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"
keywords = ["ai", "knowledge-management", "ci-cd", "development", "claude-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 :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"sentence-transformers>=2.2.0",
"chromadb>=0.4.0",
"fastapi>=0.100.0",
"uvicorn>=0.20.0",
"pydantic>=2.0.0",
"numpy>=1.21.0",
"pandas>=1.5.0",
"httpx>=0.24.0",
"toml>=0.10.0",
"click>=8.0.0",
"rich>=13.0.0",
"gitpython>=3.1.0",
"jinja2>=3.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"ruff>=0.1.0",
"black>=23.0.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
"aider-chat>=0.30.0",
]
mcp = [
"mcp>=0.1.0",
"websockets>=11.0.0",
"anyio>=3.6.0",
]
ml = [
"torch>=2.0.0",
"transformers>=4.20.0",
"scikit-learn>=1.3.0",
"matplotlib>=3.5.0",
"seaborn>=0.11.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocstrings[python]>=0.20.0",
]
[project.urls]
Homepage = "https://github.com/MementoRC/claude-code-knowledge-framework"
Documentation = "https://github.com/MementoRC/claude-code-knowledge-framework/docs"
Repository = "https://github.com/MementoRC/claude-code-knowledge-framework"
Issues = "https://github.com/MementoRC/claude-code-knowledge-framework/issues"
Changelog = "https://github.com/MementoRC/claude-code-knowledge-framework/blob/main/CHANGELOG.md"
[project.scripts]
uckn = "uckn.cli:main"
uckn-server = "uckn.server:main"
uckn-migrate = "uckn.migrate:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pixi.project]
channels = ["conda-forge", "pytorch"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[tool.pixi.dependencies]
python = ">=3.10"
pip = "*"
[tool.pixi.pypi-dependencies]
uckn-framework = {path = ".", editable = true}
[tool.pixi.feature.dev.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-asyncio = "*"
ruff = "*"
black = "*"
mypy = "*"
pre-commit = "*"
[tool.pixi.feature.mcp.dependencies]
nodejs = ">=18"
npm = "*"
[tool.pixi.feature.ml.dependencies]
pytorch = "*"
sentence-transformers = "*"
chromadb = "*"
[tool.pixi.environments]
default = {features = ["ml"], solve-group = "default"}
dev = {features = ["dev", "ml", "mcp"], solve-group = "default"}
ci = {features = ["dev"], solve-group = "default"}
docs = {features = ["docs"], solve-group = "default"}
[tool.pixi.tasks]
# Development tasks
install = "pip install -e ."
dev = "pip install -e .[dev,mcp,ml]"
test = "pytest tests/ -v"
test-cov = "pytest tests/ --cov=src/uckn --cov-report=html --cov-report=term"
lint = "ruff check src/ tests/"
format = "ruff format src/ tests/"
typecheck = "mypy src/uckn"
pre-commit = "pre-commit run --all-files"
# Framework tasks
start-server = "python -m uckn.server"
analyze-project = "uckn analyze ."
migrate-patterns = "uckn migrate --source .claude/knowledge"
init-project = "uckn init"
# Documentation
docs-serve = "mkdocs serve"
docs-build = "mkdocs build"
# CI/CD tasks
ci-test = {cmd = "pytest tests/ --cov=src/uckn --cov-report=xml", env = {ENVIRONMENT = "ci"}}
ci-lint = "ruff check src/ tests/ --output-format=github"
ci-format-check = "ruff format --check src/ tests/"
[tool.ruff]
target-version = "py310"
line-length = 88
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.per-file-ignores]
"tests/**/*" = ["F401", "F811"]
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--disable-warnings",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"e2e: End-to-end tests",
"slow: Slow tests",
]
[tool.coverage.run]
source = ["src/uckn"]
omit = [
"tests/*",
"src/uckn/__main__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]