$ show walter201230/Python
This repository is a comprehensive Python tutorial (28k+ stars) covering beginner to advanced topics, with content written in Markdown and published as a static documentation site via MkDocs. The codebase includes a custom tool (`tools/example_runner.py`) that extracts and executes Python code blocks from the Markdown files to verify correctness, integrated into CI. The project also uses modern Python tooling (uv, ruff, pytest) and provides an interactive learning site at learn-py.org. While primarily educational content, the repository demonstrates solid engineering practices with automated testing of examples, dependency management, and CI/CD pipelines.
The LLM identified 1 files worth highlighting for reuse:
Extracts Python code blocks from Markdown files using regex, writes them to temporary files, and executes them with subprocess to verify correctness. Supports skipping blocks with `<!-- skip-ci -->` comments and configurable timeout. This tool is self-contained and can be reused in any documentation project that wants to automatically test embedded code examples, demonstrating non-obvious skill in regex pattern matching, subprocess management, and CI integration.