Skip to content

Latest commit

 

History

History
85 lines (56 loc) · 2.51 KB

File metadata and controls

85 lines (56 loc) · 2.51 KB

Bootstrap for Python coding kata

CI Python 3.11+ License: MIT

Start a Python coding kata with pytest. Setup is complete when the starter test passes.

Prerequisites

Required:

Optional:

  • GNU Make, for shorter commands. Every required task also has a direct uv command.

You do not need to install Python or pytest separately. uv installs a compatible Python version and the locked project dependencies when needed.

Set up the kata

  1. Clone the repository:

    git clone https://github.com/Coding-Cuddles/bootstrap-python-kata.git
  2. Enter the repository directory:

    cd bootstrap-python-kata
  3. Run the starter test. Use Make when it is installed:

    make test

    Otherwise, run pytest through uv directly:

    uv run pytest

    The first run may install Python and the project dependencies. Setup is complete when pytest reports 1 passed.

    If the command fails with uv: command not found, install uv and repeat this step.

Work on the kata

  1. Replace the starter assertions in test_something.py with the first kata test.

  2. Run the tests after each change. Use Make when it is installed:

    make test

    Otherwise, run pytest through uv directly:

    uv run pytest

    Continue when the test run passes.

Make command reference

Make is optional. Run make or make help to list these commands in the terminal.

Command Result
make all Run the test suite
make help Show the command reference
make test Run the test suite
make format Format tracked Python files
make format-check Check formatting without changing files
make clean Remove generated caches