File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ jobs:
138138 - name : Generate coverage reports
139139 run : |
140140 uv run coverage combine
141- uv run coverage xml -o reports/coverage.xml -i
141+ uv run coverage xml -o reports/coverage.xml
142142
143143 - name : Coverage comment
144144 id : coverage
Original file line number Diff line number Diff line change @@ -254,20 +254,23 @@ data_file = "reports/.coverage"
254254
255255[tool .coverage .report ]
256256precision = 2
257- exclude_lines = [
258- " pragma: no cover" ,
257+ exclude_also = [
259258 " def __repr__" ,
260- " if .*debug:" ,
261259 " raise AssertionError" ,
262260 " raise NotImplementedError" ,
263- " if __name__ == .__main__.:" ,
264- " if TYPE_CHECKING:" ,
265- " if log.isEnabledFor(logging.DEBUG):" ,
266- " if sys.version_info" ,
261+ " class .*\b Protocol:" ,
267262 " @(abc\\ .)?abstractmethod" ,
268263 " \\ .\\ .\\ ." ,
269264 " def downgrade\\ (\\ )" ,
270265]
266+ partial_also = [
267+ " if .*TYPE_CHECKING:" ,
268+ " if .*isEnabledFor.*:" ,
269+ " if .*debug.*:" ,
270+ " if .*sys.version_info.*:" ,
271+ " if __name__ == .__main__.:" ,
272+ " except .*ImportError" ,
273+ ]
271274
272275[tool .towncrier ]
273276name = " Syncmaster"
You can’t perform that action at this time.
0 commit comments