Skip to content

Reorganize and consolidate source files for clarity - #40

Merged
tabishm52 merged 1 commit into
mainfrom
consolidate-activity-modules
Sep 6, 2026
Merged

tabishm52 merged 1 commit into
mainfrom
consolidate-activity-modules

Conversation

@tabishm52

@tabishm52 tabishm52 commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Merge output.py and derive.py into activity.py
  • Rename parse_activity.py to parser.py, moving DEFAULT_RECORD_COLUMNS and
    DEFAULT_LAP_COLUMNS in alongside it
  • Rename parse_fit_file.py to parse_fit.py

Test plan

  • uv run pytest (195 passed)
  • uv run ruff check / uv run ruff format --check
  • uv run pyright
  • uv run pre-commit run --all-files

- Merge output.py and derive.py into activity.py
- Rename parse_activity.py to parser.py, moving DEFAULT_RECORD_COLUMNS and
  DEFAULT_LAP_COLUMNS in alongside it
- Rename parse_fit_file.py to parse_fit.py

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tabishm52
tabishm52 merged commit 32e74da into main Sep 6, 2026
4 checks passed
@tabishm52
tabishm52 deleted the consolidate-activity-modules branch September 6, 2026 00:44
tabishm52 added a commit that referenced this pull request Sep 6, 2026
…ension message (#47)

* Fix stale output.py reference in test_readme docstring

output.py was removed in PR #40; the columns it checks now live in parser.py.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Stop index_by_time mutating the caller's DataFrame

The empty-and-column-absent branch wrote NaT into the input in place.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Raise Ambiguous extension for a bare file.gz

infer_extension silently returned "" instead of reusing normalize_extension's guard.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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