-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (103 loc) · 2.91 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (103 loc) · 2.91 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
[project]
name = "codemcp"
version = "0.7.0"
description = "MCP server for file operations"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
dependencies = [
"mcp[cli]>=1.2.0",
"ruff>=0.9.10",
"toml>=0.10.2",
"tomli>=2.1.1",
"anyio>=3.7.0",
"pyyaml>=6.0.0",
"editorconfig>=0.17.0",
"click>=8.1.8",
"agno>=1.2.16",
"anthropic>=0.49.0",
"fastapi>=0.115.12",
"uvicorn>=0.28.0",
"starlette>=0.35.1",
"google-genai>=1.10.0",
"pathspec>=0.12.1",
]
[dependency-groups]
dev = [
"pytest>=7.0.0",
"pytest-xdist>=3.6.1",
"pytest-asyncio>=0.23.0",
"black>=23.0.0",
"mypy>=1.0.0",
"expecttest>=0.1.4",
"ruff>=0.1.5",
"pyright>=1.1.350",
"tomli_w>=1.0.0",
"requests>=2.30.0",
]
[project.scripts]
codemcp = "codemcp:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
[tool.ruff]
# Enable the formatter
target-version = "py312"
line-length = 88
indent-width = 4
# Enabled linters
[tool.ruff.lint]
select = ["ASYNC"]
# Exclude test files from ASYNC lints
[tool.ruff.lint.per-file-ignores]
"test/**/*.py" = ["ASYNC"]
[tool.ruff.format]
# Formatter settings
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
# Pytest configuration
testpaths = ["tests", "e2e"]
addopts = "-n auto --tb=native"
asyncio_default_fixture_loop_scope = "function"
[tool.pyright]
# Pyright configuration with strict settings
include = ["codemcp"]
exclude = ["**/node_modules", "**/__pycache__", "dist"]
venvPath = "."
venv = ".venv"
reportMissingImports = true
reportMissingTypeStubs = true
pythonVersion = "3.12"
pythonPlatform = "All"
typeCheckingMode = "strict"
reportUnknownMemberType = true
reportUnknownParameterType = true
reportUnknownVariableType = true
reportUnknownArgumentType = true
reportPrivateImportUsage = true
reportUntypedFunctionDecorator = true
reportFunctionMemberAccess = true
reportIncompatibleMethodOverride = true
stubPath = "./stubs"
# Type stub package mappings
stubPackages = [
{ source = "tomli", stub = "tomli_stubs" },
{ source = "mcp", stub = "mcp_stubs" }
]
# For testing code specific ignores
[[tool.pyright.ignoreExtraErrors]]
path = "codemcp/testing.py"
errorCodes = ["reportUnknownMemberType", "reportUnknownArgumentType", "reportUnknownVariableType"]
[[tool.pyright.ignoreExtraErrors]]
path = "codemcp/main.py"
errorCodes = ["reportUnknownMemberType", "reportUnknownArgumentType", "reportUnknownVariableType", "reportUnknownParameterType", "reportMissingParameterType"]
[[tool.pyright.ignoreExtraErrors]]
path = "codemcp/agno.py"
errorCodes = ["reportUnknownMemberType", "reportUnknownArgumentType", "reportUnknownVariableType", "reportUnknownParameterType", "reportMissingParameterType", "reportPrivateImportUsage"]
[[tool.pyright.ignoreExtraErrors]]
path = "codemcp/config.py"
errorCodes = ["reportUnknownVariableType"]