-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (135 loc) · 3.75 KB
/
Copy pathpyproject.toml
File metadata and controls
154 lines (135 loc) · 3.75 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
149
150
151
152
153
154
[project]
name = "infrastructure-diagram-mcp-server"
version = "0.0.4.3"
description = "An MCP server that seamlessly creates infrastructure diagrams for any cloud provider using the Python diagrams package DSL"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"bandit>=1.8.6",
"boto3>=1.40.53",
"diagrams>=0.24.4",
"graphviz2drawio>=1.1.0",
"mcp[cli]>=1.23.0",
"pydantic>=2.12.2",
"python-hcl2>=4.3.0",
"PyYAML>=6.0.1",
"sarif-om>=1.0.4",
"setuptools>=80.9.0",
"starlette>=0.48.0",
"urllib3>=2.5.0",
]
license = { text = "Apache-2.0" }
license-files = ["LICENSE", "NOTICE"]
authors = [
{ name = "Infrastructure Diagram MCP" },
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.scripts]
"infrastructure-diagram-mcp-server" = "infrastructure_diagram_mcp_server.server:main"
[project.urls]
Source = "https://github.com/andrewmoshu/diagram-mcp-server"
[dependency-groups]
dev = [
"commitizen>=4.9.1",
"pre-commit>=4.2.0",
"pyright>=1.1.406",
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
line-length = 99
extend-include = ["*.ipynb"]
exclude = [
".venv",
"**/__pycache__",
"**/node_modules",
"**/dist",
"**/build",
"**/env",
"**/.ruff_cache",
"**/.venv",
"**/.ipynb_checkpoints",
]
force-exclude = true
[tool.ruff.lint]
exclude = ["__init__.py"]
select = ["C", "D", "E", "F", "I", "W"]
ignore = ["C901", "E501", "E741", "F402", "F823", "D100", "D106"]
[tool.ruff.lint.isort]
lines-after-imports = 2
no-sections = true
[tool.ruff.lint.per-file-ignores]
"**/*.ipynb" = ["F704"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
[tool.pyright]
include = ["infrastructure_diagram_mcp_server", "tests"]
exclude = [
"**/__pycache__",
"**/.venv",
"**/node_modules",
"**/dist",
"**/build",
]
typeCheckingMode = "basic"
reportMissingImports = false
reportUnusedExpression = false
reportArgumentType = false
reportAttributeAccessIssue = false
reportPrivateUsage = false
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnknownArgumentType = false
reportGeneralTypeIssues = false
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.0.0"
tag_format = "v$version"
version_files = [
"pyproject.toml:version",
"infrastructure_diagram_mcp_server/__init__.py:__version__",
]
update_changelog_on_bump = true
[tool.hatch.build.targets.wheel]
packages = ["infrastructure_diagram_mcp_server"]
[tool.bandit]
# Skip specific issues
skips = ["B102"]
exclude_dirs = ["venv", "tests"]
# Per-file skips
per_file_skips = { "infrastructure_diagram_mcp_server/diagrams.py" = ["B102"] }
[tool.pytest.ini_options]
testpaths = "tests"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = ["asyncio: mark a test as an asyncio coroutine"]
filterwarnings = [
"ignore::DeprecationWarning:ast",
"ignore:ast.Str is deprecated:DeprecationWarning",
"ignore:ast.Num is deprecated:DeprecationWarning",
"ignore:ast.NameConstant is deprecated:DeprecationWarning",
"ignore:ast.Ellipsis is deprecated:DeprecationWarning",
"ignore:Attribute s is deprecated:DeprecationWarning",
]
[tool.coverage.run]
source = ["infrastructure_diagram_mcp_server"]