Repository navigation
[TEST, do not merge] Sample code for: Python Sandbox: Run Untrusted Code in Docker and MicroVMs - #903
Draft
realpython-bot wants to merge 2 commits into
Draft
realpython-bot wants to merge 2 commits into
realpython-bot wants to merge 2 commits into
Conversation
…roVMs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ruff and the CMS preflight disagreed on quote style for the nested f-string in compare.py. Unpacking the result avoids nested quotes, so the folder-level ruff.toml override is no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Where to put new files:
my-awesome-articleHow to merge your changes:
Warning
Throw-away pipeline test. This PR comes from a test run of the
post-materialspipeline on CMS post 1104 (a test copy of the tutorial). Do not merge. Please close it after the test is reviewed.Code examples for the Python Sandbox: Run Untrusted Code in Docker and MicroVMs tutorial. Files live in the
python-sandbox/top-level folder, named after the article slug.Generated from the tutorial markdown with the
post-materialsskill. The Python files androotfs/sbin/run-jobare byte-for-byte copies of the article's code blocks.Notes:
python-sandbox/ruff.tomlextends the rootpyproject.tomland setsquote-style = "preserve". Without it,ruff format --checkwould rewrite the PEP 701 nested same-quote f-string at the end ofcompare.py(f"...{result["exit_code"]}..."toresult['exit_code']), which would diverge from the article.requirements.txtpinsRestrictedPython==8.5, matching the post'sdependenciesfield and the install command in the article.🤖 Generated with Claude Code