-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·103 lines (91 loc) · 1.87 KB
/
pyproject.toml
File metadata and controls
executable file
·103 lines (91 loc) · 1.87 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mcp-server-project"
version = "0.1.0"
description = "MCP Server Project"
authors = [{name = "Your Name", email = "your.email@example.com"}]
dependencies = [
"fastapi",
"starlette",
"uvicorn",
"fastmcp",
"slowapi",
"pydantic",
"pydantic-settings",
"httpx",
# Add other dependencies as needed
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-asyncio",
"pytest-anyio",
"pre-commit",
"ruff",
"bandit",
"pip-audit",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["app*"]
exclude = ["shared_host_folder*", "package_control_channel*", "tests*"]
[tool.black]
line-length = 120
target-version = ["py312"]
extend-exclude = '''
^(
package_control_channel/|
\.venv/|
build/|
dist/|
node_modules/|
.*/migrations/
)
'''
[tool.isort]
profile = "black"
line_length = 120
skip_glob = [
"package_control_channel/**",
".venv/**",
"build/**",
"dist/**",
"node_modules/**",
]
[tool.ruff]
line-length = 120
target-version = "py312"
extend-exclude = [
"package_control_channel/**",
".venv/**",
"build/**",
"dist/**",
"node_modules/**",
"*/migrations/**",
]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.isort]
known-first-party = ["app"]
[tool.ruff.format]
quote-style = "double"
[tool.pytest.ini_options]
addopts = "--tb=short -v"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
pythonpath = ["."]
markers = [
"anyio: marks tests as needing anyio (deselect with '-m \"not anyio\"')",
"asyncio: marks tests as needing asyncio",
"integration: marks tests as integration tests",
]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
strict = false
[tool.bandit]
exclude_dirs = ["tests", "package_control_channel"]