-
Notifications
You must be signed in to change notification settings - Fork 5
Set repository basepath to '~/.cache/skyllh' by default
#307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -802,8 +802,8 @@ def __init__( | |||||||||
| base_path : str | None | ||||||||||
| The user-defined base path of the data set. | ||||||||||
| Usually, this is the path of the location of the data directory. | ||||||||||
| If set to ``None`` the configured repository base path | ||||||||||
| ``Config['repository']['base_path']`` is used. | ||||||||||
| If set to ``None``, ``cfg['repository']['base_path']`` is used, | ||||||||||
| which defaults to ``~/.cache/skyllh``. | ||||||||||
|
||||||||||
| If set to ``None``, ``cfg['repository']['base_path']`` is used, | |
| which defaults to ``~/.cache/skyllh``. | |
| If set to ``None``, the dataset configuration's repository base | |
| path setting is used, which defaults to ``~/.cache/skyllh``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_BASECONFIG['repository']['base_path']is now aPathobject. Most of the codebase (and the surrounding docstrings/type hints) treat config values as plain serializable primitives (here:str | None). Keeping aPathin the config can surprise callers (e.g., string concatenation, YAML/JSON serialization) and diverges from the documentedstrtype. Consider storing this as a string (e.g., expand~to astr) and only converting toPathat the call site when needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done