-
Create a virutal environment and run the program
mygui.pyinmycode -
Install the packages listed in
requirements.txt -
Use
toxto test the program. -
Generate HTML and PDF docs using Sphinx
-
Look at the test results - can you improve them?
To install (venv recommended)
pip install flake8To check all Python scripts in current directory
flake8 . --count --exit-zero --max-complexity=5 --statisticsTo install (venv recommended)
pip install pytest-covTo get statistics for all tests
pytest --cov=. tests
Example https://github.com/PyCQA/flake8/blob/main/tox.ini
https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring
To install
python -m venv .venv
source .venv/bin/activate
python -m pip install sphinx
python -p pip install rinohtypeTo create docs
make.bat html
make.bat rinohhttps://www.sphinx-doc.org/en/master/tutorial/getting-started.html
https://eikonomega.medium.com/getting-started-with-sphinx-autodoc-part-1-2cebbbca5365