You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(cli): use relative path for local directory log message - #111
[ x] I have performed a self-review of my own code
I have commented my code, particularly in hard-to-understand areas
I have made corresponding changes to the documentation (if applicable)
I have added tests that prove my fix is effective or that my feature works
[x ] New and existing unit tests pass locally with my changes
[x ] poetry run pytest - all tests passed
[x ] poetry run ruff check - no linting errors
Summary by CodeRabbit
Bug Fixes
When no download directory is specified, the selected directory is displayed as a path relative to the current working directory instead of as a full path. Download behavior is unchanged: files are downloaded to the same selected location, and specifying a download directory continues to work as before.
No actionable comments were generated in the recent review.
Walkthrough
When no localDir is supplied, the missing-directory message displays the selected directory as a path relative to the current working directory. The Poetry package version changes from 1.3.0 to 1.3.1.
The CLI's missing-directory message now shows a relative path, and the package version moves to 1.3.1. The change is small and low risk to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the CLI log message for the local directory now uses a relative path. The raw summary confirms that download.py prints a path relative to the current working directory…
Description check
The description states the change clearly. It explains that the directory output now uses os.path.relpath() to avoid confusing absolute paths for Docker mounts, and it links issue #68. It marks the bu…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the CLI log message for the local directory now uses a relative path. The raw summary confirms that download.py prints a path relative to the current working directory when no localDir is supplied. The title uses the conventional fix(cli) prefix and is specific enough for a reader scanning history.
Full details: Description check
Explanation
The description states the change clearly. It explains that the directory output now uses os.path.relpath() to avoid confusing absolute paths for Docker mounts, and it links issue #68. It marks the bug fix type and records that ruff and pytest passed. Gaps: the 'I have added tests' item is unchecked, and the template's 'I have commented my code' and documentation items are unchecked with no reason given. The Type of change and checklist markers also contain stray spaces ('[ x]', '[x ]'), which may not render as checked boxes. The description does not state whether any test covers the new behavior.
Resolution
Optional improvements: state whether a test covers the relative path output, or explain why none was added. Fix the checkbox markup so the ticks render correctly (for example '[x]' with no inner spaces). Confirm the unchecked commenting and documentation items do not apply.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: b23a4148-901a-4ddc-8674-c9b3ca1888a1
Commits
Reviewing files that changed from the base of the PR and between d64123a and fea0425.
Files selected for processing: 1
pyproject.toml
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Wrapped the directory output in os.path.relpath() so the CLI prints a clean relative path instead of a confusing absolute path for Docker mounts
Related Issues
Fixes issue #68
Type of change
Checklist:
poetry run pytest- all tests passedpoetry run ruff check- no linting errorsSummary by CodeRabbit