Skip to content

hectorplinio/python-katas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Katas Exercises

Table of contents

Getting started

  1. First, clone the repo and install the dependencies,

     pip install -r requirements.txt
    

    Keep in mind that we use pip for managing Python packages.

Usage

This repository contains several exercises implemented in Python. Below are the details for each exercise and the necessary commands to run each one and their respective tests.

Kata 1: extractBookNames

This exercise extracts all book names from an array of people, each with their own array of books.

For more details, please refer to the README inside the src/extractBookNames directory.

Kata 2: sumNumbers

This exercise sums all numbers in an array and returns the total.

For more details, please refer to the README inside the src/sumNumbers directory.

Kata 3: findMaxNumber

This exercise finds and returns the maximum number in an array of numbers.

For more details, please refer to the README inside the src/findMaxNumber directory.

Development

Style guide

Before submitting a patch, please make sure that the code is formatted executing this command:

black .

Testing

Testing is crucial for us and we strive for high coverage of our code.

We encourage you to write tests for every functionality you build and also update the existing ones if they need to.

Running tests

Before running the test, install the needed dependencies:

pip install -r requirements.txt

Execute all tests with:

To run the tests we need to run this script

pytest

After finishing a task

Before pushing your changes, make sure you run the linter and prettier to ensure the code follows the rules, or the CI pipeline will throw an error and fail:

flake8
black .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages