diff --git a/pins/boards.py b/pins/boards.py index 91bfb585..70fc8ba4 100644 --- a/pins/boards.py +++ b/pins/boards.py @@ -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) @@ -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'] @@ -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(