From 077fb4fd99594d6792ebf3a9648785863898244d Mon Sep 17 00:00:00 2001 From: Raphael Cohen Date: Tue, 6 Jun 2023 17:13:03 +0200 Subject: [PATCH] feat: Specify coverage settings in cookie cutter conf --- .github/workflows/publish.yml | 2 +- .../template/{{cookiecutter.module_dir}}/pyproject.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cff76fe..37d731a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI +name: Publish Python 🐍 distributions 📦 to PyPI on: release: types: [published] diff --git a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/pyproject.toml b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/pyproject.toml index bcab1ee..bf66ff4 100644 --- a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/pyproject.toml +++ b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/pyproject.toml @@ -30,3 +30,9 @@ include = '\.pyi?$' [tool.isort] profile = "black" line_length = 119 + +[tool.coverage.run] +omit = [ + "tests/*", + "main.py", +] \ No newline at end of file