Skip to content

Salvage from PR #52: cache path in error message + docstring fixes#91

Merged
nick-gorman merged 1 commit into
masterfrom
salvage-pr52-doc-fixes
May 25, 2026
Merged

Salvage from PR #52: cache path in error message + docstring fixes#91
nick-gorman merged 1 commit into
masterfrom
salvage-pr52-doc-fixes

Conversation

@nick-gorman
Copy link
Copy Markdown
Member

Summary

Cherry-picks the salvageable bits from Matt's PR #52 that hadn't been picked up by any of the other PRs in the PR-#67 breakdown. Matt's authorship is preserved on the commit.

What landed:

  • Both "The raw_data_location provided does not exist" errors now interpolate the actual path — helps diagnose typos and cwd mistakes.
  • rebuild= docstring clarified with (redownload, re-unzip, re-convert).
  • download_csv docstring no longer incorrectly describes it as downloading a "zipped csv".
  • One isif typo in _write_to_format's docstring.

What was NOT salvaged from PR #52

PR #52 also renamed download_xldownload_xml. That bit landed differently as download_xlsx via PR #84 (the file is .xlsx, not XML), so the original direction would have been a step backward.

Tests

Two new regression tests in tests/test_errors.py that assert the offending path appears in the error message — one for dynamic_data_compiler, one for static_table.

Test plan

  • uv run pytest tests/test_errors.py — 18/18 pass
  • uv run pytest — full suite 409 passed / 1 skipped (no regressions)
  • CI matrix

Closes PR #52 once merged.

🤖 Generated with Claude Code

Salvaged from Matt's PR #52 (the rest of which was either superseded
by PR #84's download_xlsx rename, or already on master).

- Both 'The raw_data_location provided does not exist' errors now
  interpolate the actual path so the caller sees exactly what they
  passed — helps diagnose typos and cwd mistakes.
- Clarified the rebuild= docstring with the parenthetical
  '(redownload, re-unzip, re-convert)'.
- Fixed the download_csv docstring that incorrectly described it as
  downloading a 'zipped csv'.
- Fixed a 'is' → 'if' typo in _write_to_format's docstring.

Added two regression tests in tests/test_errors.py that assert the
offending path appears in the error message for both
dynamic_data_compiler and static_table.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nick-gorman nick-gorman merged commit 5c691fa into master May 25, 2026
16 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.

2 participants