Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (63 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (63 loc) · 2.09 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
[project]
name = "sas-mcp-server"
version = "1.20.1"
description = "An MCP server for executing SAS code and querying Compute, CAS, and model APIs on SAS Viya via OAuth 2.0."
readme = "README.md"
authors = [{name = "SAS Institute Inc."}]
requires-python = ">=3.12"
dependencies = [
"anyio>=4.0.0",
"fastmcp>=4.0.0,<5.0.0",
"httpx>=0.28.1",
"pydantic>=2.12.4",
"python-dotenv>=1.2.1",
"uvicorn>=0.38.0",
]
[project.scripts]
app = "sas_mcp_server.main:main"
app-stdio = "sas_mcp_server.stdio_server:main"
sas-mcp-login = "sas_mcp_server.auth_login:main"
[build-system]
requires = ["uv_build>=0.8.22,<0.9.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"pyright>=1.1.409",
"pytest>=9.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=7.1.0",
"ruff>=0.14.4",
]
# Writer used only to generate the binary .xlsx fixture for the upload_data
# Excel integration test; without it that test importorskips. Synced by default
# via [tool.uv] default-groups below, so a plain `uv sync` installs it too.
test-formats = [
"openpyxl>=3.1",
]
[tool.uv]
# Include test-formats in a plain `uv sync` so the Excel upload_data integration
# test runs out of the box, with no separate `--group test-formats` step.
default-groups = ["dev", "test-formats"]
[tool.ruff]
target-version = "py312"
line-length = 120
src = ["src", "tests"]
# Reference material (API specs, course samples, scratch scripts) is not project
# source and should not be linted.
extend-exclude = ["docs"]
[tool.ruff.lint]
# E/F: pyflakes + pycodestyle, I: isort, B: bugbear, UP: pyupgrade,
# G: logging-format, TRY: tryceratops, SIM: flake8-simplify.
select = ["E", "F", "I", "B", "UP", "G", "TRY", "SIM"]
ignore = [
"TRY003", # long messages in exceptions are fine for this CLI/server
"TRY300", # "move to else block" — noisy, low value here
]
[tool.ruff.lint.per-file-ignores]
# Tests legitimately use broad excepts and don't need logging-format hygiene.
"tests/**" = ["G004", "B017", "TRY003"]
[tool.pyright]
include = ["src"]
pythonVersion = "3.12"
typeCheckingMode = "basic"
reportMissingTypeStubs = false