From 5e98606500c1bd92c7e103ab775baf2644eb2dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Mon, 3 Jun 2024 22:58:02 +0100 Subject: [PATCH] pyproject: configure coverage.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- pyproject.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 85604b7..64f4960 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,3 +108,20 @@ extend-select = [ [tool.ruff.lint.isort] lines-after-imports = 2 lines-between-types = 1 + +[tool.coverage.run] +source = [ + 'pkgconf', + 'tests', +] +source_pkgs = [ + 'pkgconf', + 'tests', +] + +[tool.coverage.paths] +build = [ + 'src', + '*/site-packages', + '*\site-packages', +]