Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions pins/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def pin_meta(self, name, version: str = None) -> Meta:
# ensure pin and version exist
if not self.fs.exists(self.construct_path([pin_name, version])):
raise PinsError(
f"Pin {name} either does not exist, "
f"or is missing version: {version}."
f"Pin {name} either does not exist, or is missing version: {version}."
)

selected_version = guess_version(version)
Expand Down Expand Up @@ -881,9 +880,10 @@ class BoardManual(BaseBoard):
--------
>>> import fsspec
>>> import os
>>> fs = fsspec.filesystem("github", org = "rstudio", repo = "pins-python")
>>> fs = fsspec.filesystem("http", block_size=0)
>>> pin_paths = {"df_csv": "df_csv/20220214T163720Z-9bfad/"}
>>> board = BoardManual("pins/tests/pins-compat", fs, pin_paths=pin_paths)
>>> url = "https://raw.githubusercontent.com/rstudio/pins-python/main/pins/tests/pins-compat"
>>> board = BoardManual(url, fs, pin_paths=pin_paths)

>>> board.pin_list()
['df_csv']
Expand Down Expand Up @@ -984,7 +984,6 @@ def construct_path(self, elements):
return "/".join(pre_components + [pin_path])
elif len(others) == 2:
version, meta = others

return "/".join(pre_components + [stripped, meta])

raise NotImplementedError(
Expand Down
Loading