Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ai-refactor-python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# How to Refactor Python Code With an AI Agent

This folder provides the sample project for the Real Python tutorial [How to Refactor Python Code With an AI Agent](https://realpython.com/ai-refactor-python/).

Unzip the `ai-refactor-python-starter.zip` archive to get the starter code: the RP To-Do app from [Build a Command-Line To-Do App With Python and Typer](https://realpython.com/python-typer-cli/) with a test suite that pins its current behavior, ready for you to refactor with an AI agent.

Unzip the `ai-refactor-python-final.zip` archive to get the finished project: the refactoring plan in `REFACTOR.md`, the Ruff, mypy, and coverage settings in `pyproject.toml`, and the code after applying every refactoring in the plan.
Binary file added ai-refactor-python/ai-refactor-python-final.zip
Binary file not shown.
Binary file added ai-refactor-python/ai-refactor-python-starter.zip
Binary file not shown.
Loading