Closed asmacdo closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.03%. Comparing base (
2b12679
) to head (b79229a
). Report is 26 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Frankly I don't like this as it spreads aspects of formatting now from format specification into the code. as for "unknown" I already gave a nice solution to again allow it to be float
or None
(not sure some ad-hoc string) and then being nicely formatted: then you keep value nicely pythonic Optional[float] and format it the way you like it. that is my 1c. and I gave already a dollar of those I think so far.
Closing in favor of https://github.com/con/duct/pull/183
If we don't do the rounding prior to formatting, the summary_format (being a format string, not an f-string) is not smart enough to handle floats OR None (or str 'unknown'). So instead we need to handle that first.
Fixes: https://github.com/con/duct/issues/172 Fixes: https://github.com/con/duct/issues/171