From ca0103d78f0a1d4cbda2754ab920c5fafc11acc6 Mon Sep 17 00:00:00 2001 From: Ishankoradia Date: Mon, 30 Sep 2024 15:16:56 +0530 Subject: [PATCH 1/2] minor changes --- .github/workflows/python-app.yml | 2 +- pyproject.toml | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 44b1b848..c7509ad6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -92,8 +92,8 @@ jobs: CLIENTDBT_ROOT: /tmp run: | coverage run -m pytest --durations=20 - coverage report --fail-under=70 coverage xml + coverage report --fail-under=70 - name: Check coverage percentage run: | diff --git a/pyproject.toml b/pyproject.toml index f38d5a27..b2eebb8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,9 @@ include = 'ddpui\/.*\.pyi?$' [tool.pytest.ini_options] DJANGO_SETTINGS_MODULE="ddpui.settings" +testpaths = [ + "ddpui/tests" +] [tool.pylint.messages_control] max-line-length = 100 @@ -19,6 +22,9 @@ disable = [ ] [tool.coverage.run] +source = [ + "ddpui" +] omit = [ "ddpui/utils/sendgrid.py", "ddpui/utils/dbtdocs.py", @@ -26,8 +32,7 @@ omit = [ "ddpui/migrations/*", "ddpui/management/*", "ddpui/models/*", - "*/__init__.py", - "*/celery.py", + "ddpui/celery.py", + "ddpui/settings.py", "*/schema.py", - "*/settings.py" ] \ No newline at end of file From 4ad4c33c6afd6d316fc7a72afd5be119048e6842 Mon Sep 17 00:00:00 2001 From: Ishankoradia Date: Mon, 30 Sep 2024 15:41:11 +0530 Subject: [PATCH 2/2] dont track these files --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b2eebb8d..9d4bef5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,5 +34,10 @@ omit = [ "ddpui/models/*", "ddpui/celery.py", "ddpui/settings.py", + "ddpui/asgi.py", + "ddpui/wsgi.py", + "ddpui/urls.py", + "ddpui/routes.py", "*/schema.py", + "ddpui/*/__init__.py", ] \ No newline at end of file