diff --git a/isort/profiles.py b/isort/profiles.py index cf43ac0f..fe2aac49 100644 --- a/isort/profiles.py +++ b/isort/profiles.py @@ -61,7 +61,7 @@ "multi_line_output": 3, "include_trailing_comma": True, "use_parentheses": True, - "line_length": 80, + "line_length": 79, } appnexus = { **black, diff --git a/tests/unit/profiles/test_wemake.py b/tests/unit/profiles/test_wemake.py index 2d1fb22d..123eef05 100644 --- a/tests/unit/profiles/test_wemake.py +++ b/tests/unit/profiles/test_wemake.py @@ -85,3 +85,23 @@ def test_wemake_snippet_three(): class _ClassVisitor(ast.NodeVisitor): ... """ ) + + +def test_wemake_snippet_four(): + """80 line length should be fixed""" + wemake_isort_test( + """ +from typing import Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union +""", + """ +from typing import ( + Iterable, + Iterator, + Optional, + Sequence, + Tuple, + TypeVar, + Union, +) +""", + )