Skip to content

Commit f153f45

Browse files
committed
formatting
1 parent 1ddccd0 commit f153f45

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

labelbox/schema/project.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,9 @@ def setup_editor(self, ontology) -> None:
512512
ontology (Ontology): The ontology to attach to the project
513513
"""
514514
if self.labeling_frontend() is not None:
515-
raise ResourceConflict("Editor is already set up. Use project.connect_ontology to change an ontology.")
515+
raise ResourceConflict(
516+
"Editor is already set up. Use project.connect_ontology to change an ontology."
517+
)
516518

517519
labeling_frontend = next(
518520
self.client.get_labeling_frontends(
@@ -556,7 +558,6 @@ def connect_ontology(self, ontology) -> None:
556558
'projectId': self.uid
557559
})
558560

559-
560561
def setup(self, labeling_frontend, labeling_frontend_options) -> None:
561562
""" Finalizes the Project setup.
562563
@@ -569,7 +570,9 @@ def setup(self, labeling_frontend, labeling_frontend_options) -> None:
569570
"""
570571

571572
if self.labeling_frontend() is not None:
572-
raise ResourceConflict("Editor is already set up. Use project.connect_ontology to change an ontology.")
573+
raise ResourceConflict(
574+
"Editor is already set up. Use project.connect_ontology to change an ontology."
575+
)
573576

574577
if not isinstance(labeling_frontend_options, str):
575578
labeling_frontend_options = json.dumps(labeling_frontend_options)

tests/integration/test_project_setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ def test_project_editor_setup(client, project, rand_gen):
6868
assert [ontology.name for ontology in client.get_ontologies(ontology_name)
6969
] == [ontology_name]
7070

71-
def test_project_editor_setup_cant_call_multiple_times(client, project, rand_gen):
71+
72+
def test_project_editor_setup_cant_call_multiple_times(client, project,
73+
rand_gen):
7274
ontology_name = f"test_project_editor_setup_ontology_name-{rand_gen(str)}"
7375
ontology = client.create_ontology(ontology_name, simple_ontology())
7476
project.setup_editor(ontology)
7577
with pytest.raises(ResourceConflict):
76-
project.setup_editor(ontology)
77-
78-
78+
project.setup_editor(ontology)

0 commit comments

Comments
 (0)