git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
export PATH="$HOME/.poetry/bin:$PATH"
cd /path/to/project/f_macro_optimization
pyenv install 3.8.6
pyenv local 3.8.6
poetry shell
poetry install # install the defined dependencies for the project
# spawn a shell within your virtual environment
poetry shell
python <script>
# or you can directly run
poetry run python <script>
* flake8
* black
* mypy
pre-commit install