This repository contains a Python-based refactored solution to the Gilded Rose Refactoring Kata.
- Clean Code: Refactored for improved readability and maintainability.
- Testable: Thoroughly tested using
pytest
. - Coverage: 100% test coverage achieved with
pytest-cov
. - Adherence to Constraints: The original
Item
class remains unmodified, as required by the kata.
- Python 3.x
uv
(See installation note)
-
Initialize project and create a virtual environment:
uv init --no-workspace uv venv
-
Activate virtual env and install the requirements using
uv
:source .venv/bin/activate # On Linux/macOS .venv\Scripts\activate # On Windows uv pip install ".[dev,test]"
-
Run tests with coverage analysis:
pytest --cov=. --cov-report term-missing
This project uses uv
for managing dependencies and the virtual environment. If you don't have uv
installed, you can find installation instructions in the official uv documentation.
This project is licensed under the MIT License. See the LICENSE file for details.