"Create a diamond from a letter."
Project description
Exam Continuous Integration EPSI DevOps 3A
Authors :
- Thibault Scorielle
- Antoine Letailleur
- Dimitri Perreaux
Purpose :
The objective of this project is to generate a diamond pattern using letters.\ The script takes a letter as a parameter and displays a diamond, starting with 'A', where the provided letter marks the widest point of the diamond.\
Exemple :
diamond('A')
A
diamond('B')
A
B B
A
diamond('C')
A
B B
C C
B B
A
Want to use this project?
- FORK / CLONE
run the project
$ cd diamond_ci_exam
$ py diamond_ci_exam.py '<your_letter>'
#ex : $ py diamond_ci_exam.py 'J'
(default parameter : 'F')
- CREATE and ACTIVATE a VIRTUAL ENVIRONMENT to use poetry
Install venv
$ py -m pip install --user virtualenv
Create virtual env
$ py venv env
Activate virtual env
$ .\env\Scripts\ativate
Install pipx
$ python -m pip install pipx
$ python -m pipx ensurepath
Install poetry
$ pipx install poetry
Install poetry dependencies
$ poetry install
```shell
### Run Linters locally with poetry
```shell
$ poetry run flake8 ./diamond_ci_exam/diamond_ci_exam.py
$ poetry run isort ./diamond_ci_exam/diamond_ci_exam.py
$ poetry run bandit ./diamond_ci_exam/diamond_ci_exam.py
FLAKE8 : check PEP8
ISORT : check imports
BANDIT : find common security issues in Python code
- TESTS
Units Tests locally
$ python -m unittest discover -s test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
diamond_ci_exam-0.1.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for diamond_ci_exam-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ea9bd07ef666de336d884e13eb86f56bb8ab72b678437f7e9f59075bb5c7cff |
|
MD5 | 6f654c5ef3750dd5c1b6bcd0c4c2ea96 |
|
BLAKE2b-256 | 6ffde9d9cf9ef94c1c6a048e863b8566c55d23d49f74cdd61cbab27d1c4162c8 |