Skip to content

Commit b1ad017

Browse files
authored
pydocstyle D202 added (#24221)
1 parent aeabe99 commit b1ad017

File tree

15 files changed

+1
-18
lines changed

15 files changed

+1
-18
lines changed

β€Ž.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ repos:
242242
name: Run pydocstyle
243243
args:
244244
- --convention=pep257
245-
- --add-ignore=D100,D102,D103,D104,D105,D107,D202,D205,D400,D401
245+
- --add-ignore=D100,D102,D103,D104,D105,D107,D205,D400,D401
246246
exclude: |
247247
(?x)
248248
^tests/.*\.py$|

β€Žairflow/cli/commands/dag_command.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ def dag_state(args, session=NEW_SESSION):
253253
>>> airflow dags state a_dag_with_conf_passed 2015-01-01T00:00:00.000000
254254
failed, {"name": "bob", "age": "42"}
255255
"""
256-
257256
dag = DagModel.get_dagmodel(args.dag_id, session=session)
258257

259258
if not dag:

β€Žairflow/models/dag.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,6 @@ def partial_subset(
19761976
:param include_direct_upstream: Include all tasks directly upstream of matched
19771977
and downstream (if include_downstream = True) tasks
19781978
"""
1979-
19801979
from airflow.models.baseoperator import BaseOperator
19811980
from airflow.models.mappedoperator import MappedOperator
19821981

β€Žairflow/models/mappedoperator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,6 @@ def run_time_mapped_ti_count(self, run_id: str, *, session: Session) -> Optional
843843
:return: None if upstream tasks are not complete yet, or else total number of mapped TIs this task
844844
should have
845845
"""
846-
847846
lengths = self._get_map_lengths(run_id, session=session)
848847
expansion_kwargs = self._get_expansion_kwargs()
849848

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def create_ingestion(
7272
having Ingestion ARN, HTTP status, ingestion ID and ingestion status.
7373
:rtype: Dict
7474
"""
75-
7675
self.log.info("Creating QuickSight Ingestion for data set id %s.", data_set_id)
7776
quicksight_client = self.get_conn()
7877
try:
@@ -136,7 +135,6 @@ def wait_for_state(
136135
will check the status of QuickSight Ingestion
137136
:return: response of describe_ingestion call after Ingestion is is done
138137
"""
139-
140138
sec = 0
141139
status = self.get_status(aws_account_id, data_set_id, ingestion_id)
142140
while status in self.NON_TERMINAL_STATES and status != target_state:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def get_s3_bucket_key(
162162
:return: the parsed bucket name and key
163163
:rtype: tuple of str
164164
"""
165-
166165
if bucket is None:
167166
return S3Hook.parse_s3_url(key)
168167

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def __init__(self, *args, **kwargs):
3333

3434
def get_account_number(self) -> str:
3535
"""Get the account Number"""
36-
3736
try:
3837
return self.get_conn().get_caller_identity()['Account']
3938
except Exception as general_error:

β€Žairflow/providers/amazon/aws/sensors/rds.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def _describe_item(self, item_type: str, item_name: str) -> list:
5656

5757
def _check_item(self, item_type: str, item_name: str) -> bool:
5858
"""Get certain item from `_describe_item()` and check its status"""
59-
6059
try:
6160
items = self._describe_item(item_type, item_name)
6261
except ClientError:

β€Žairflow/providers/cncf/kubernetes/hooks/kubernetes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ def _deprecation_warning_core_param(deprecation_warnings):
180180

181181
def get_conn(self) -> Any:
182182
"""Returns kubernetes api session for use with requests"""
183-
184183
in_cluster = self._coalesce_param(
185184
self.in_cluster, self.conn_extras.get("extra__kubernetes__in_cluster") or None
186185
)

β€Žairflow/providers/cncf/kubernetes/operators/kubernetes_pod.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ def _patch_deprecated_k8s_settings(self, hook: KubernetesHook):
593593
When we find values there that we need to apply on the hook, we patch special
594594
hook attributes here.
595595
"""
596-
597596
# default for enable_tcp_keepalive is True; patch if False
598597
if conf.getboolean('kubernetes', 'enable_tcp_keepalive') is False:
599598
hook._deprecated_core_disable_tcp_keepalive = True

0 commit comments

Comments
 (0)