Simple FizzBuzz CLI application. You will get better at Python programming by reading this code and understanding it.
# Clone the repository
git clone [email protected]:shunsock/fizzbuzz.git
# Change the directory
cd fizzbuzz
# Install uv (If you haven't already)
# @see: https://github.com/astral-sh/uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install Python 3.13.1
uv python install 3.13.1
uv python pin 3.13.1
# Install the dependencies
uv sync
You can run the application by using uv
command.
# Run the application
uv run app/main.py -h
also, you can use Taskfile
to run the application. (Of course, you need to install task
)
# Run the application
task run -- -h
usage: main.py [-h] [--start START] [--end END]
FizzBuzz CLI
options:
-h, --help show this help message and exit
--start START The start of the FizzBuzz sequence
--end END The upper bound for the FizzBuzz sequence
You can check the python code with following command.
# Run linting, static analysis and test
task validate
see also