Table of contents
Requirements:
- Python >3.9
git clone https://github.com/colms/pythontemplate.git
cd pythontemplate
pyenv install 3.9.6
pyenv local 3.9.6
pip install pythontemplate
Get the code:
git clone https://github.com/colms/pythontemplate.git
cd pythontemplate
Run the virtual environment before installing the pip.
python3 setup.py sdist
pip3 install -e .
After the package is installed:
pythontemplate --foo 2
First, setup the virtual environment.
Run all unit tests:
python -m unittest discover
Run tests for a specific file:
python3 -m unittest tests.test_me
In the virtual environment, install yapf
:
pip install yapf
Run with:
yapf -ir src tests
python3 -m venv env
source env/bin/activate
deactivate