From 13dcf3aaa4808bc616c1f9673b316ba7db199c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20M=C3=A9ndez=20Hern=C3=A1ndez?= Date: Fri, 12 Jan 2024 17:10:17 +0100 Subject: [PATCH] lint({opl/,}cluster_read.py): Avoid lint in recent changes --- core/opl/cluster_read.py | 5 +++-- opl/cluster_read.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/opl/cluster_read.py b/core/opl/cluster_read.py index fe646e3..d664e80 100755 --- a/core/opl/cluster_read.py +++ b/core/opl/cluster_read.py @@ -14,7 +14,7 @@ from . import data from . import date -from tenacity import * +from tenacity import * # noqa: F403 def execute(command): @@ -179,7 +179,8 @@ def _sanitize_target(self, target): target = target.replace("$Cloud", self.args.grafana_prefix) return target - @retry(stop=(stop_after_delay(10) | stop_after_attempt(10))) + # pylint: disable-next=undefined-variable + @retry(stop=(stop_after_delay(10) | stop_after_attempt(10))) # noqa: F405 def measure(self, ri, name, grafana_target): assert ( ri.start is not None and ri.end is not None diff --git a/opl/cluster_read.py b/opl/cluster_read.py index fe646e3..d664e80 100755 --- a/opl/cluster_read.py +++ b/opl/cluster_read.py @@ -14,7 +14,7 @@ from . import data from . import date -from tenacity import * +from tenacity import * # noqa: F403 def execute(command): @@ -179,7 +179,8 @@ def _sanitize_target(self, target): target = target.replace("$Cloud", self.args.grafana_prefix) return target - @retry(stop=(stop_after_delay(10) | stop_after_attempt(10))) + # pylint: disable-next=undefined-variable + @retry(stop=(stop_after_delay(10) | stop_after_attempt(10))) # noqa: F405 def measure(self, ri, name, grafana_target): assert ( ri.start is not None and ri.end is not None