Skip to content

Commit 6572a04

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b62fc6b commit 6572a04

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

geoh5py/ui_json/ui_json.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@
3939
from geoh5py.shared.utils import fetch_active_workspace
4040
from geoh5py.shared.validators import none_to_empty_string
4141
from geoh5py.ui_json.forms import BaseForm
42-
from geoh5py.ui_json.validations import ErrorPool, UIJsonError, get_validations, object_or_catch
42+
from geoh5py.ui_json.validations import (
43+
ErrorPool,
44+
UIJsonError,
45+
get_validations,
46+
object_or_catch,
47+
)
4348
from geoh5py.ui_json.validations.form import empty_string_to_none
4449

4550

geoh5py/ui_json/validations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
UIJsonError,
2525
dependency_type_validation,
2626
mesh_type_validation,
27+
object_or_catch,
2728
parent_validation,
28-
object_or_catch
2929
)
3030

3131

geoh5py/ui_json/validations/uijson.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1919

2020
from typing import Any
21-
2221
from uuid import UUID
2322

2423
from geoh5py import Workspace
2524
from geoh5py.data import Data
26-
from geoh5py.objects import ObjectBase
2725
from geoh5py.groups import PropertyGroup
26+
from geoh5py.objects import ObjectBase
2827
from geoh5py.shared import Entity
2928

29+
3030
class UIJsonError(Exception):
3131
"""Exception raised for errors in the UIJson object."""
3232

@@ -113,4 +113,4 @@ def object_or_catch(
113113
if obj[0] is not None:
114114
return obj[0]
115115

116-
return UIJsonError(f"Workspace does not contain an entity with uid: {uuid}.")
116+
return UIJsonError(f"Workspace does not contain an entity with uid: {uuid}.")

0 commit comments

Comments
 (0)