From ac378d9241cde1f08804432fcd85dffff6965434 Mon Sep 17 00:00:00 2001 From: ArtemIsmagilov <118372045+ArtemIsmagilov@users.noreply.github.com> Date: Sat, 3 Aug 2024 16:24:07 +0400 Subject: [PATCH 1/2] Remove unused dep pytest-cov. --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 68de6c4b..f01fbe49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,6 @@ dynamic = ["version"] [project.optional-dependencies] test = [ "pytest", - "pytest-coverage", "coverage", "sphinx", "backports.zoneinfo;python_version<'3.9'", From e9c2afc21e801c6d7f31df9d454501f891105eee Mon Sep 17 00:00:00 2001 From: ArtemIsmagilov <118372045+ArtemIsmagilov@users.noreply.github.com> Date: Sat, 3 Aug 2024 16:36:47 +0400 Subject: [PATCH 2/2] use base coverage command --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index cd571b6b..a3f3dd72 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = py37,py38,py39,py310,py311,py312,docs,style [testenv] deps = --editable .[test] -commands = pytest {posargs:--cov} +commands = coverage run -m pytest [testenv:docs] deps = sphinx