Skip to content

NightSoma/gildedrose-refactoring-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gilded Rose Refactoring Kata - Python Solution

This repository contains a Python-based refactored solution to the Gilded Rose Refactoring Kata.

Key Features

  • 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.

Requirements

Running the Tests

  1. Initialize project and create a virtual environment:

    uv init --no-workspace
    uv venv
  2. 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]"
  3. Run tests with coverage analysis:

    pytest --cov=. --cov-report term-missing

uv Installation

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

My refactoring of famous kata

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages