Skip to content

Commit b9331ab

Browse files
committed
Switch to pyproject.toml where applicable
1 parent eeebd22 commit b9331ab

File tree

2 files changed

+32
-38
lines changed

2 files changed

+32
-38
lines changed

pyproject.toml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@ version = "0.0.0"
77
description = "Publish diff coverage report as PR comment, and create a coverage badge to display on the readme, for Python projects."
88
authors = ["Joachim Jablon <ewjoachim@gmail.com>"]
99
license = "MIT License"
10-
packages = [
11-
{ include = "coverage_comment" },
12-
]
10+
packages = [{ include = "coverage_comment" }]
1311
include = ["coverage_comment/default.md.j2"]
1412

1513
[tool.poetry.scripts]
1614
coverage_comment = 'coverage_comment.main:main'
1715

1816
[tool.poetry.dependencies]
1917
python = "^3.11"
20-
coverage = {version = "*", extras = ["toml"]}
18+
coverage = { version = "*", extras = ["toml"] }
2119
diff-cover = "*"
22-
httpx = {version = "*", extras = ["http2"]}
20+
httpx = { version = "*", extras = ["http2"] }
2321
Jinja2 = "*"
2422

2523
[tool.poetry.group.dev.dependencies]
@@ -36,3 +34,32 @@ tenacity = "^8.1.0"
3634
[build-system]
3735
requires = ["poetry-core>=1.0.0"]
3836
build-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"]

setup.cfg

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
1-
[isort]
2-
profile = black
3-
skip = .venv,.tox
4-
51
[flake8]
62
# E203: whitespace before colon on list slice: mylist[1 : 2]
73
# E501: line too long (black knows better)
84
extend-ignore = E203,E501
95
extend-exclude = .venv
10-
11-
[mypy]
12-
no_implicit_optional = True
13-
14-
[mypy-xmltodict.*]
15-
ignore_missing_imports = True
16-
17-
[coverage:run]
18-
relative_files = true
19-
20-
[coverage:report]
21-
exclude_lines =
22-
\.\.\.
23-
24-
[tool:pytest]
25-
addopts =
26-
--cov-report term-missing --cov-branch --cov-report html --cov-report term
27-
--cov=coverage_comment -vv --strict-markers -rfE
28-
--ignore=tests/end_to_end/repo
29-
testpaths =
30-
tests/unit
31-
tests/integration
32-
tests/end_to_end
33-
34-
filterwarnings =
35-
error
36-
markers=
37-
repo_suffix: Allows to use an additional suffix for the e2e test repo.
38-
code_path: Allows to place the code in a subdirectory for the e2e test repo.

0 commit comments

Comments
 (0)