From 50b96edade8c34a46e0c1978b8b95e419f5656c3 Mon Sep 17 00:00:00 2001 From: yair Date: Fri, 14 Jul 2023 20:39:49 +0300 Subject: [PATCH] removed unused variable --- .../gitlab/gitlab_integration/services/gitlab_service.py | 2 +- integrations/gitlab/pyproject.toml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/integrations/gitlab/gitlab_integration/services/gitlab_service.py b/integrations/gitlab/gitlab_integration/services/gitlab_service.py index 41d6a94ba1..0309c94f4f 100644 --- a/integrations/gitlab/gitlab_integration/services/gitlab_service.py +++ b/integrations/gitlab/gitlab_integration/services/gitlab_service.py @@ -171,7 +171,7 @@ def _get_entities_from_git( ) for entity_data in raw_entities ] - except Exception as e: + except Exception: return [] def _get_entities_by_commit( diff --git a/integrations/gitlab/pyproject.toml b/integrations/gitlab/pyproject.toml index f3dcc49402..95042485f4 100644 --- a/integrations/gitlab/pyproject.toml +++ b/integrations/gitlab/pyproject.toml @@ -22,6 +22,15 @@ pylint = "^2.17.4" requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api" +[tool.mypy] +exclude = [ + 'venv', + '.venv', +] +plugins = [ + "pydantic.mypy" +] + [tool.black] line-length = 88 target-version = ['py39', 'py310', 'py311']