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

show how to exclude individual files in the exclude example (#663)
authorNathan Goldbaum <ngoldbau@illinois.edu>
Tue, 5 Feb 2019 18:50:59 +0000 (12:50 -0600)
committerJelle Zijlstra <jelle.zijlstra@gmail.com>
Tue, 5 Feb 2019 18:50:59 +0000 (10:50 -0800)
* show how to exclude individual files in the exclude example

* include comments in the regex

README.md

index c548ce483c276d1ab56424c516414705d5d2d875..9fe9203e8ab31942458015a125bd5b2ffe5c8a18 100644 (file)
--- a/README.md
+++ b/README.md
@@ -572,24 +572,24 @@ line-length = 88
 py36 = true
 include = '\.pyi?$'
 exclude = '''
 py36 = true
 include = '\.pyi?$'
 exclude = '''
-/(
-    \.eggs
-  | \.git
-  | \.hg
-  | \.mypy_cache
-  | \.tox
-  | \.venv
-  | _build
-  | buck-out
-  | build
-  | dist
-
-  # The following are specific to Black, you probably don't want those.
-  | blib2to3
-  | tests/data
-)/
+
+(
+  /(
+      \.eggs         # exclude a few common directories in the
+    | \.git          # root of the project
+    | \.hg
+    | \.mypy_cache
+    | \.tox
+    | \.venv
+    | _build
+    | buck-out
+    | build
+    | dist
+  )/
+  | foo.py           # also separately exclude a file named foo.py in
+                     # the root of the project
+)
 '''
 '''
-```
 
 </details>
 
 
 </details>