diff --git a/isort/profiles.py b/isort/profiles.py index 2863ea8b..a949d520 100644 --- a/isort/profiles.py +++ b/isort/profiles.py @@ -69,7 +69,7 @@ "multi_line_output": 3, "include_trailing_comma": True, "use_parentheses": True, - "line_length": 79, + "line_length": 80, } appnexus = { **black, diff --git a/tests/unit/profiles/test_wemake.py b/tests/unit/profiles/test_wemake.py index bcfcf038..a2caa57a 100644 --- a/tests/unit/profiles/test_wemake.py +++ b/tests/unit/profiles/test_wemake.py @@ -89,10 +89,22 @@ class _ClassVisitor(ast.NodeVisitor): ... def test_wemake_snippet_four(): - """80 line length should be fixed""" + """80 line length should not 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 +""", + ) + + +def test_wemake_snippet_five(): + """81 line length should be fixed""" + wemake_isort_test( + """ +from typing import Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union1 """, """ from typing import ( @@ -102,7 +114,7 @@ def test_wemake_snippet_four(): Sequence, Tuple, TypeVar, - Union, + Union1, ) """, )