pcdshub / pytmc

Generate EPICS IOCs and records from TwinCAT projects - along with many TwinCAT project tools
https://pcdshub.github.io/pytmc/
Other
10 stars 11 forks source link

Sort records when rendered #143

Closed n-wbrown closed 4 years ago

n-wbrown commented 4 years ago

Add a new sort method for the EPICSRecord.field Ordered dict. This first sorts all entries specified in a dictionary and then sorts any unidentified items alphabetically.

As a side not I've tried adding sphinx doc types using the python type hints format. I found this to be a satisfactory

codecov-io commented 4 years ago

Codecov Report

Merging #143 into master will increase coverage by 0.07%. The diff coverage is 92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #143      +/-   ##
==========================================
+ Coverage   77.71%   77.78%   +0.07%     
==========================================
  Files          16       17       +1     
  Lines        1880     1904      +24     
==========================================
+ Hits         1461     1481      +20     
- Misses        419      423       +4
Impacted Files Coverage Δ
...tmc/default_settings/unified_ordered_field_list.py 100% <100%> (ø)
pytmc/record.py 92.67% <91.3%> (-0.23%) :arrow_down:
pytmc/linter.py 68.25% <0%> (-3.18%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 053fa26...0fd1972. Read the comment docs.