diff --git a/isort/api.py b/isort/api.py index 3d636c3e..ef8fca70 100644 --- a/isort/api.py +++ b/isort/api.py @@ -362,7 +362,9 @@ def _file_output_stream_context(filename: Union[str, Path], source_file: File) - shutil.copymode(filename, tmp_file) yield output_stream - +# Ignore DeepSource cyclomatic complexity check for this function. It is one the main entrypoints +# so sort of expected to be complex. +# skipcq: PY-R1000 def sort_file( filename: Union[str, Path], extension: Optional[str] = None,