Skip to content

Add python-refactoring materials folder - #1000

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-refactoring-20261204
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-refactoring-20261204

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds the companion code for the updated tutorial Refactoring Python Applications for Simplicity (post 237, update draft 2467: https://realpython.com/pbjt/blog/post/2467/change/). Card: https://trello.com/c/BlkpD9al

Files mirror the update draft's code: the radon example (# fmt: off keeps the article's layout so radon cc/hal/mi print exactly the article's numbers), the wily pre-commit config, and the anti-pattern scripts (early return, JMESPath queries, boilerplate class vs. dataclass vs. attrs). requirements.txt pins match the draft's dependencies field.

Verified on Python 3.15.2 in a clean venv from requirements.txt: every script ran and matched the article's output; radon cc/hal/mi identical to the article; the pre-commit hook fired on a real commit; ruff 0.14.1 format/check and dircheck.py pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant