Skip to content

Repository files navigation

Bootstrap for Python coding kata

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

CommandResult
make allRun the test suite
make helpShow the command reference
make testRun the test suite
make formatFormat tracked Python files
make format-checkCheck formatting without changing files
make cleanRemove generated caches

About

Bootstrap repository for clean code katas in Python

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages