@@ -7,19 +7,17 @@ version = "0.0.0"
77description = " Publish diff coverage report as PR comment, and create a coverage badge to display on the readme, for Python projects."
88authors = [" Joachim Jablon <ewjoachim@gmail.com>" ]
99license = " MIT License"
10- packages = [
11- { include = " coverage_comment" },
12- ]
10+ packages = [{ include = " coverage_comment" }]
1311include = [" coverage_comment/default.md.j2" ]
1412
1513[tool .poetry .scripts ]
1614coverage_comment = ' coverage_comment.main:main'
1715
1816[tool .poetry .dependencies ]
1917python = " ^3.11"
20- coverage = {version = " *" , extras = [" toml" ]}
18+ coverage = { version = " *" , extras = [" toml" ] }
2119diff-cover = " *"
22- httpx = {version = " *" , extras = [" http2" ]}
20+ httpx = { version = " *" , extras = [" http2" ] }
2321Jinja2 = " *"
2422
2523[tool .poetry .group .dev .dependencies ]
@@ -36,3 +34,32 @@ tenacity = "^8.1.0"
3634[build-system ]
3735requires = [" poetry-core>=1.0.0" ]
3836build-backend = " poetry.core.masonry.api"
37+
38+
39+ [tool .pytest .ini_options ]
40+ addopts = """
41+ --cov-report term-missing --cov-branch --cov-report html --cov-report term
42+ --cov=coverage_comment -vv --strict-markers -rfE
43+ --ignore=tests/end_to_end/repo
44+ """
45+ testpaths = [" tests/unit" , " tests/integration" , " tests/end_to_end" ]
46+
47+ filterwarnings = [" error" ]
48+ markers = [
49+ " repo_suffix: Allows to use an additional suffix for the e2e test repo." ,
50+ " code_path: Allows to place the code in a subdirectory for the e2e test repo." ,
51+ " subproject_id: Allows to use a different subproject id for the e2e test repo." ,
52+ ]
53+
54+ [tool .coverage .run ]
55+ relative_files = true
56+
57+ [tool .coverage .report ]
58+ exclude_also = [" \\ .\\ .\\ ." ]
59+
60+ [tool .mypy ]
61+ no_implicit_optional = true
62+
63+ [tool .isort ]
64+ profile = " black"
65+ skip = [" .venv" , " .tox" ]
0 commit comments