[skip ci] Fix FITS card float formatting (swev-id: astropy__astropy-14508)#124
[skip ci] Fix FITS card float formatting (swev-id: astropy__astropy-14508)#124casey-brooks wants to merge 2 commits intoastropy__astropy-14508from
Conversation
Test & Lint Summary
Note: running ruff against the legacy |
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for tightening the float formatter and adding regression coverage. I left one blocking issue: the new "just in case" fallback that slices to 20 characters silently produces non-round-tripping tokens instead of surfacing an error when formatting fails. Please replace the fallback with a hard failure (or otherwise make the invariant explicit) so we do not hide formatting bugs.
Test & Lint Summary
(ruff against the full |
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for the fast follow-up—the formatter now fails loudly instead of returning truncated tokens, and the new tests cover both the round-tripping success cases and the failure path. Looks good to me.
Summary
Testing
swev-id: astropy__astropy-14508
#117