Skip to content

Commit 468d670

Browse files
alexchen-sysstaticdev
authored andcommitted
style: keep DeepSource skipcq on complex _with_from_imports
Signed-off-by: Alex Chen <l46983284@gmail.com>
1 parent c6a1a7b commit 468d670

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

isort/output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ def _build_import_group(
281281
return group_output
282282

283283

284-
# Ignore DeepSource cyclomatic complexity check for this function. It was
285-
# already complex when this check was enabled.
286-
# skipcq: PY-R1000
287284
def _inject_from_body_comments(
288285
import_statement: str,
289286
body_comments: list[str],
@@ -318,6 +315,9 @@ def _inject_from_body_comments(
318315
return line_separator.join([import_statement, *comment_lines])
319316

320317

318+
# Ignore DeepSource cyclomatic complexity check for this function. It was
319+
# already complex when this check was enabled.
320+
# skipcq: PY-R1000
321321
def _with_from_imports(
322322
parsed: parse.ParsedContent,
323323
config: Config,

0 commit comments

Comments
 (0)