-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (129 loc) · 4.15 KB
/
pyproject.toml
File metadata and controls
148 lines (129 loc) · 4.15 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
[project]
name = "teradata-mcp-server"
version = "0.1.7"
description = "Model Context Protocol (MCP) server for Teradata, Community edition"
readme = {file = "README.md", content-type = "text/markdown"}
license = {text = "MIT"}
authors = [
{name = "Teradata"}
]
requires-python = ">=3.11"
keywords = ["teradata", "mcp", "database", "sql", "model-context-protocol"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"pydantic>=2.8.0,<3.0.0",
"fastmcp>=2.13.0,<3.0.0",
"mcp[cli]>=1.0.0,<2.0.0",
"teradatasqlalchemy>=20.0.0.0",
"python-dotenv>=1.0.0",
"PyYAML>=6.0.0",
"sqlalchemy>=2.0.0,<3.0.0",
]
[project.optional-dependencies]
# Feature Store functionality
fs = [
"teradataml>=20.0.0.7",
"tdfs4ds>=0.2.4.0",
]
# Teradata Vector Store functionality
tdvs = [
"teradatagenai>=20.0.0.3"
]
# BAR (Backup and Restore) functionality
bar = [
"requests>=2.25.0",
]
# Development dependencies
dev = [
"ruff>=0.1.0",
"mypy>=1.5.0",
"types-PyYAML",
]
[project.scripts]
teradata-mcp-server = "teradata_mcp_server:main"
[project.urls]
Homepage = "https://github.com/Teradata/teradata-mcp-server"
Documentation = "https://github.com/Teradata/teradata-mcp-server#readme"
Repository = "https://github.com/Teradata/teradata-mcp-server.git"
"Bug Tracker" = "https://github.com/Teradata/teradata-mcp-server/issues"
"Source" = "https://github.com/Teradata/teradata-mcp-server"
"Discussions" = "https://github.com/Teradata/teradata-mcp-server/discussions"
[build-system]
requires = ["hatchling>=1.17.0"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/teradata_mcp_server"]
include = [
"src/teradata_mcp_server/tools/**/*.yml",
"src/teradata_mcp_server/config/**/*.yml",
]
[tool.uv]
package = true
[tool.ruff]
line-length = 120
target-version = "py311"
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"PIE", # flake8-pie
"PL", # pylint
]
ignore = [
"F403", # Wildcard imports (temporarily ignore for gradual refactoring)
"F401", # Unused imports in __init__.py files (common pattern for re-exports)
"E402", # Module level import not at top (some tools have conditional imports)
"E501", # strings over 120 characters
"N816", # Variable naming (existing legacy naming)
"N802", # Function naming (preserve existing naming conventions)
"N803", # Argument naming (preserve existing naming conventions)
"B905", # zip() without explicit strict parameter (backwards compatibility)
"B008", # Function call in default argument (existing pattern)
"F841", # Unused variable (may be intentional in some cases)
"PLR0913", # Too many arguments (common in database tools)
"PLR0912", # Too many branches (common in conditional logic)
"PLR0915", # Too many statements (common in setup functions)
"PLW0603", # Use of globals statements
"PLC0415", # Import statements outside the module top level scope
]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F403", "F401"] # Allow wildcard imports and unused imports in __init__.py
"tests/*" = ["F401", "F403", "PLR0913"] # More lenient for test files
[tool.ruff.lint.isort]
known-first-party = ["teradata_mcp_server"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Gradually enable this
ignore_missing_imports = true
strict_optional = true
[dependency-groups]
dev = [
"build>=1.3.0",
]
[tool.hatch.build.targets.sdist]
include = [
"src/teradata_mcp_server",
"README.md",
"LICENSE",
]