Skip to content

Commit 92ddcf4

Browse files
authored
Introduce flake8-implicit-str-concat plugin to static checks (#23873)
1 parent 9216489 commit 92ddcf4

File tree

32 files changed

+55
-55
lines changed

32 files changed

+55
-55
lines changed

β€Žairflow/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _validate_enums(self):
391391
if value not in enum_options:
392392
raise AirflowConfigException(
393393
f"`[{section_key}] {option_key}` should not be "
394-
+ f"{value!r}. Possible values: {', '.join(enum_options)}."
394+
f"{value!r}. Possible values: {', '.join(enum_options)}."
395395
)
396396

397397
def _validate_config_dependencies(self):

β€Žairflow/providers/amazon/aws/hooks/eks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ class EKSHook(EksHook):
638638

639639
def __init__(self, *args, **kwargs):
640640
warnings.warn(
641-
"This hook is deprecated. " "Please use `airflow.providers.amazon.aws.hooks.eks.EksHook`.",
641+
"This hook is deprecated. Please use `airflow.providers.amazon.aws.hooks.eks.EksHook`.",
642642
DeprecationWarning,
643643
stacklevel=2,
644644
)

β€Žairflow/providers/amazon/aws/hooks/ses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class SESHook(SesHook):
106106

107107
def __init__(self, *args, **kwargs):
108108
warnings.warn(
109-
"This hook is deprecated. " "Please use :class:`airflow.providers.amazon.aws.hooks.ses.SesHook`.",
109+
"This hook is deprecated. Please use :class:`airflow.providers.amazon.aws.hooks.ses.SesHook`.",
110110
DeprecationWarning,
111111
stacklevel=2,
112112
)

β€Žairflow/providers/amazon/aws/hooks/sns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class AwsSnsHook(SnsHook):
100100

101101
def __init__(self, *args, **kwargs):
102102
warnings.warn(
103-
"This hook is deprecated. " "Please use :class:`airflow.providers.amazon.aws.hooks.sns.SnsHook`.",
103+
"This hook is deprecated. Please use :class:`airflow.providers.amazon.aws.hooks.sns.SnsHook`.",
104104
DeprecationWarning,
105105
stacklevel=2,
106106
)

β€Žairflow/providers/amazon/aws/hooks/sqs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SQSHook(SqsHook):
8888

8989
def __init__(self, *args, **kwargs):
9090
warnings.warn(
91-
"This hook is deprecated. " "Please use :class:`airflow.providers.amazon.aws.hooks.sqs.SqsHook`.",
91+
"This hook is deprecated. Please use :class:`airflow.providers.amazon.aws.hooks.sqs.SqsHook`.",
9292
DeprecationWarning,
9393
stacklevel=2,
9494
)

β€Žairflow/providers/databricks/operators/databricks_repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.git_provider = self.__detect_repo_provider__(git_url)
9191
if self.git_provider is None:
9292
raise AirflowException(
93-
"git_provider isn't specified and couldn't be guessed for URL {git_url}"
93+
f"git_provider isn't specified and couldn't be guessed for URL {git_url}"
9494
)
9595
else:
9696
self.git_provider = git_provider

β€Žairflow/providers/google/cloud/hooks/kubernetes_engine.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ def get_operation(self, operation_name: str, project_id: Optional[str] = None) -
123123
:return: The new, updated operation from Google Cloud
124124
"""
125125
return self.get_cluster_manager_client().get_operation(
126-
name=f'projects/{project_id or self.project_id}'
127-
+ f'/locations/{self.location}/operations/{operation_name}'
126+
name=(
127+
f'projects/{project_id or self.project_id}'
128+
f'/locations/{self.location}/operations/{operation_name}'
129+
)
128130
)
129131

130132
@staticmethod

β€Žairflow/providers/google/cloud/utils/credentials_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __init__(
201201
key_options = [key_path, key_secret_name, keyfile_dict]
202202
if len([x for x in key_options if x]) > 1:
203203
raise AirflowException(
204-
"The `keyfile_dict`, `key_path`, and `key_secret_name` fields"
204+
"The `keyfile_dict`, `key_path`, and `key_secret_name` fields "
205205
"are all mutually exclusive. Please provide only one value."
206206
)
207207
self.key_path = key_path

β€Žairflow/providers/microsoft/psrp/operators/psrp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def get_template_env(self):
164164
def securestring(value: str):
165165
if not native:
166166
raise AirflowException(
167-
"Filter 'securestring' not applicable to non-native " "templating environment"
167+
"Filter 'securestring' not applicable to non-native templating environment"
168168
)
169169
return TaggedValue("SS", value)
170170

β€Žairflow/utils/email.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def send_email_smtp(
9999
else:
100100
if from_email is None:
101101
raise Exception(
102-
"You should set from email - either by smtp/smtp_mail_from config or " "`from_email parameter"
102+
"You should set from email - either by smtp/smtp_mail_from config or `from_email` parameter"
103103
)
104104
mail_from = from_email
105105

0 commit comments

Comments
 (0)