]> 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:

Add W503 to default flake8 ignore list (#894)
authorAdam Johnson <me@adamj.eu>
Sun, 16 Jun 2019 15:39:03 +0000 (16:39 +0100)
committerJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 16 Jun 2019 15:39:03 +0000 (08:39 -0700)
W503 and W504 are mutually exclusive, to do with splitting binary operators across lines. Black reformats code according to W504, putting the operator on the start of the newline, therefore W503 needs to be ignored in the suggested Flake8 config to use with Black.

README.md

index d30fe699653ee61b809cbc3e5c04993a167c3be3..986efb68b7aad5cf323848e4b573ea3821da21a7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -293,7 +293,7 @@ you are probably already using.  You'd do it like this:
 max-line-length = 80
 ...
 select = C,E,F,W,B,B950
-ignore = E501
+ignore = E501,W503
 ```
 
 You'll find *Black*'s own .flake8 config file is configured like this.