- first
Create virtual environment which means that you create .venv folder under the project directory.
poetry config --local --list
poetry config --local virtualenvs.in-project true
check virtual environment is activated
poetry env list
- second
create pyproject.toml
poetry init
- third
add packages
poetry add --dev pytest autopep8 flake8
poetry add pandas
- test
# run with coverage
poetry run pytest -v --cov=tests --cov-branch
# run withou coverage
poetry run pytest -vv