diff --git a/noxfile.py b/noxfile.py index b460f8a..2173332 100644 --- a/noxfile.py +++ b/noxfile.py @@ -12,8 +12,7 @@ def lint(session): @nox.session(python=["3.9", "3.10", "3.11", "3.12"]) def test(session): session.install("-e", ".[test]", silent=True) - args = session.posargs or ("--cov-report", "term", "--cov", "sphinx_autobuild") - session.run("pytest", *args) + session.run("pytest", *session.posargs) @nox.session(reuse_venv=True) diff --git a/pyproject.toml b/pyproject.toml index 569e4b9..68c2345 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,8 +54,7 @@ dynamic = ["version"] [project.optional-dependencies] docs = [] test = [ - "pytest>=6.0", - "pytest-cov", + "pytest>=6", ] [[project.authors]] @@ -77,20 +76,3 @@ include = [ "tests/", "noxfile.py", ] - -[tool.coverage.run] -branch = true -omit = [ - "*/conftest.py", - "docs/*", -] - -[tool.coverage.report] -exclude_lines = [ - "pragma: no cover", - "NOCOV", - "if __name__ == .__main__.:" -] - -[tool.coverage.html] -directory = ".htmlcov"