Skip to content

Commit c6cd6d8

Browse files
committed
doc/excluding.rst: Use conventional TOML style
1 parent 32a1622 commit c6cd6d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/excluding.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ all of them by adding a regex to the exclusion list:
104104
[tool.coverage.report]
105105
exclude_also = [
106106
"def __repr__",
107-
]
107+
]
108108
""",
109109
)
110110
.. ]]]
@@ -124,7 +124,7 @@ all of them by adding a regex to the exclusion list:
124124
[tool.coverage.report]
125125
exclude_also = [
126126
"def __repr__",
127-
]
127+
]
128128

129129
.. code-tab:: ini
130130
:caption: setup.cfg or tox.ini
@@ -133,7 +133,7 @@ all of them by adding a regex to the exclusion list:
133133
exclude_also =
134134
def __repr__
135135

136-
.. [[[end]]] (checksum: e3194120285bcbac38a92b109edaa20c)
136+
.. [[[end]]] (checksum: f3e70ebf128fbef4087efe75dcfadcb8)
137137
138138
For example, here's a list of exclusions I've used:
139139

@@ -166,7 +166,7 @@ For example, here's a list of exclusions I've used:
166166
"if TYPE_CHECKING:",
167167
"class .*\\bProtocol\\):",
168168
"@(abc\\.)?abstractmethod",
169-
]
169+
]
170170
""",
171171
)
172172
.. ]]]
@@ -204,7 +204,7 @@ For example, here's a list of exclusions I've used:
204204
"if TYPE_CHECKING:",
205205
"class .*\\bProtocol\\):",
206206
"@(abc\\.)?abstractmethod",
207-
]
207+
]
208208

209209
.. code-tab:: ini
210210
:caption: setup.cfg or tox.ini
@@ -222,7 +222,7 @@ For example, here's a list of exclusions I've used:
222222
class .*\bProtocol\):
223223
@(abc\.)?abstractmethod
224224

225-
.. [[[end]]] (checksum: 91f09828a1e6d0e92543e14a8ea3ba39)
225+
.. [[[end]]] (checksum: 06c7f40b1001590369df604495524f48)
226226
227227
The :ref:`config_report_exclude_also` option adds regexes to the built-in
228228
default list so that you can add your own exclusions. The older
@@ -275,7 +275,7 @@ Here are some examples:
275275
"no cover: start(?s:.)*?no cover: stop",
276276
# 3. A pragma comment that excludes an entire file:
277277
"\\A(?s:.*# pragma: exclude file.*)\\Z",
278-
]
278+
]
279279
""",
280280
)
281281
.. ]]]
@@ -305,7 +305,7 @@ Here are some examples:
305305
"no cover: start(?s:.)*?no cover: stop",
306306
# 3. A pragma comment that excludes an entire file:
307307
"\\A(?s:.*# pragma: exclude file.*)\\Z",
308-
]
308+
]
309309

310310
.. code-tab:: ini
311311
:caption: setup.cfg or tox.ini
@@ -319,7 +319,7 @@ Here are some examples:
319319
; 3. A pragma comment that excludes an entire file:
320320
\A(?s:.*# pragma: exclude file.*)\Z
321321

322-
.. [[[end]]] (checksum: ee3ef14b5a5d73f987b924df623a4927)
322+
.. [[[end]]] (checksum: 261daf325d747cdf05310e75db827af6)
323323
324324
The first regex matches a specific except line followed by a specific function
325325
call. Both lines must be present for the exclusion to take effect. Note that

0 commit comments

Comments
 (0)