A nice template to start with
pip install python_template
Checkout these examples to call this as a lib:
This module exposes a single function hello_world which takes the same arguments as the command line tool:
- message the message to print. (required)
Either locally, or in gitpod (do export PIP_USER=false there)
Setup a virtualenv:
python3 -m venv .env
source .env/bin/activate
pip install -e .
to run tests:
pip install -r requirements-test.txt
then
make lint
make test
You can use make black to reformat the code
python -m pytest -x -s -v tests -k "dummy" to run a specific test