We use pytest-cov, as it enables running coverage with pytest in a
single command.
We exclude 'if TYPE_CHECKING:' and ellipsis lines from report.
/psycopg_binary/
.vscode
.venv
+.coverage
+htmlcov
"pproxy ~= 2.7.8",
"pytest ~= 6.2.5",
"pytest-asyncio ~= 0.16.0",
+ "pytest-cov ~= 3.0.0",
"pytest-randomly ~= 3.10.1",
"tenacity ~= 8.0.1",
],
# log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(name)s:%(filename)s:%(lineno)d %(message)s"
# log_level = "DEBUG"
+[tool.coverage.run]
+source = [
+ "psycopg/psycopg",
+ "psycopg_pool/psycopg_pool",
+]
+[tool.coverage.report]
+exclude_lines = [
+ "if TYPE_CHECKING:",
+ '\.\.\.$',
+]
[tool.mypy]
files = [