File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,9 @@ section of the command line docs.
237
237
238
238
[tool.mypy]
239
239
exclude = [
240
- "^file1\\.py$", # TOML's double-quoted strings require escaping backslashes
241
- '^file2\.py$', # but TOML's single-quoted strings do not
240
+ "^one\.py$", # TOML's double-quoted strings require escaping backslashes
241
+ 'two\.pyi$', # but TOML's single-quoted strings do not
242
+ '^three\.',
242
243
]
243
244
244
245
A single, multi-line string:
@@ -247,9 +248,10 @@ section of the command line docs.
247
248
248
249
[tool.mypy]
249
250
exclude = '''(?x)(
250
- ^file1\.py$
251
- |^file2\.py$,
252
- )'''
251
+ ^one\.py$ # files named "one.py"
252
+ | two\.pyi$ # or files ending with "two.pyi"
253
+ | ^three\. # or files starting with "three."
254
+ )''' # TOML's single-quoted strings do not require escaping backslashes
253
255
254
256
See :ref: `using-a-pyproject-toml `.
255
257
You can’t perform that action at this time.
0 commit comments