generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix(diagrams): adds ast parsing to block import
and from import
#1528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+554
−633
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a15e74c
fix(diagrams): adds ast parsing to block `import` and `from import`
theagenticguy 169c53e
fix: failing tests
theagenticguy fe9c071
Update src/aws-diagram-mcp-server/awslabs/aws_diagram_mcp_server/scan…
theagenticguy ffdcc93
Merge branch 'main' into fix/diagrams-imports
theagenticguy fd709de
Merge branch 'main' into fix/diagrams-imports
theagenticguy 28da825
Merge branch 'main' into fix/diagrams-imports
scottschreckengaust File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,33 +3,30 @@ name = "awslabs.aws-diagram-mcp-server" | |
version = "1.0.10" | ||
description = "An MCP server that seamlessly creates diagrams using the Python diagrams package DSL" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
requires-python = ">=3.12" | ||
dependencies = [ | ||
"bandit>=1.8.6", | ||
"boto3>=1.40.53", | ||
"diagrams>=0.24.4", | ||
"boto3>=1.37.27", | ||
"mcp[cli]>=1.11.0", | ||
"pydantic>=2.10.6", | ||
"bandit>=1.7.5", | ||
"sarif-om>=1.0.0", # Fixes GitHub issue #1041: No module named 'sarif_om' | ||
# Security fixes for CVEs | ||
"setuptools>=78.1.1", # Fixes CVE-2025-47273 | ||
"starlette>=0.47.2", # Fixes CVE-2025-54121 | ||
"urllib3>=2.5.0", # Fixes CVE-2025-50181, CVE-2025-50182 | ||
"mcp[cli]>=1.17.0", | ||
"pydantic>=2.12.2", | ||
"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" ] | ||
license = { text = "Apache-2.0" } | ||
license-files = ["LICENSE", "NOTICE"] | ||
|
||
authors = [ | ||
{name = "Amazon Web Services"}, | ||
{name = "AWSLabs MCP", email="[email protected]"}, | ||
{ name = "Amazon Web Services" }, | ||
{ name = "AWSLabs MCP", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
] | ||
|
@@ -46,13 +43,13 @@ Changelog = "https://github.com/awslabs/mcp/blob/main/src/aws-diagram-mcp-server | |
|
||
[dependency-groups] | ||
dev = [ | ||
"commitizen>=4.2.2", | ||
"pre-commit>=4.1.0", | ||
"ruff>=0.9.7", | ||
"pyright>=1.1.398", | ||
"pytest>=7.4.0", | ||
"pytest-cov>=4.1.0", | ||
"pytest-asyncio>=0.26.0", | ||
"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] | ||
|
@@ -74,7 +71,7 @@ exclude = [ | |
"**/env", | ||
"**/.ruff_cache", | ||
"**/.venv", | ||
"**/.ipynb_checkpoints" | ||
"**/.ipynb_checkpoints", | ||
] | ||
force-exclude = true | ||
|
||
|
@@ -102,7 +99,13 @@ docstring-code-format = true | |
|
||
[tool.pyright] | ||
include = ["awslabs", "tests"] | ||
exclude = ["**/__pycache__", "**/.venv", "**/node_modules", "**/dist", "**/build"] | ||
exclude = [ | ||
"**/__pycache__", | ||
"**/.venv", | ||
"**/node_modules", | ||
"**/dist", | ||
"**/build", | ||
] | ||
typeCheckingMode = "basic" | ||
reportMissingImports = false | ||
reportUnusedExpression = false | ||
|
@@ -120,7 +123,7 @@ version = "0.0.0" | |
tag_format = "v$version" | ||
version_files = [ | ||
"pyproject.toml:version", | ||
"awslabs/aws_diagram_mcp_server/__init__.py:__version__" | ||
"awslabs/aws_diagram_mcp_server/__init__.py:__version__", | ||
] | ||
update_changelog_on_bump = true | ||
|
||
|
@@ -130,7 +133,7 @@ packages = ["awslabs"] | |
[tool.bandit] | ||
# Skip specific issues | ||
skips = ["B102"] | ||
exclude_dirs = ["venv","tests"] | ||
exclude_dirs = ["venv", "tests"] | ||
|
||
# Per-file skips | ||
per_file_skips = { "awslabs/aws_diagram_mcp_server/diagrams.py" = ["B102"] } | ||
|
@@ -139,9 +142,7 @@ per_file_skips = { "awslabs/aws_diagram_mcp_server/diagrams.py" = ["B102"] } | |
testpaths = "tests" | ||
asyncio_mode = "auto" | ||
asyncio_default_fixture_loop_scope = "function" | ||
markers = [ | ||
"asyncio: mark a test as an asyncio coroutine", | ||
] | ||
markers = ["asyncio: mark a test as an asyncio coroutine"] | ||
filterwarnings = [ | ||
"ignore::DeprecationWarning:ast", | ||
"ignore:ast.Str is deprecated:DeprecationWarning", | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.