]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix flake8 configuration by switching from extend-ignore to ignore (#2320)
authorjack1142 <6032823+jack1142@users.noreply.github.com>
Wed, 9 Jun 2021 14:01:07 +0000 (16:01 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Jun 2021 14:01:07 +0000 (07:01 -0700)
.flake8
src/black/output.py

diff --git a/.flake8 b/.flake8
index 4866133a6a872c6901a6a06fffe4f76a5cba270a..ae11a13347c999a4b1f34f1d77f95f157172de9c 100644 (file)
--- a/.flake8
+++ b/.flake8
@@ -1,5 +1,5 @@
 [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
index 6831524090d9a82107146bf8a89ee815fa58d1c9..c253c85e90e87353b75d47afc35b015395792dea 100644 (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
     ):
         # 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: