From 96cd5821983533ffcaf2bfb729a9966015aca54e Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Fri, 19 Jul 2024 12:03:19 -0400 Subject: [PATCH] improve coverage config --- pyproject.toml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a985026..5dc7698 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,9 +7,9 @@ name = "conda-pypi" description = "Better PyPI interoperability for the conda ecosystem." readme = "README.md" authors = [ - {name = "Jaime Rodríguez-Guerra", email = "jrodriguez@quansight.com"} + { name = "Jaime Rodríguez-Guerra", email = "jrodriguez@quansight.com" }, ] -license = {file = "LICENSE"} +license = { file = "LICENSE" } classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3", @@ -19,7 +19,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy" + "Programming Language :: Python :: Implementation :: PyPy", ] requires-python = ">=3.8" dependencies = [ @@ -29,9 +29,7 @@ dependencies = [ "importlib_resources; python_version < '3.9'", "packaging", ] -dynamic = [ - "version" -] +dynamic = ["version"] [project.urls] homepage = "https://github.com/jaimergp/conda-pypi" @@ -112,3 +110,10 @@ version-file = "conda_pypi/_version.py" [tool.ruff] line-length = 99 + +[tool.coverage.report] +exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"] + +[tool.coverage.run] +source = ["conda_pypi/", "tests/"] +omit = ["conda_pypi/__init__.py"]