Skip to content

Commit

Permalink
Merge pull request #19 from h5io/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
jan-janssen authored Feb 5, 2024
2 parents 10c46ec + 38a717c commit 19e1cca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.2.0
hooks:
- id: ruff
name: ruff lint
Expand Down
12 changes: 7 additions & 5 deletions h5io_browser/pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def convert_dict_items_to_str(input_dict):
levels of the hierarchy.
"""
return {
str(k): convert_dict_items_to_str(input_dict=v)
if isinstance(v, dict)
else str(v)
str(k): (
convert_dict_items_to_str(input_dict=v) if isinstance(v, dict) else str(v)
)
for k, v in input_dict.items()
}

Expand Down Expand Up @@ -193,8 +193,10 @@ def _internal_copy(source, source_path, target, target_path, maintain_flag):
pass # In case the copy_to() function failed previously and the group already exists.

if target_path == "/":
source.copy(target_path, "/") if source == target else source.copy(
target_path, target
(
source.copy(target_path, "/")
if source == target
else source.copy(target_path, target)
)
else:
if maintain_flag:
Expand Down

0 comments on commit 19e1cca

Please sign in to comment.