Skip to content

Commit 3cc3bf6

Browse files
committed
Change semantics of yapf_exclude.
1 parent ea3055a commit 3cc3bf6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

repo_helper/configuration/other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ class additional_ignore(ConfigVar): # noqa
5858

5959
class yapf_exclude(ConfigVar): # noqa
6060
"""
61-
A list of additional files or directories to exclude from ``yapf`` autoformatting.
61+
A list of regular expressions to use to exclude files and directories from ``yapf-isort``.
6262
6363
Example:
6464
6565
.. code-block:: yaml
6666
6767
yapf_exclude:
68-
- "**/templates/"
68+
- ".*/templates/.*"
6969
"""
7070

7171
dtype = List[str]

repo_helper/repo_helper_schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330
"items": {
331331
"type": "string"
332332
},
333-
"description": "A list of additional files or directories to exclude from ``yapf`` autoformatting."
333+
"description": "A list of regular expressions to use to exclude files and directories from ``yapf-isort``."
334334
},
335335
"tests_dir": {
336336
"type": "string",

0 commit comments

Comments
 (0)