Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .coveragerc

This file was deleted.

22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,25 @@ addopts = [ "-ra", "--color=auto" ]
testpaths = [
"Tests",
]

[tool.coverage]
Comment thread
akx marked this conversation as resolved.
run.omit = [
"checks/*.py",
"Tests/benchmarks.py",
"Tests/createfontdatachunk.py",
]
report.exclude_also = [
"@abc.abstractmethod",
"^\\s*\\.\\.\\.(\\s*#.*)?$",
Comment thread
akx marked this conversation as resolved.
Outdated
# Empty bodies in protocols or abstract methods
"^\\s*def [a-zA-Z0-9_]+\\(.*\\)(\\s*->.*)?:\\s*\\.\\.\\.(\\s*#.*)?$",
# Don't complain about compatibility code for missing optional dependencies
"except ImportError",
"if __name__ == .__main__.:",
# Don't complain if non-runnable code isn't run
"if 0:",
# Don't complain about debug code
"if DEBUG:",
# Don't complain about code that generally isn't run
"if TYPE_CHECKING:",
Comment thread
akx marked this conversation as resolved.
Outdated
]
Loading