From c058236c193101ca5ca128a0303a94b7a8959180 Mon Sep 17 00:00:00 2001 From: Tim Jaacks <tim.jaacks@seco.com> Date: Thu, 3 Aug 2023 09:01:28 +0200 Subject: [PATCH] Sourcery: skip a certain suggestion for better readability --- scripts/.sourcery.yaml | 1 - scripts/get_integration_sources.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/.sourcery.yaml b/scripts/.sourcery.yaml index caee6a62..424f2d5e 100644 --- a/scripts/.sourcery.yaml +++ b/scripts/.sourcery.yaml @@ -16,7 +16,6 @@ rule_settings: - replace-interpolation-with-fstring - use-fstring-for-concatenation - remove-redundant-if - - switch - low-code-quality - for-append-to-extend - raise-specific-error diff --git a/scripts/get_integration_sources.py b/scripts/get_integration_sources.py index 2a631ec6..f4552ebf 100755 --- a/scripts/get_integration_sources.py +++ b/scripts/get_integration_sources.py @@ -41,6 +41,9 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group: "branch": source_branch, } ) + # Skip a sourcery suggestion because the way it is written is easier to + # understand than the suggested change. + # sourcery skip: switch except GitlabGetError as e: if e.response_code == 404: # not found pass -- GitLab