makerplane / pyEfis

Electronic Flight Information System in Python
GNU General Public License v2.0
55 stars 31 forks source link

Code tests, update standards #229

Closed e100 closed 3 weeks ago

e100 commented 1 month ago

Changed to using the current standard pyproject.yaml Added pytest to test code and report coverage Updated Makefile to fix flaws and add new features. Moved code into src folder since this is the current standard layout

github-actions[bot] commented 1 month ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pyefis
  __init__.py 1
  cfg.py 1-143
  main.py 34, 227
  version.py 1-3
  src/pyefis/common
  __init__.py 20-23
  src/pyefis/hmi
  actionclass.py 42
  functions.py 22, 33
  src/pyefis/instruments/NumericalDisplay
  __init__.py 23, 53-69, 77-110, 115-123, 146-152, 157-161, 176-177, 243-244, 249-260, 266-269, 274, 280-283
  src/pyefis/instruments/airspeed
  __init__.py 33, 48, 55-69, 94, 99-108, 119-136, 147-150, 157-160, 168-171, 183, 222-228, 233, 252-272, 287, 297, 302, 309-317, 325, 335, 348-351, 362-376, 384, 393-396, 411-412, 432-438, 466, 479-480, 509-510
  src/pyefis/instruments/gauges
  abstract.py 161-164, 185-188
  arc.py 198
  numeric.py 85-93
  verticalBar.py 293, 307
  src/pyefis/instruments/helpers
  __init__.py 1-63
  src/pyefis/instruments/misc
  __init__.py 30, 51-56, 122, 130, 180, 220-221
  src/pyefis/screens
  screenbuilder.py 935-940, 947-954
Project Total  

This report was generated by python-coverage-comment-action

e100 commented 3 weeks ago

With no feedback I am proceeding with merging this so I can continue with this and improving the CI actions.