You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Valentin BOUVAREL 191825114d Merge pull request 'fix_typo' (#1) from fix_typo into main 3 years ago
tests Pass for flake8 3 years ago
.gitignore Add gitignore basic config 3 years ago
README.md .git is required in Gitea 3 years ago
gestform.py fix return type on gestformation 3 years ago
requirements.txt Add requirements 3 years ago

README.md

GestForm Challenge

Python v3.10.8 License LGPLv3 Tests 8 passed

GestForm is a FizzBuzz like challenge.

In this test we need to :

  • From a random (not pseudo random ?) list of number between -1000 to 1000
  • For each we need to check:
    • if divisible by 3 then display Geste (note the ending char "e")
    • if divisible by 5 then display Forme (note the ending char "e")
    • if divisible by 3 and 5 then display GestForm (not a concatenate of previous versions)
    • else display the number

All files must be provided to be checked.

How use it (Debian/Ubuntu)

Create a venv

python3 -m venv gestform
cd gestform
# git clone https://gitlab.com/valbou2/GestForm
https://gitea.valbou26.fr/Abbeal/GestForm.git
source bin/activate
cd GestForm
python gestform.py

How to test it (Debian/Ubuntu)

Run tests from GestForm folder

source ../bin/activate
python -m unittest tests

Information

You can use requirements to show indent and PEP8 issues:

source ../bin/activate
pip install -r requirements.txt
python -m black ./
python -m flake8 ./

The project don't have dependencies to run.