Skip to content

Commit cd01c8b

Browse files
authored
Merge branch 'friday' into 1944_dependencies
2 parents ba1bca0 + 3c06c21 commit cd01c8b

File tree

4 files changed

+161
-222
lines changed

4 files changed

+161
-222
lines changed

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ minversion = 3.7
33
log_cli=true
44
python_files = test_*.py
55
;pytest_plugins = ['pytest_profiling']
6-
;addopts = -n auto --dist=loadscope
6+
addopts = -n auto --dist=loadscope
77

src/superannotate/lib/app/interface/cli_interface.py

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def version():
2929

3030
@staticmethod
3131
def init(
32-
token: str,
33-
logging_level: str = "INFO",
34-
logging_path: str = constances.LOG_FILE_LOCATION,
32+
token: str,
33+
logging_level: str = "INFO",
34+
logging_path: str = constances.LOG_FILE_LOCATION,
3535
):
3636
"""
3737
To initialize CLI (and SDK) with team token
@@ -53,7 +53,7 @@ def init(
5353
if Path(constances.CONFIG_INI_FILE_LOCATION).exists():
5454
operation = "updated"
5555
if not input(
56-
f"File {constances.CONFIG_INI_FILE_LOCATION} exists. Do you want to overwrite? [y/n] : "
56+
f"File {constances.CONFIG_INI_FILE_LOCATION} exists. Do you want to overwrite? [y/n] : "
5757
).lower() in ("y", "yes"):
5858
return
5959
else:
@@ -84,14 +84,14 @@ def create_folder(self, project: str, name: str):
8484
sys.exit(0)
8585

8686
def upload_images(
87-
self,
88-
project: str,
89-
folder: str,
90-
extensions: str = constances.DEFAULT_IMAGE_EXTENSIONS,
91-
set_annotation_status: str = constances.AnnotationStatus.NOT_STARTED.name,
92-
exclude_file_patterns=constances.DEFAULT_FILE_EXCLUDE_PATTERNS,
93-
recursive_subfolders=False,
94-
image_quality_in_editor=None,
87+
self,
88+
project: str,
89+
folder: str,
90+
extensions: str = constances.DEFAULT_IMAGE_EXTENSIONS,
91+
set_annotation_status: str = constances.AnnotationStatus.NOT_STARTED.name,
92+
exclude_file_patterns=constances.DEFAULT_FILE_EXCLUDE_PATTERNS,
93+
recursive_subfolders=False,
94+
image_quality_in_editor=None,
9595
):
9696
"""
9797
To upload images from folder to project use:
@@ -115,12 +115,12 @@ def upload_images(
115115
sys.exit(0)
116116

117117
def export_project(
118-
self,
119-
project,
120-
folder,
121-
include_fuse=False,
122-
disable_extract_zip_contents=False,
123-
annotation_statuses=None,
118+
self,
119+
project,
120+
folder,
121+
include_fuse=False,
122+
disable_extract_zip_contents=False,
123+
annotation_statuses=None,
124124
):
125125
project_name, folder_name = split_project_path(project)
126126
folders = None
@@ -146,7 +146,7 @@ def export_project(
146146
sys.exit(0)
147147

148148
def upload_annotations(
149-
self, project, folder, dataset_name=None, task=None, format=None
149+
self, project, folder, dataset_name=None, task=None, format=None
150150
):
151151
"""
152152
To upload annotations from folder to project use
@@ -196,10 +196,10 @@ def _upload_annotations(self, project, folder, format, dataset_name, task):
196196
sys.exit(0)
197197

198198
def attach_image_urls(
199-
self,
200-
project: str,
201-
attachments: str,
202-
annotation_status: Optional[Any] = "NotStarted",
199+
self,
200+
project: str,
201+
attachments: str,
202+
annotation_status: Optional[Any] = "NotStarted",
203203
):
204204
"""
205205
To attach image URLs to project use:
@@ -213,10 +213,10 @@ def attach_image_urls(
213213
sys.exit(0)
214214

215215
def attach_video_urls(
216-
self,
217-
project: str,
218-
attachments: str,
219-
annotation_status: Optional[Any] = "NotStarted",
216+
self,
217+
project: str,
218+
attachments: str,
219+
annotation_status: Optional[Any] = "NotStarted",
220220
):
221221
SAClient().attach_items(
222222
project=project,
@@ -227,7 +227,7 @@ def attach_video_urls(
227227

228228
@staticmethod
229229
def attach_document_urls(
230-
project: str, attachments: str, annotation_status: Optional[Any] = "NotStarted"
230+
project: str, attachments: str, annotation_status: Optional[Any] = "NotStarted"
231231
):
232232
SAClient().attach_items(
233233
project=project,
@@ -237,15 +237,15 @@ def attach_document_urls(
237237
sys.exit(0)
238238

239239
def upload_videos(
240-
self,
241-
project,
242-
folder,
243-
target_fps=None,
244-
recursive=False,
245-
extensions=constances.DEFAULT_VIDEO_EXTENSIONS,
246-
set_annotation_status=constances.AnnotationStatus.NOT_STARTED.name,
247-
start_time=0.0,
248-
end_time=None,
240+
self,
241+
project,
242+
folder,
243+
target_fps=None,
244+
recursive=False,
245+
extensions=constances.DEFAULT_VIDEO_EXTENSIONS,
246+
set_annotation_status=constances.AnnotationStatus.NOT_STARTED.name,
247+
start_time=0.0,
248+
end_time=None,
249249
):
250250
"""
251251
To upload videos from folder to project use

0 commit comments

Comments
 (0)