Skip to content

Commit

Permalink
Merge pull request #17 from akaihola/no-isort-check
Browse files Browse the repository at this point in the history
Remove `isort.check_code()` call
  • Loading branch information
Mystic-Mirage authored Jul 6, 2020
2 parents 7b1862e + fa20c0b commit 893f9dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/darker/import_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def apply_isort(content: str) -> str:
isort.check_code(code=content)
isort_config_kwargs = dict(
multi_line_output=3,
include_trailing_comma=True,
Expand Down
17 changes: 2 additions & 15 deletions src/darker/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,7 @@ def test_format_edited_parts_empty():
'isort, black_args, print_diff, expect_stdout, expect_a_py',
[
(False, {}, True, A_PY_DIFF_BLACK, A_PY),
(
True,
{},
False,
['ERROR: Imports are incorrectly sorted and/or formatted.', ''],
A_PY_BLACK_ISORT,
),
(True, {}, False, [''], A_PY_BLACK_ISORT,),
(
False,
{'skip_string_normalization': True},
Expand All @@ -121,14 +115,7 @@ def test_format_edited_parts_empty():
A_PY,
),
(False, {}, False, [''], A_PY_BLACK),
(
True,
{},
True,
['ERROR: Imports are incorrectly sorted and/or formatted.']
+ A_PY_DIFF_BLACK_ISORT,
A_PY,
),
(True, {}, True, A_PY_DIFF_BLACK_ISORT, A_PY,),
],
)
def test_format_edited_parts(
Expand Down

0 comments on commit 893f9dc

Please sign in to comment.