Skip to content

Commit 401bffe

Browse files
chore: bump version to 2.0.0a22 and apply pre-commit formatting
1 parent 2d7d935 commit 401bffe

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

src/datajoint/builtin_codecs.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,7 @@ def get_dtype(self, is_store: bool) -> str:
780780
"""Filepath is external only."""
781781
if not is_store:
782782
raise DataJointError(
783-
"<filepath> requires @ symbol. Use <filepath@> for default store "
784-
"or <filepath@store> to specify store."
783+
"<filepath> requires @ symbol. Use <filepath@> for default store " "or <filepath@store> to specify store."
785784
)
786785
return "json"
787786

@@ -848,10 +847,7 @@ def encode(self, value: Any, *, key: dict | None = None, store_name: str | None
848847
if filepath_prefix:
849848
filepath_prefix_normalized = filepath_prefix.strip("/") + "/"
850849
if not path_normalized.startswith(filepath_prefix_normalized):
851-
raise ValueError(
852-
f"<filepath@> must use prefix '{filepath_prefix}' (filepath_prefix). "
853-
f"Got path: {path}"
854-
)
850+
raise ValueError(f"<filepath@> must use prefix '{filepath_prefix}' (filepath_prefix). " f"Got path: {path}")
855851

856852
# Verify file exists
857853
backend = get_store_backend(store_name)

src/datajoint/settings.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@ class JobsSettings(BaseSettings):
256256
)
257257

258258

259-
260-
261259
class Config(BaseSettings):
262260
"""
263261
Main DataJoint configuration.
@@ -300,7 +298,7 @@ class Config(BaseSettings):
300298
default_factory=dict,
301299
description="Unified external storage configuration. "
302300
"Use stores.default to designate default store. "
303-
"Configure named stores as stores.<name>.protocol, stores.<name>.location, etc."
301+
"Configure named stores as stores.<name>.protocol, stores.<name>.location, etc.",
304302
)
305303

306304
# Top-level settings
@@ -335,9 +333,7 @@ def convert_path(cls, v: Any) -> Path | None:
335333
return None
336334
return Path(v) if not isinstance(v, Path) else v
337335

338-
def get_store_spec(
339-
self, store: str | None = None, *, use_filepath_default: bool = False
340-
) -> dict[str, Any]:
336+
def get_store_spec(self, store: str | None = None, *, use_filepath_default: bool = False) -> dict[str, Any]:
341337
"""
342338
Get configuration for a storage store.
343339

src/datajoint/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# version bump auto managed by Github Actions:
22
# label_prs.yaml(prep), release.yaml(bump), post_release.yaml(edit)
33
# manually set this version will be eventually overwritten by the above actions
4-
__version__ = "2.0.0a21"
4+
__version__ = "2.0.0a22"

0 commit comments

Comments
 (0)