forked from py-cov-action/python-coverage-comment-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (52 loc) · 1.62 KB
/
pyproject.toml
File metadata and controls
65 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tool.black]
target-version = ["py310"]
[tool.poetry]
name = "coverage-comment"
version = "0.0.0"
description = "Publish diff coverage report as PR comment, and create a coverage badge to display on the readme, for Python projects."
authors = ["Joachim Jablon <ewjoachim@gmail.com>"]
license = "MIT License"
packages = [{ include = "coverage_comment" }]
include = ["coverage_comment/default.md.j2"]
[tool.poetry.scripts]
coverage_comment = 'coverage_comment.main:main'
[tool.poetry.dependencies]
python = "^3.11"
coverage = { version = "*", extras = ["toml"] }
diff-cover = "*"
httpx = { version = "*", extras = ["http2"] }
Jinja2 = "*"
[tool.poetry.group.dev.dependencies]
black = "*"
flake8 = "*"
isort = "*"
mypy = "*"
pytest = "*"
pytest-cov = "^4.0.0"
pytest-mock = "*"
tenacity = "^8.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = """
--cov-report term-missing --cov-branch --cov-report html --cov-report term
--cov=coverage_comment -vv --strict-markers -rfE
--ignore=tests/end_to_end/repo
"""
testpaths = ["tests/unit", "tests/integration", "tests/end_to_end"]
filterwarnings = ["error"]
markers = [
"repo_suffix: Allows to use an additional suffix for the e2e test repo.",
"code_path: Allows to place the code in a subdirectory for the e2e test repo.",
"subproject_id: Allows to use a different subproject id for the e2e test repo.",
]
[tool.coverage.run]
relative_files = true
[tool.coverage.report]
exclude_also = ["\\.\\.\\."]
[tool.mypy]
no_implicit_optional = true
[tool.isort]
profile = "black"
skip = [".venv", ".tox"]