Skip to content

Commit

Permalink
pyproject.toml: properly configure coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Nov 16, 2023
1 parent 0f17804 commit d5d4bb5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,27 @@ extend-exclude = '''(

[tool.coverage.run]
branch = false
omit = ["**/*_pb2.py*","**/*_pb2_grpc.py*"]
source = ["otaclient.app", "otaclient.ota_proxy"]

[tool.coverage.report]
omit = ["**/*_pb2.py*","**/*_pb2_grpc.py*"]
exclude_also = [
"def __repr__",
"if cfg.DEBUG_MODE",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
skip_empty = true

[tool.pyright]
exclude = ["**/__pycache__"]
ignore = ["**/*_pb2.py*","**/*_pb2_grpc.py*"]
pythonVersion = "3.8"

[tool.pytest.ini_options]
addopts = "--cov=otaclient.app --cov=otaclient.ota_proxy"
asyncio_mode = "auto"
log_auto_indent = true
log_format = "%(asctime)s %(levelname)s %(filename)s %(funcName)s,%(lineno)d %(message)s"
Expand Down

0 comments on commit d5d4bb5

Please sign in to comment.