]> 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 CI (#1078)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 20 Oct 2019 15:35:57 +0000 (08:35 -0700)
committerGitHub <noreply@github.com>
Sun, 20 Oct 2019 15:35:57 +0000 (08:35 -0700)
black.py
tests/data/comments2.py

index d1e87a9fa987e658d2e544f99a0d4b23f7050615..3842be9641e3045ed9f236df7e4f97ee42290e52 100644 (file)
--- a/black.py
+++ b/black.py
@@ -2777,9 +2777,7 @@ def is_type_comment(leaf: Leaf, suffix: str = "") -> bool:
     Only returns true for type comments for now."""
     t = leaf.type
     v = leaf.value
-    return t in {token.COMMENT, STANDALONE_COMMENT} and v.startswith(
-        "# type:" + suffix
-    )
+    return t in {token.COMMENT, STANDALONE_COMMENT} and v.startswith("# type:" + suffix)
 
 
 def normalize_prefix(leaf: Leaf, *, inside_brackets: bool) -> None:
index 489661e01446ff5dec0bd709fd92936f67e304f9..f4a30b8afac2720766e72abd50fc88f8cb324906 100644 (file)
@@ -310,7 +310,7 @@ short
     )
 
 
-CONFIG_FILES = [CONFIG_FILE] + SHARED_CONFIG_FILES + USER_CONFIG_FILES  # type: Final
+CONFIG_FILES = [CONFIG_FILE,] + SHARED_CONFIG_FILES + USER_CONFIG_FILES  # type: Final
 
 #######################
 ### SECTION COMMENT ###