Fix flake8 configuration by switching from extend-ignore to ignore (#2320)
This commit is contained in:
parent
00e7e12a3a
commit
229498e531
2
.flake8
2
.flake8
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user