File tree Expand file tree Collapse file tree 3 files changed +40
-39
lines changed Expand file tree Collapse file tree 3 files changed +40
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -432,6 +432,45 @@ markers = [
432432 " keep_ci_var" ,
433433]
434434
435+ [tool .coverage .run ]
436+ include = [
437+ ' src/*' ,
438+ ' testing/*' ,
439+ ' */lib/python*/site-packages/_pytest/*' ,
440+ ' */lib/python*/site-packages/pytest.py' ,
441+ ' */pypy*/site-packages/_pytest/*' ,
442+ ' */pypy*/site-packages/pytest.py' ,
443+ ' *\Lib\site-packages\_pytest\*' ,
444+ ' *\Lib\site-packages\pytest.py' ,
445+ ]
446+ parallel = true
447+ branch = true
448+ patch = [ " subprocess" ]
449+
450+ [tool .coverage .paths ]
451+ source = [
452+ ' src/' ,
453+ ' */lib/python*/site-packages/' ,
454+ ' */pypy*/site-packages/' ,
455+ ' *\Lib\site-packages\' ,
456+ ]
457+
458+ [tool .coverage .report ]
459+ skip_covered = true
460+ show_missing = true
461+ exclude_lines = [
462+ ' \#\s*pragma: no cover' ,
463+ ' ^\s*raise NotImplementedError\b' ,
464+ ' ^\s*return NotImplemented\b' ,
465+ ' ^\s*assert False(,|$)' ,
466+ ' ^\s*case unreachable:' ,
467+ ' ^\s*assert_never\(' ,
468+ ' ^\s*if TYPE_CHECKING:' ,
469+ ' ^\s*@overload( |$)' ,
470+ ' ^\s*def .+: \.\.\.$' ,
471+ ' ^\s*@pytest\.mark\.xfail' ,
472+ ]
473+
435474[tool .towncrier ]
436475package = " pytest"
437476package_dir = " src"
Original file line number Diff line number Diff line change @@ -81,9 +81,6 @@ setenv =
8181 # Configuration to run with coverage similar to CI, e.g.
8282 # "tox -e py313-coverage".
8383 coverage: _PYTEST_TOX_COVERAGE_RUN =coverage run -m
84- coverage: _PYTEST_TOX_EXTRA_DEP =coverage-enable-subprocess
85- coverage: COVERAGE_FILE ={toxinidir}/.coverage
86- coverage: COVERAGE_PROCESS_START ={toxinidir}/.coveragerc
8784
8885 doctesting: _PYTEST_TOX_POSARGS_DOCTESTING =doc/en
8986
@@ -100,6 +97,7 @@ setenv =
10097 xdist: _PYTEST_TOX_POSARGS_XDIST =-n auto
10198extras = dev
10299deps =
100+ coverage: coverage>=7.10
103101 doctesting: PyYAML
104102 exceptiongroup: exceptiongroup>=1.0.0rc8
105103 numpy: numpy>=1.19.4
@@ -111,7 +109,6 @@ deps =
111109 asynctest: asynctest
112110 xdist: pytest-xdist>=2.1.0
113111 xdist: -e .
114- {env:_PYTEST_TOX_EXTRA_DEP:}
115112# Can use the same wheel for all environments.
116113package = wheel
117114wheel_build_env = .pkg
You can’t perform that action at this time.
0 commit comments