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 @@ -384,7 +384,9 @@ Settings common to many kinds of reporting.
384
384
containing a match for one of these regexes is excluded from being reported as
385
385
missing. More details are in :ref: `excluding `. If you use this option, you
386
386
are replacing all the exclude regexes, so you'll need to also supply the
387
- "pragma: no cover" regex if you still want to use it.
387
+ "pragma: no cover" regex if you still want to use it. The
388
+ :ref: `config_report_exclude_also ` setting can be used to specify patterns
389
+ without overwriting the default set.
388
390
389
391
You can exclude lines introducing blocks, and the entire block is excluded. If
390
392
you exclude a ``def `` line or decorator line, the entire function is excluded.
@@ -400,10 +402,10 @@ you'll exclude any line with three or more of any character. If you write
400
402
[report] exclude_also
401
403
.....................
402
404
403
- (multi-string) A list of regular expressions. This setting is the same as
404
- :ref: `config_report_exclude_lines `: it adds patterns for lines to exclude from
405
- reporting. This setting will preserve the default exclude patterns instead of
406
- overwriting them.
405
+ (multi-string) A list of regular expressions. This setting is similar to
406
+ :ref: `config_report_exclude_lines `: it specifies patterns for lines to exclude
407
+ from reporting. The difference is this setting will preserve the default
408
+ exclude patterns instead of overwriting them.
407
409
408
410
.. versionadded :: 7.2.0
409
411
You can’t perform that action at this time.
0 commit comments