forked from Alishahryar1/free-claude-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (132 loc) · 4.22 KB
/
Copy pathpyproject.toml
File metadata and controls
148 lines (132 loc) · 4.22 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 = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "free-claude-code"
version = "5.14.4"
description = "Local proxy connecting coding agents to OpenAI-compatible AI providers"
readme = "README.md"
requires-python = ">=3.14.0"
dependencies = [
"fastapi[standard]>=0.141.1",
"uvicorn>=0.52.1",
"httpx[socks]>=0.28.1",
"httpx2[socks]>=2.7.0,<3",
"markdown-it-py>=4.2.0",
"pydantic>=2.13.4",
"python-dotenv>=1.2.2",
"tiktoken>=0.13.0",
"python-telegram-bot>=22.8",
"discord.py>=2.7.1",
"openai>=3.2.0",
"loguru>=0.7.0",
"aiohttp>=3.14.3",
"jsonschema>=4.25.0",
"google-auth[requests]>=2.56.3",
"requests[socks]>=2.34.2",
"pystray>=0.19.5; sys_platform == 'win32' or sys_platform == 'darwin'",
"Pillow>=12.0.0; sys_platform == 'win32' or sys_platform == 'darwin'",
]
[project.scripts]
fcc-server = "free_claude_code.cli.entrypoints:serve"
fcc-claude = "free_claude_code.cli.launchers.claude:launch"
fcc-codex = "free_claude_code.cli.launchers.codex:launch"
fcc-pi = "free_claude_code.cli.launchers.pi:launch"
fcc-opencode = "free_claude_code.cli.launchers.opencode:launch"
fcc-cline = "free_claude_code.cli.launchers.cline:launch"
fcc-hermes = "free_claude_code.cli.launchers.hermes:launch"
fcc-dsh = "free_claude_code.cli.launchers.dsh:launch"
fcc-grok = "free_claude_code.cli.launchers.grok:launch"
fcc-muse = "free_claude_code.cli.launchers.muse:launch"
[project.gui-scripts]
fcc-desktop = "free_claude_code.cli.desktop_entrypoint:launch"
[project.optional-dependencies]
voice = [
"grpcio>=1.83.0",
"grpcio-tools>=1.81.1",
"nvidia-riva-client>=2.26.0",
]
voice_local = [
"torch>=2.13.0",
"transformers>=5.15.0",
"accelerate>=1.14.0",
"librosa>=1.0.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/free_claude_code"]
[tool.uv]
required-version = ">=0.11.16"
[tool.uv.sources]
torch = { index = "pytorch-cu130" }
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
[dependency-groups]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"pytest-cov>=7.1.0",
"ty>=0.0.70",
"ruff>=0.16.2",
"pytest-xdist>=3.8.0",
"pytest-playwright>=0.9.0",
]
[tool.ruff]
target-version = "py314"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes (undefined names, unused imports)
"I", # isort (import ordering)
"UP", # pyupgrade (modernise syntax for target Python version)
"B", # flake8-bugbear (common bugs and anti-patterns)
"C4", # flake8-comprehensions (idiomatic comprehensions)
"SIM", # flake8-simplify (simplifiable code patterns)
"PERF", # Perflint (performance anti-patterns)
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long — enforced by the formatter instead
"B008", # FastAPI Depends() in argument defaults is intentional
"RUF006", # fire-and-forget tasks intentionally not awaited
]
[tool.ruff.lint.isort]
known-first-party = ["free_claude_code", "smoke"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = "-n auto"
filterwarnings = ["error"]
testpaths = ["tests"]
markers = [
"live: opt-in local smoke tests that can touch real services",
"interactive: smoke tests requiring manual user interaction",
"provider: live provider checks",
"messaging: live messaging platform checks",
"cli: CLI integration checks",
"clients: client compatibility checks",
"voice: voice transcription checks",
"contract: deterministic feature contract checks",
"smoke_target(name): route a smoke test behind FCC_SMOKE_TARGETS",
"xdist_group(name): group smoke provider items under pytest-xdist --dist=loadgroup",
]
[tool.ty.environment]
python-version = "3.14"
[tool.ty.analysis]
# Optional voice_local extra: torch, transformers, librosa for local whisper transcription
# Optional voice extra: nvidia-riva-client for nvidia_nim transcription provider
allowed-unresolved-imports = [
"torch",
"transformers",
"librosa",
"riva.client",
"pystray",
"PIL",
]