Skip to content

Commit b4c42e8

Browse files
committed
CM-41217 Fix format
1 parent 0f9ad88 commit b4c42e8

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

cycode/cli/commands/scan/repository/repository_command.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ def repository_command(context: click.Context, path: str, branch: str) -> None:
4949
progress_bar.update(ScanProgressBarSection.PREPARE_LOCAL_FILES)
5050

5151
file_path = file.path if monitor else get_path_by_os(os.path.join(path, file.path))
52-
documents_to_scan.append(Document(file_path,
53-
file.data_stream.read().decode('UTF-8', errors='replace'),
54-
absolute_path= get_path_by_os(os.path.join(path, file.path))))
52+
documents_to_scan.append(
53+
Document(
54+
file_path,
55+
file.data_stream.read().decode('UTF-8', errors='replace'),
56+
absolute_path=get_path_by_os(os.path.join(path, file.path)),
57+
)
58+
)
5559

5660
documents_to_scan = exclude_irrelevant_documents_to_scan(scan_type, documents_to_scan)
5761

cycode/cli/models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77

88
class Document:
99
def __init__(
10-
self, path: str, content: str, is_git_diff_format: bool = False, unique_id: Optional[str] = None, absolute_path: Optional[str] = None
10+
self,
11+
path: str,
12+
content: str,
13+
is_git_diff_format: bool = False,
14+
unique_id: Optional[str] = None,
15+
absolute_path: Optional[str] = None,
1116
) -> None:
1217
self.path = path
1318
self.content = content

0 commit comments

Comments
 (0)