-
First, clone the repo and install the dependencies,
pip install -r requirements.txt
Keep in mind that we use pip for managing Python packages.
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.
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.
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.
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.
Before submitting a patch, please make sure that the code is formatted executing this command:
black .
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.
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
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 .