This repository was archived by the owner on Jun 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (125 loc) · 3.54 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (125 loc) · 3.54 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
[project]
name = "mcp-paradex"
dynamic = ["version"]
description = "MCP server for Paradex trading platform integration"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{name = "Your Name", email = "your.email@example.com"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"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",
]
dependencies = [
"mcp[cli]>=1.26.0",
"paradex-py>=0.5.5",
"pydantic>=2.11.0",
"uvicorn>=0.35.0",
"python-dotenv>=1.0.1",
"aiohttp>=3.12.0",
"jmespath>=1.0.1",
]
[project.optional-dependencies]
dev = [
"black>=25.1.0",
"ruff>=0.11.2",
"mypy>=1.15.0",
"pre-commit>=4.2.0",
"pytest>=8.3.5",
"pytest-cov>=6.0.0",
"pytest-asyncio>=0.25.0",
]
[project.scripts]
mcp-paradex = "mcp_paradex.server.server:run_cli"
[project.entry-points."mcp.server"]
paradex = "mcp_paradex.server.server:server"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_paradex"]
[tool.hatch.version]
path = "src/mcp_paradex/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/README.md",
"/LICENSE",
"/pyproject.toml",
]
[tool.black]
line-length = 100
target-version = ["py310"]
include = '\.pyi?$'
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"C90", # mccabe complexity
"N", # pep8-naming
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by black)
"E402", # module level import not at top
"F403", # star imports
"F401", # unused imports (needed for registration)
"F841", # local variable assigned but not used
"ARG001", # unused function argument (ctx is required by MCP)
"PTH100", # os.path usage (needed for compatibility)
"PTH120", # os.path.dirname usage
"RUF013", # implicit optional
"B904", # raise without from
]
[tool.ruff.lint.isort]
known-first-party = ["mcp_paradex"]
known-third-party = ["mcp", "paradex_py", "pydantic"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
strict_optional = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = ["paradex_py.*", "mcp.*", "pydantic.*"]
ignore_missing_imports = true
ignore_errors = true
[tool.uv]
# mcp>=1.26 requires pywin32>=310 on Windows, paradex-py requires pywin32==306 via starknet-py.
# This project targets Linux/macOS only, so we restrict the resolution environments accordingly.
environments = ["sys_platform != 'win32'"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
python_classes = "Test*"
addopts = "--cov=mcp_paradex --cov-report=term-missing"
asyncio_mode = "auto"