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

This commit is contained in:
jack1142 2021-06-09 16:01:07 +02:00 committed by GitHub
parent 00e7e12a3a
commit 229498e531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[flake8] [flake8]
extend-ignore = E203, E266, E501 ignore = E203, E266, E501, W503
# line length is intentionally set to 80 here because black uses Bugbear # 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 # See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
max-line-length = 80 max-line-length = 80

View File

@ -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 a_lines, b_lines, fromfile=a_name, tofile=b_name, n=5
): ):
# Work around https://bugs.python.org/issue2142 # 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": if line[-1] == "\n":
diff_lines.append(line) diff_lines.append(line)
else: else: