Unverified Commit 229498e5 authored by jack1142's avatar jack1142 Committed by GitHub
Browse files

Fix flake8 configuration by switching from extend-ignore to ignore (#2320)

parent 00e7e12a
Loading
Loading
Loading
Loading
+1 −1
Changes for .flake8: 1 added line, 1 removed line.
Original line number Diff line number Diff line
[flake8]
extend-ignore = E203, E266, E501
ignore = E203, E266, E501, W503
# line length is intentionally set to 80 here because black uses Bugbear
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
max-line-length = 80
+2 −1
Changes for src/black/output.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -45,7 +45,8 @@ def diff(a: str, b: str, a_name: str, b_name: str) -> str:
        a_lines, b_lines, fromfile=a_name, tofile=b_name, n=5
    ):
        # Work around https://bugs.python.org/issue2142
        # See https://www.gnu.org/software/diffutils/manual/html_node/Incomplete-Lines.html
        # See:
        # https://www.gnu.org/software/diffutils/manual/html_node/Incomplete-Lines.html
        if line[-1] == "\n":
            diff_lines.append(line)
        else: