Skip to content

Commit 4bf86d8

Browse files
committed
refactor: remove unnecessary pytest option for coverage
https://pytest-cov.readthedocs.io/en/latest/xdist.html
1 parent bb9da70 commit 4bf86d8

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

changelog.d/+c8476ef1.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove unnecessary pytest option for coverage (see <https://pytest-cov.readthedocs.io/en/latest/xdist.html>).

template/{% if tasks == 'nox' %}noxfile.py{% endif %}.jinja

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def tests(session: nox.Session) -> None:
7373
"--junit-xml",
7474
junit_xml_path,
7575
"--cov",
76-
"--cov-config",
77-
"pyproject.toml",
7876
"--cov-context",
7977
"test",
8078
"--cov-report",
@@ -87,7 +85,6 @@ def tests(session: nox.Session) -> None:
8785
),
8886
env={
8987
"COVERAGE_FILE": os.getenv("COVERAGE_FILE") or str(tmp_dir / ".coverage"),
90-
"COVERAGE_PROCESS_START": "pyproject.toml",
9188
},
9289
)
9390

template/{% if tasks == 'tox' %}tox.toml{% endif %}.jinja

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pass_env = [
4343
]
4444
set_env = [
4545
{ COVERAGE_FILE = { replace = "env", name = "COVERAGE_FILE", default = "{env_tmp_dir}{/}.coverage" } },
46-
{ COVERAGE_PROCESS_START = "{tox_root}/pyproject.toml" },
4746
]
4847
dependency_groups = [ "tests" ]
4948
commands = [
@@ -57,8 +56,6 @@ commands = [
5756
"--junit-xml",
5857
"{work_dir}{/}junit-{env_name}.xml",
5958
"--cov",
60-
"--cov-config",
61-
"{tox_root}{/}pyproject.toml",
6259
"--cov-context",
6360
"test",
6461
"--cov-report",

0 commit comments

Comments
 (0)