-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (78 loc) · 1.57 KB
/
pyproject.toml
File metadata and controls
89 lines (78 loc) · 1.57 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cc-python-claude"
version = "0.1.0"
description = "Python reimplementation of Claude Code CLI"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"anthropic>=0.52",
"pydantic>=2.0",
"click>=8.0",
"rich>=13.0",
"httpx>=0.27",
"aiofiles>=24.0",
]
[project.optional-dependencies]
mcp = ["mcp>=1.0"]
markdown = ["markdownify>=0.13"]
notebook = ["nbformat>=5.0"]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-mock>=3.14",
"pytest-cov>=5.0",
"ruff>=0.8",
"mypy>=1.13",
]
all = [
"cc-python-claude[mcp,markdown,notebook,dev]",
]
[project.scripts]
cc = "cc.main:main"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = [
"e2e: end-to-end tests requiring real API key",
]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"N",
"UP",
"B",
"A",
"SIM",
"TCH",
"RUF",
]
[tool.ruff.lint.per-file-ignores]
# Prompt text files contain long lines copied verbatim from TS source
"cc/prompts/sections.py" = ["E501"]
"cc/compact/compact.py" = ["E501"]
"cc/memory/extractor.py" = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["cc"]
[tool.hatch.build.targets.wheel]
packages = ["cc"]
[tool.mypy]
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
python_version = "3.12"
[[tool.mypy.overrides]]
module = [
"aiofiles",
"markdownify",
]
ignore_missing_imports = true