From 98ecd6f90f48c5140c2b3df3cbd381350557b0d4 Mon Sep 17 00:00:00 2001 From: Artur Dobrogowski Date: Fri, 8 Dec 2023 17:19:31 +0100 Subject: [PATCH] fix: flake8 too long lines, removed old config --- .github/pre-commit-config.yaml | 15 --------------- kedro_vertexai/context_helper.py | 3 ++- kedro_vertexai/grouping.py | 3 ++- 3 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 .github/pre-commit-config.yaml diff --git a/.github/pre-commit-config.yaml b/.github/pre-commit-config.yaml deleted file mode 100644 index 5bb94b6..0000000 --- a/.github/pre-commit-config.yaml +++ /dev/null @@ -1,15 +0,0 @@ -repos: -- repo: https://github.com/pycqa/isort - rev: 5.12.0 - hooks: - - id: isort - args: ["--profile", "black", "--line-length=79"] -- repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 - hooks: - - id: flake8 - args: ['--ignore=E203,W503', '--max-line-length=120'] # see https://github.com/psf/black/issues/315 https://github.com/psf/black/issues/52 diff --git a/kedro_vertexai/context_helper.py b/kedro_vertexai/context_helper.py index f625117..c0a40c5 100644 --- a/kedro_vertexai/context_helper.py +++ b/kedro_vertexai/context_helper.py @@ -129,7 +129,8 @@ def config(self) -> PluginConfig: ) else: raise ValueError( - "Missing vertexai.yml files in configuration. Make sure that you configure your project first" + "Missing vertexai.yml files in configuration. " + "Make sure that you configure your project first" ) return PluginConfig.parse_obj(vertex_conf) diff --git a/kedro_vertexai/grouping.py b/kedro_vertexai/grouping.py index a21c3d9..bce1670 100644 --- a/kedro_vertexai/grouping.py +++ b/kedro_vertexai/grouping.py @@ -91,7 +91,8 @@ def group(self, node_dependencies: PipelineDependenciesDict) -> Grouping: ] if len(grouping_tags) > 1: raise GroupingException( - f"Inconsistent tagging for grouping, multiple tags with grouping prefix found in node {name}" + "Inconsistent tagging for grouping, multiple tags" + f"with grouping prefix found in node {name}" ) # 1 or 0 loop for tag in grouping_tags: