Python

Part 1
YouTube Video
Part 2
YouTube Video

Tox Changes

The tox.ini file has been updated to allow testing with a display, and will now run the full unit test suite.

[testenv]
deps = -rrequirements.txt
ignore_errors = True
passenv = DISPLAY
commands = python3 -m mypy -p src --html-report reports/mypy
           python3 -m coverage run --source src -m pytest --html=reports/pytest/index.html
           python3 -m coverage html -d reports/coverage
           python3 -m flake8 --docstring-convention google --format=html --htmldir=reports/flake

Outline

Here is a basic outline of the steps to follow to complete this example.

  1. Clone Starter Code from GitHub
git clone <url> python
  1. Run Project
cd python
python3 -m src
  1. Install Tox
pip3 install tox
  1. Check & Test Existing Project
python3 -m tox
  1. Confirm that project runs and has no style errors.

  2. Handle Save Events

  3. Handle Cancel Events

  4. Switch Listbox to Tree in Sidebar

  5. Populate Tree with Elements

  6. Handle Edit Events

  7. Handle Delete Events

  8. Create Unit Tests

  9. When complete, use Git to commit and push updated code.

git add .
git commit -m "Example Complete"
git push
  1. On GitHub, create a release tag and submit URL to Canvas for grading.