Skip to content

Commit 7578e50

Browse files
committed
Add ignore for PY-R1000
1 parent de6403c commit 7578e50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

isort/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ def _file_output_stream_context(filename: Union[str, Path], source_file: File) -
362362
shutil.copymode(filename, tmp_file)
363363
yield output_stream
364364

365-
365+
# Ignore DeepSource cyclomatic complexity check for this function. It is one the main entrypoints
366+
# so sort of expected to be complex.
367+
# skipcq: PY-R1000
366368
def sort_file(
367369
filename: Union[str, Path],
368370
extension: Optional[str] = None,

0 commit comments

Comments
 (0)