This is a sample project for practicing/demoing refactoring. It is adapted to Python from the example in Chapter 1 of Martin Fowler's book Refactoring: Improving the Design of Existing Code, 2nd Edition.
Clone this project and follow along with the refactoring steps described in Chapter 1 of the Refactoring book.
To see a walkthrough of the steps, switch to the solution branch and follow
along with the commits there.
Before running tests, first install the dependencies:
pip install -r requirements.txtThen use the hatch tool to run tests.
hatch run testAlternatively, you can run a watch script to re-run tests any time you change the python source.
hatch run watch