Content-Length: 377145 | pFad | https://github.com/apache/airflow/commit/034039beb2568850d29b34390d3dc1e2a91b8367

30 Remove `pylint` messages control instructions (#28555) · apache/airflow@034039b · GitHub
Skip to content

Commit 034039b

Browse files
authored
Remove pylint messages control instructions (#28555)
1 parent 81323e3 commit 034039b

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

airflow/models/taskinstance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ def _run_finished_callback(
15401540
for callback in callbacks:
15411541
try:
15421542
callback(context)
1543-
except Exception: # pylint: disable=broad-except
1543+
except Exception:
15441544
callback_name = qualname(callback).split(".")[-1]
15451545
self.log.exception(
15461546
f"Error when executing {callback_name} callback" # type: ignore[attr-defined]

airflow/providers/google/cloud/sensors/dataproc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"""This module contains a Dataproc Job sensor."""
1919
from __future__ import annotations
2020

21-
# pylint: disable=C0302
2221
import time
2322
from typing import TYPE_CHECKING, Sequence
2423

airflow/sensors/external_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def get_count(self, dttm_filter, session, states) -> int:
319319
def _count_query(self, model, session, states, dttm_filter) -> Query:
320320
query = session.query(func.count()).filter(
321321
model.dag_id == self.external_dag_id,
322-
model.state.in_(states), # pylint: disable=no-member
322+
model.state.in_(states),
323323
model.execution_date.in_(dttm_filter),
324324
)
325325
return query

airflow/utils/timeout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, seconds=1, error_message="Timeout"):
3838
self.seconds = seconds
3939
self.error_message = error_message + ", PID: " + str(os.getpid())
4040

41-
def handle_timeout(self, *args): # pylint: disable=unused-argument
41+
def handle_timeout(self, *args):
4242
"""Logs information and raises AirflowTaskTimeout."""
4343
self.log.error("Process timed out, PID: %s", str(os.getpid()))
4444
raise AirflowTaskTimeout(self.error_message)

tests/providers/google/cloud/operators/test_cloud_build.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
from airflow.utils.timezone import datetime
5353
from airflow.utils.types import DagRunType
5454

55-
# pylint: disable=R0904, C0111
56-
57-
5855
GCP_CONN_ID = "google_cloud_default"
5956
PROJECT_ID = "cloud-build-project"
6057
CLOUD_BUILD_HOOK_PATH = "airflow.providers.google.cloud.operators.cloud_build.CloudBuildHook"

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/apache/airflow/commit/034039beb2568850d29b34390d3dc1e2a91b8367

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy