mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-09 23:12:02 +00:00
better coverage config
- exclude e.g. tests - include files not imported at all - exclude some common patterns (see https://coverage.readthedocs.io/en/7.4.1/excluding.html#excluding-source-files)
This commit is contained in:
parent
19bc081658
commit
1eb5c779de
|
@ -107,7 +107,15 @@ reportMissingTypeStubs = "warning"
|
|||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
source = ["src/refiners"]
|
||||
|
||||
# Also apply to HTML output, where appropriate
|
||||
[tool.coverage.report]
|
||||
ignore_errors = true # see `build-html-cov` for details
|
||||
exclude_also = [
|
||||
"def __repr__",
|
||||
"raise NotImplementedError",
|
||||
"if TYPE_CHECKING:",
|
||||
"class .*\\bProtocol\\):",
|
||||
"@(abc\\.)?abstractmethod",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue