Skip to content

Commit 5337115

Browse files
akxhugovk
andauthored
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 0817f5d commit 5337115

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,23 +206,20 @@ testpaths = [
206206
]
207207

208208
[tool.coverage]
209+
run.core = "sysmon" # default for 3.14+, available for 3.12+
210+
run.disable_warnings = [ "no-sysmon" ] # 3.11 and earlier
209211
run.omit = [
210212
"checks/*.py",
211213
"Tests/benchmarks.py",
212214
"Tests/createfontdatachunk.py",
213215
]
214216
report.exclude_also = [
215217
"@abc.abstractmethod",
216-
"^\\s*\\.\\.\\.(\\s*#.*)?$",
217218
# Empty bodies in protocols or abstract methods
218219
"^\\s*def [a-zA-Z0-9_]+\\(.*\\)(\\s*->.*)?:\\s*\\.\\.\\.(\\s*#.*)?$",
219220
# Don't complain about compatibility code for missing optional dependencies
220221
"except ImportError",
221222
"if __name__ == .__main__.:",
222-
# Don't complain if non-runnable code isn't run
223-
"if 0:",
224223
# Don't complain about debug code
225224
"if DEBUG:",
226-
# Don't complain about code that generally isn't run
227-
"if TYPE_CHECKING:",
228225
]

0 commit comments

Comments
 (0)