Repository navigation
Conversation
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:
Code examples for the How to Set Up Quality Gates for AI Code in Python tutorial. Files live in the
quality-gates-ai-code/top-level folder, named after the article slug.The folder is the tutorial's finished uv project:
pyproject.tomlanduv.lockwith the pinned gate tools,.pre-commit-config.yaml,.github/workflows/ci.yml,.github/CODEOWNERS,scripts/agent_diff_check.py, the fixedsrc/demo/ai_module.pywith its five tests, and the agent's flawed module and tests inexamples/.Notes for review:
examples/holds deliberately broken code (hard-coded token,shell=True, wrong return type). The folder's ownpyproject.tomlexcludes it from Ruff withextend-exclude, so the repo'sruff checkandruff format --checkpass..github/workflows/ci.ymland.github/CODEOWNERSare sample files for readers to copy into their own repository root. GitHub doesn't run workflows or apply CODEOWNERS from a subfolder, so they're inert here..python-versionis matched by the root.gitignore, so it was force-added. The tutorial uses Python 3.13.Verified locally with uv 0.13.3 from a clean
git archiveof the branch:uv sync --locked,ruff check,ruff format --check,mypy src tests,bandit,pip-auditon the exported requirements, andpytest(5 passed, 94.44% coverage) all pass, andactionlintreports nothing forci.yml. The repo'sruff==0.14.1checks anddircheck.pypass too.Generated from the tutorial markdown with the
post-materialsskill, then verified locally before pushing.🤖 Generated with Claude Code