From 1deab94ea00109c887a455993bb0746e004a1fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Fri, 25 Apr 2025 21:16:57 +0200 Subject: [PATCH] chore: exclude test, provider, and template directories from coverage (#2028) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # What does this PR do? Introduce a `.coveragerc` file to omit: - test files (*/tests/*) - provider code (*/llama_stack/providers/*) - template files (*/llama_stack/templates/*) - virtual environment (.venv/*) This ensures coverage reports focus on core application logic (API and CLI). Note: I'm opening this for discussing as well - we might decide to ignore more and or re-add some directories! Signed-off-by: Sébastien Han --- .coveragerc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..e16c2e461 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,6 @@ +[run] +omit = + */tests/* + */llama_stack/providers/* + */llama_stack/templates/* + .venv/*