summaryrefslogtreecommitdiff
path: root/doc/excluding.rst
diff options
context:
space:
mode:
authorAlpha Chen <alpha@kejadlen.dev>2023-02-15 21:15:17 -0800
committerNed Batchelder <ned@nedbatchelder.com>2023-02-22 17:02:19 -0500
commit2a0e7bc17f932e33ef9c437760ae2f9f60b46390 (patch)
tree1e7c2c09c05179c7378343dc2da221001229ba20 /doc/excluding.rst
parent51f395dc29811cd7ab465c527a5a06514b0090b8 (diff)
downloadpython-coveragepy-git-2a0e7bc17f932e33ef9c437760ae2f9f60b46390.tar.gz
feat: add extend_exclude option
Diffstat (limited to 'doc/excluding.rst')
-rw-r--r--doc/excluding.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/excluding.rst b/doc/excluding.rst
index 315d4e29..4651e6bb 100644
--- a/doc/excluding.rst
+++ b/doc/excluding.rst
@@ -101,7 +101,9 @@ For example, here's a list of exclusions I've used::
Note that when using the ``exclude_lines`` option in a configuration file, you
are taking control of the entire list of regexes, so you need to re-specify the
-default "pragma: no cover" match if you still want it to apply.
+default "pragma: no cover" match if you still want it to apply. The
+``exclude_also`` option can be used instead to preserve the default
+exclusions while adding new ones.
The regexes only have to match part of a line. Be careful not to over-match. A
value of ``...`` will match any line with more than three characters in it.