Skip to content

fix(python): make the convert command safe on real files - #90

Merged
Adeniyikayodee merged 9 commits into
mainfrom
fix/convert-file-safety
Oct 12, 2026
Merged

Adeniyikayodee merged 9 commits into
mainfrom
fix/convert-file-safety

Conversation

@Adeniyikayodee

Copy link
Copy Markdown
Owner

Found while running the convert command against the live API on 12 October 2026.

  • --out naming the input file emptied it. It is now refused, and the output opens only after the header is checked.
  • A file with no rows lost its header.
  • A row longer than the header wrote a Python list into an unnamed column. The run now stops and names the line.
  • An existing <column>_status column, or a repeated header name, was replaced without notice. Both are refused.
  • A missing or non-UTF-8 file printed a traceback.

Each commit carries its test.

@Adeniyikayodee
Adeniyikayodee merged commit 4e7d72a into main Oct 12, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant