Skip to content

accept single file - #6

Merged
dodu94 merged 1 commit into
mainfrom
allow-single-input-file-in-src-data
Jul 27, 2026
Merged

accept single file#6
dodu94 merged 1 commit into
mainfrom
allow-single-input-file-in-src-data

Conversation

@dodu94

@dodu94 dodu94 commented Jul 27, 2026

Copy link
Copy Markdown
Member

Accept a single file for input loads

Summary by CodeRabbit

  • New Features

    • Interpolation now accepts either a source directory or a single source file.
    • Single-file inputs are parsed and identified automatically using the file name.
  • Documentation

    • Updated input guidance to clarify that individual source files are supported.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1114aec5-ad47-4ed2-bc3a-4cb7e549fc1c

📥 Commits

Reviewing files that changed from the base of the PR and between 5f9fcad and 6f8d90b.

📒 Files selected for processing (2)
  • src/interpcore/interpolator.py
  • tests/test_interpolator.py

Walkthrough

Interpolator now accepts a single source file or a directory, parsing either input into src_values while retaining existing directory validation. A blank line was added in the interpolator tests.

Changes

Source input support

Layer / File(s) Summary
File-or-directory ingestion
src/interpcore/interpolator.py, tests/test_interpolator.py
Interpolator.__init__ documents and handles single-file inputs, while directory parsing remains unchanged; test formatting was adjusted.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

I’m a rabbit with sources to load,
One file or a folder-lined road.
Parse values with care,
Store stems fair and square,
Then hop through the tests—code bestowed!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch allow-single-input-file-in-src-data

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dodu94
dodu94 merged commit 79a3674 into main Jul 27, 2026
8 of 9 checks passed
@dodu94
dodu94 deleted the allow-single-input-file-in-src-data branch July 27, 2026 13:03
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