You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/11/03 23:53:21 UTC

[airflow] branch master updated: Enable Black - Python Auto Formmatter (#9550)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e8f9cc  Enable Black - Python Auto Formmatter (#9550)
4e8f9cc is described below

commit 4e8f9cc8d02b29c325b8a5a76b4837671bdf5f68
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Tue Nov 3 23:51:54 2020 +0000

    Enable Black - Python Auto Formmatter (#9550)
---
 .pre-commit-config.yaml                            |    5 +-
 airflow/__init__.py                                |    3 +
 airflow/api/__init__.py                            |    5 +-
 airflow/api/auth/backend/basic_auth.py             |    5 +-
 airflow/api/auth/backend/default.py                |    1 +
 airflow/api/auth/backend/kerberos_auth.py          |    5 +-
 airflow/api/client/__init__.py                     |    2 +-
 airflow/api/client/json_client.py                  |   30 +-
 airflow/api/client/local_client.py                 |    7 +-
 airflow/api/common/experimental/__init__.py        |    8 +-
 airflow/api/common/experimental/delete_dag.py      |   11 +-
 airflow/api/common/experimental/get_dag_runs.py    |   22 +-
 airflow/api/common/experimental/get_lineage.py     |   10 +-
 .../api/common/experimental/get_task_instance.py   |    3 +-
 airflow/api/common/experimental/mark_tasks.py      |   73 +-
 airflow/api/common/experimental/trigger_dag.py     |   19 +-
 .../api_connexion/endpoints/dag_run_endpoint.py    |    2 +-
 .../api_connexion/endpoints/dag_source_endpoint.py |    1 -
 .../endpoints/task_instance_endpoint.py            |   20 +-
 airflow/api_connexion/schemas/sla_miss_schema.py   |    1 +
 .../api_connexion/schemas/task_instance_schema.py  |    6 +-
 airflow/cli/cli_parser.py                          |  943 ++++++-------
 airflow/cli/commands/cheat_sheet_command.py        |    1 +
 airflow/cli/commands/config_command.py             |    4 +-
 airflow/cli/commands/connection_command.py         |   75 +-
 airflow/cli/commands/dag_command.py                |  102 +-
 airflow/cli/commands/db_command.py                 |   10 +-
 airflow/cli/commands/info_command.py               |   10 +-
 airflow/cli/commands/legacy_commands.py            |    2 +-
 airflow/cli/commands/pool_command.py               |   13 +-
 airflow/cli/commands/role_command.py               |    4 +-
 airflow/cli/commands/rotate_fernet_key_command.py  |    3 +-
 airflow/cli/commands/scheduler_command.py          |   11 +-
 airflow/cli/commands/sync_perm_command.py          |    4 +-
 airflow/cli/commands/task_command.py               |   82 +-
 airflow/cli/commands/user_command.py               |   63 +-
 airflow/cli/commands/variable_command.py           |   11 +-
 airflow/cli/commands/webserver_command.py          |  106 +-
 airflow/config_templates/airflow_local_settings.py |   43 +-
 airflow/config_templates/default_celery.py         |   49 +-
 airflow/configuration.py                           |    1 +
 airflow/contrib/__init__.py                        |    4 +-
 airflow/contrib/hooks/aws_dynamodb_hook.py         |    3 +-
 airflow/contrib/hooks/aws_glue_catalog_hook.py     |    3 +-
 airflow/contrib/hooks/aws_hook.py                  |    6 +-
 airflow/contrib/hooks/aws_logs_hook.py             |    3 +-
 .../contrib/hooks/azure_container_instance_hook.py |    3 +-
 .../contrib/hooks/azure_container_registry_hook.py |    3 +-
 .../contrib/hooks/azure_container_volume_hook.py   |    3 +-
 airflow/contrib/hooks/azure_cosmos_hook.py         |    3 +-
 airflow/contrib/hooks/azure_data_lake_hook.py      |    3 +-
 airflow/contrib/hooks/azure_fileshare_hook.py      |    3 +-
 airflow/contrib/hooks/bigquery_hook.py             |    9 +-
 airflow/contrib/hooks/cassandra_hook.py            |    3 +-
 airflow/contrib/hooks/cloudant_hook.py             |    3 +-
 airflow/contrib/hooks/databricks_hook.py           |   17 +-
 airflow/contrib/hooks/datadog_hook.py              |    3 +-
 airflow/contrib/hooks/datastore_hook.py            |    3 +-
 airflow/contrib/hooks/dingding_hook.py             |    3 +-
 airflow/contrib/hooks/discord_webhook_hook.py      |    3 +-
 airflow/contrib/hooks/emr_hook.py                  |    3 +-
 airflow/contrib/hooks/fs_hook.py                   |    3 +-
 airflow/contrib/hooks/ftp_hook.py                  |    3 +-
 airflow/contrib/hooks/gcp_api_base_hook.py         |    6 +-
 airflow/contrib/hooks/gcp_bigtable_hook.py         |    3 +-
 airflow/contrib/hooks/gcp_cloud_build_hook.py      |    3 +-
 airflow/contrib/hooks/gcp_compute_hook.py          |    6 +-
 airflow/contrib/hooks/gcp_container_hook.py        |    6 +-
 airflow/contrib/hooks/gcp_dataflow_hook.py         |    6 +-
 airflow/contrib/hooks/gcp_dataproc_hook.py         |    6 +-
 airflow/contrib/hooks/gcp_dlp_hook.py              |    3 +-
 airflow/contrib/hooks/gcp_function_hook.py         |    6 +-
 airflow/contrib/hooks/gcp_kms_hook.py              |    6 +-
 airflow/contrib/hooks/gcp_mlengine_hook.py         |    3 +-
 airflow/contrib/hooks/gcp_natural_language_hook.py |    3 +-
 airflow/contrib/hooks/gcp_pubsub_hook.py           |    3 +-
 airflow/contrib/hooks/gcp_speech_to_text_hook.py   |    6 +-
 airflow/contrib/hooks/gcp_tasks_hook.py            |    3 +-
 airflow/contrib/hooks/gcp_text_to_speech_hook.py   |    6 +-
 airflow/contrib/hooks/gcp_transfer_hook.py         |    6 +-
 airflow/contrib/hooks/gcp_translate_hook.py        |    3 +-
 .../contrib/hooks/gcp_video_intelligence_hook.py   |    3 +-
 airflow/contrib/hooks/gcp_vision_hook.py           |    3 +-
 airflow/contrib/hooks/gcs_hook.py                  |    6 +-
 airflow/contrib/hooks/gdrive_hook.py               |    3 +-
 airflow/contrib/hooks/grpc_hook.py                 |    3 +-
 airflow/contrib/hooks/imap_hook.py                 |    3 +-
 airflow/contrib/hooks/jenkins_hook.py              |    3 +-
 airflow/contrib/hooks/mongo_hook.py                |    3 +-
 airflow/contrib/hooks/openfaas_hook.py             |    3 +-
 airflow/contrib/hooks/opsgenie_alert_hook.py       |    3 +-
 airflow/contrib/hooks/pagerduty_hook.py            |    3 +-
 airflow/contrib/hooks/pinot_hook.py                |    3 +-
 airflow/contrib/hooks/qubole_check_hook.py         |    3 +-
 airflow/contrib/hooks/qubole_hook.py               |    3 +-
 airflow/contrib/hooks/redis_hook.py                |    3 +-
 airflow/contrib/hooks/sagemaker_hook.py            |    9 +-
 airflow/contrib/hooks/salesforce_hook.py           |    3 +-
 airflow/contrib/hooks/segment_hook.py              |    3 +-
 airflow/contrib/hooks/slack_webhook_hook.py        |    3 +-
 airflow/contrib/hooks/spark_jdbc_hook.py           |    3 +-
 airflow/contrib/hooks/spark_sql_hook.py            |    3 +-
 airflow/contrib/hooks/spark_submit_hook.py         |    3 +-
 airflow/contrib/hooks/sqoop_hook.py                |    3 +-
 airflow/contrib/hooks/ssh_hook.py                  |    3 +-
 airflow/contrib/hooks/vertica_hook.py              |    3 +-
 airflow/contrib/hooks/wasb_hook.py                 |    3 +-
 airflow/contrib/hooks/winrm_hook.py                |    3 +-
 airflow/contrib/operators/adls_list_operator.py    |    3 +-
 airflow/contrib/operators/adls_to_gcs.py           |    6 +-
 .../azure_container_instances_operator.py          |    3 +-
 airflow/contrib/operators/azure_cosmos_operator.py |    3 +-
 .../contrib/operators/bigquery_check_operator.py   |    7 +-
 airflow/contrib/operators/bigquery_get_data.py     |    3 +-
 airflow/contrib/operators/bigquery_operator.py     |   12 +-
 airflow/contrib/operators/bigquery_to_bigquery.py  |    3 +-
 airflow/contrib/operators/bigquery_to_gcs.py       |    6 +-
 .../operators/bigquery_to_mysql_operator.py        |    3 +-
 airflow/contrib/operators/cassandra_to_gcs.py      |    6 +-
 airflow/contrib/operators/databricks_operator.py   |    6 +-
 airflow/contrib/operators/dataflow_operator.py     |   16 +-
 airflow/contrib/operators/dataproc_operator.py     |   53 +-
 .../contrib/operators/datastore_export_operator.py |    6 +-
 .../contrib/operators/datastore_import_operator.py |    6 +-
 airflow/contrib/operators/dingding_operator.py     |    3 +-
 .../contrib/operators/discord_webhook_operator.py  |    3 +-
 airflow/contrib/operators/docker_swarm_operator.py |    3 +-
 airflow/contrib/operators/druid_operator.py        |    3 +-
 airflow/contrib/operators/dynamodb_to_s3.py        |    3 +-
 airflow/contrib/operators/ecs_operator.py          |    3 +-
 .../contrib/operators/emr_add_steps_operator.py    |    3 +-
 .../operators/emr_create_job_flow_operator.py      |    3 +-
 .../operators/emr_terminate_job_flow_operator.py   |    3 +-
 airflow/contrib/operators/file_to_gcs.py           |    6 +-
 airflow/contrib/operators/file_to_wasb.py          |    3 +-
 airflow/contrib/operators/gcp_bigtable_operator.py |   28 +-
 .../contrib/operators/gcp_cloud_build_operator.py  |    3 +-
 airflow/contrib/operators/gcp_compute_operator.py  |   30 +-
 .../contrib/operators/gcp_container_operator.py    |   16 +-
 airflow/contrib/operators/gcp_dlp_operator.py      |   58 +-
 airflow/contrib/operators/gcp_function_operator.py |   12 +-
 .../operators/gcp_natural_language_operator.py     |   21 +-
 airflow/contrib/operators/gcp_spanner_operator.py  |   33 +-
 .../operators/gcp_speech_to_text_operator.py       |    6 +-
 airflow/contrib/operators/gcp_sql_operator.py      |   15 +-
 airflow/contrib/operators/gcp_tasks_operator.py    |   19 +-
 .../operators/gcp_text_to_speech_operator.py       |    6 +-
 airflow/contrib/operators/gcp_transfer_operator.py |   48 +-
 .../contrib/operators/gcp_translate_operator.py    |    3 +-
 .../operators/gcp_translate_speech_operator.py     |    6 +-
 .../operators/gcp_video_intelligence_operator.py   |    6 +-
 airflow/contrib/operators/gcp_vision_operator.py   |   59 +-
 airflow/contrib/operators/gcs_acl_operator.py      |   12 +-
 airflow/contrib/operators/gcs_delete_operator.py   |    6 +-
 airflow/contrib/operators/gcs_download_operator.py |    6 +-
 airflow/contrib/operators/gcs_list_operator.py     |    6 +-
 airflow/contrib/operators/gcs_operator.py          |    6 +-
 airflow/contrib/operators/gcs_to_bq.py             |    6 +-
 airflow/contrib/operators/gcs_to_gcs.py            |    6 +-
 .../operators/gcs_to_gcs_transfer_operator.py      |    3 +-
 .../contrib/operators/gcs_to_gdrive_operator.py    |    6 +-
 airflow/contrib/operators/gcs_to_s3.py             |    6 +-
 airflow/contrib/operators/grpc_operator.py         |    3 +-
 airflow/contrib/operators/hive_to_dynamodb.py      |    3 +-
 .../operators/imap_attachment_to_s3_operator.py    |    3 +-
 .../operators/jenkins_job_trigger_operator.py      |    3 +-
 airflow/contrib/operators/jira_operator.py         |    3 +-
 .../contrib/operators/kubernetes_pod_operator.py   |    3 +-
 airflow/contrib/operators/mlengine_operator.py     |   19 +-
 airflow/contrib/operators/mongo_to_s3.py           |    3 +-
 airflow/contrib/operators/mssql_to_gcs.py          |    6 +-
 airflow/contrib/operators/mysql_to_gcs.py          |    6 +-
 .../contrib/operators/opsgenie_alert_operator.py   |    3 +-
 .../oracle_to_azure_data_lake_transfer.py          |    3 +-
 .../contrib/operators/oracle_to_oracle_transfer.py |    6 +-
 .../contrib/operators/postgres_to_gcs_operator.py  |    6 +-
 airflow/contrib/operators/pubsub_operator.py       |    7 +-
 airflow/contrib/operators/qubole_check_operator.py |    6 +-
 airflow/contrib/operators/qubole_operator.py       |    3 +-
 .../contrib/operators/redis_publish_operator.py    |    3 +-
 .../contrib/operators/s3_copy_object_operator.py   |    3 +-
 .../operators/s3_delete_objects_operator.py        |    3 +-
 airflow/contrib/operators/s3_list_operator.py      |    3 +-
 airflow/contrib/operators/s3_to_gcs_operator.py    |    3 +-
 .../operators/s3_to_gcs_transfer_operator.py       |    7 +-
 airflow/contrib/operators/s3_to_sftp_operator.py   |    3 +-
 .../contrib/operators/sagemaker_base_operator.py   |    3 +-
 .../sagemaker_endpoint_config_operator.py          |    3 +-
 .../operators/sagemaker_endpoint_operator.py       |    3 +-
 .../contrib/operators/sagemaker_model_operator.py  |    3 +-
 .../operators/sagemaker_training_operator.py       |    3 +-
 .../operators/sagemaker_transform_operator.py      |    3 +-
 .../contrib/operators/sagemaker_tuning_operator.py |    3 +-
 .../operators/segment_track_event_operator.py      |    3 +-
 airflow/contrib/operators/sftp_to_s3_operator.py   |    3 +-
 .../contrib/operators/slack_webhook_operator.py    |    3 +-
 airflow/contrib/operators/snowflake_operator.py    |    3 +-
 airflow/contrib/operators/spark_jdbc_operator.py   |    3 +-
 airflow/contrib/operators/spark_sql_operator.py    |    3 +-
 airflow/contrib/operators/spark_submit_operator.py |    3 +-
 airflow/contrib/operators/sql_to_gcs.py            |    6 +-
 airflow/contrib/operators/sqoop_operator.py        |    3 +-
 airflow/contrib/operators/ssh_operator.py          |    3 +-
 airflow/contrib/operators/vertica_operator.py      |    3 +-
 airflow/contrib/operators/vertica_to_hive.py       |    6 +-
 airflow/contrib/operators/vertica_to_mysql.py      |    6 +-
 .../contrib/operators/wasb_delete_blob_operator.py |    3 +-
 airflow/contrib/operators/winrm_operator.py        |    3 +-
 airflow/contrib/secrets/gcp_secrets_manager.py     |    3 +-
 .../sensors/aws_glue_catalog_partition_sensor.py   |    3 +-
 airflow/contrib/sensors/azure_cosmos_sensor.py     |    3 +-
 airflow/contrib/sensors/bash_sensor.py             |    3 +-
 airflow/contrib/sensors/celery_queue_sensor.py     |    3 +-
 airflow/contrib/sensors/datadog_sensor.py          |    3 +-
 airflow/contrib/sensors/emr_base_sensor.py         |    3 +-
 airflow/contrib/sensors/emr_job_flow_sensor.py     |    3 +-
 airflow/contrib/sensors/emr_step_sensor.py         |    3 +-
 airflow/contrib/sensors/file_sensor.py             |    3 +-
 airflow/contrib/sensors/ftp_sensor.py              |    3 +-
 airflow/contrib/sensors/gcp_transfer_sensor.py     |    6 +-
 airflow/contrib/sensors/gcs_sensor.py              |   19 +-
 airflow/contrib/sensors/hdfs_sensor.py             |    9 +-
 airflow/contrib/sensors/imap_attachment_sensor.py  |    3 +-
 airflow/contrib/sensors/mongo_sensor.py            |    3 +-
 airflow/contrib/sensors/pubsub_sensor.py           |    3 +-
 airflow/contrib/sensors/python_sensor.py           |    3 +-
 airflow/contrib/sensors/qubole_sensor.py           |    7 +-
 airflow/contrib/sensors/redis_key_sensor.py        |    3 +-
 airflow/contrib/sensors/redis_pub_sub_sensor.py    |    3 +-
 airflow/contrib/sensors/sagemaker_base_sensor.py   |    3 +-
 .../contrib/sensors/sagemaker_endpoint_sensor.py   |    3 +-
 .../contrib/sensors/sagemaker_training_sensor.py   |    6 +-
 .../contrib/sensors/sagemaker_transform_sensor.py  |    3 +-
 airflow/contrib/sensors/sagemaker_tuning_sensor.py |    3 +-
 airflow/contrib/sensors/wasb_sensor.py             |    3 +-
 airflow/contrib/sensors/weekday_sensor.py          |    3 +-
 airflow/contrib/task_runner/cgroup_task_runner.py  |    3 +-
 airflow/contrib/utils/__init__.py                  |    5 +-
 airflow/contrib/utils/gcp_field_sanitizer.py       |    6 +-
 airflow/contrib/utils/gcp_field_validator.py       |    7 +-
 airflow/contrib/utils/log/__init__.py              |    5 +-
 .../log/task_handler_with_custom_formatter.py      |    3 +-
 airflow/contrib/utils/mlengine_operator_utils.py   |    3 +-
 .../contrib/utils/mlengine_prediction_summary.py   |    3 +-
 airflow/contrib/utils/sendgrid.py                  |    3 +-
 airflow/contrib/utils/weekday.py                   |    3 +-
 airflow/example_dags/example_bash_operator.py      |    2 +-
 airflow/example_dags/example_branch_operator.py    |    2 +-
 .../example_branch_python_dop_operator_3.py        |    9 +-
 airflow/example_dags/example_dag_decorator.py      |   11 +-
 .../example_external_task_marker_dag.py            |   24 +-
 .../example_dags/example_kubernetes_executor.py    |   38 +-
 .../example_kubernetes_executor_config.py          |   63 +-
 airflow/example_dags/example_latest_only.py        |    2 +-
 .../example_latest_only_with_trigger.py            |    2 +-
 airflow/example_dags/example_nested_branch_dag.py  |    5 +-
 .../example_passing_params_via_test_command.py     |   16 +-
 airflow/example_dags/example_python_operator.py    |    7 +-
 airflow/example_dags/example_subdag_operator.py    |    6 +-
 .../example_dags/example_trigger_controller_dag.py |    2 +-
 airflow/example_dags/example_trigger_target_dag.py |    2 +-
 airflow/example_dags/example_xcom.py               |    2 +-
 airflow/example_dags/subdags/subdag.py             |    2 +
 airflow/example_dags/tutorial.py                   |    1 +
 airflow/example_dags/tutorial_decorated_etl_dag.py |    3 +
 airflow/example_dags/tutorial_etl_dag.py           |    4 +
 airflow/executors/base_executor.py                 |   62 +-
 airflow/executors/celery_executor.py               |   65 +-
 airflow/executors/celery_kubernetes_executor.py    |   40 +-
 airflow/executors/dask_executor.py                 |   12 +-
 airflow/executors/debug_executor.py                |   10 +-
 airflow/executors/executor_loader.py               |    9 +-
 airflow/executors/kubernetes_executor.py           |  311 +++--
 airflow/executors/local_executor.py                |   52 +-
 airflow/executors/sequential_executor.py           |   12 +-
 airflow/hooks/base_hook.py                         |    2 +-
 airflow/hooks/dbapi_hook.py                        |   31 +-
 airflow/hooks/docker_hook.py                       |    3 +-
 airflow/hooks/druid_hook.py                        |    3 +-
 airflow/hooks/hdfs_hook.py                         |    3 +-
 airflow/hooks/hive_hooks.py                        |    8 +-
 airflow/hooks/http_hook.py                         |    3 +-
 airflow/hooks/jdbc_hook.py                         |    3 +-
 airflow/hooks/mssql_hook.py                        |    3 +-
 airflow/hooks/mysql_hook.py                        |    3 +-
 airflow/hooks/oracle_hook.py                       |    3 +-
 airflow/hooks/pig_hook.py                          |    3 +-
 airflow/hooks/postgres_hook.py                     |    3 +-
 airflow/hooks/presto_hook.py                       |    3 +-
 airflow/hooks/samba_hook.py                        |    3 +-
 airflow/hooks/slack_hook.py                        |    3 +-
 airflow/hooks/sqlite_hook.py                       |    3 +-
 airflow/hooks/webhdfs_hook.py                      |    3 +-
 airflow/hooks/zendesk_hook.py                      |    3 +-
 airflow/jobs/backfill_job.py                       |  297 ++--
 airflow/jobs/base_job.py                           |   30 +-
 airflow/jobs/local_task_job.py                     |   77 +-
 airflow/jobs/scheduler_job.py                      |  431 +++---
 airflow/kubernetes/kube_client.py                  |   22 +-
 airflow/kubernetes/pod_generator.py                |   81 +-
 airflow/kubernetes/pod_generator_deprecated.py     |   43 +-
 airflow/kubernetes/pod_launcher.py                 |  108 +-
 airflow/kubernetes/pod_runtime_info_env.py         |    6 +-
 airflow/kubernetes/refresh_config.py               |    6 +-
 airflow/kubernetes/secret.py                       |   39 +-
 airflow/lineage/__init__.py                        |   67 +-
 airflow/lineage/entities.py                        |    2 +-
 airflow/logging_config.py                          |   15 +-
 airflow/macros/hive.py                             |   16 +-
 airflow/migrations/env.py                          |    5 +-
 .../versions/03bc53e68815_add_sm_dag_index.py      |    4 +-
 .../versions/05f30312d566_merge_heads.py           |    4 +-
 .../0a2a5b66e19d_add_task_reschedule_table.py      |   20 +-
 .../0e2a74e0fc9f_add_time_zone_awareness.py        |  188 +--
 ...dfa7_add_dag_id_state_index_on_dag_run_table.py |    4 +-
 .../versions/13eb55f81627_for_compatibility.py     |    4 +-
 .../versions/1507a7289a2f_create_is_encrypted.py   |   17 +-
 ...cfc09e3_add_is_encrypted_column_to_variable_.py |    4 +-
 .../migrations/versions/1b38cef5b76e_add_dagrun.py |   30 +-
 .../versions/211e584da130_add_ti_state_index.py    |    4 +-
 ...30d7c24_add_executor_config_to_task_instance.py |    4 +-
 .../versions/2e541a1dcfed_task_duration.py         |   14 +-
 .../versions/2e82aab8ef20_rename_user_table.py     |    4 +-
 ...338e90f54d61_more_logging_into_task_isntance.py |    4 +-
 ...7a1ff4_add_kubernetes_resource_checkpointing.py |   15 +-
 .../versions/40e67319e3a9_dagrun_config.py         |    4 +-
 .../versions/41f5f12752f8_add_superuser_field.py   |    4 +-
 .../versions/4446e08588_dagrun_start_end.py        |    4 +-
 ...236f1_add_fractional_seconds_to_mysql_tables.py |  202 ++-
 .../versions/502898887f84_adding_extra_to_log.py   |    4 +-
 ...0_fix_mssql_exec_date_rendered_task_instance.py |    4 +-
 .../versions/52d714495f0_job_id_indices.py         |    7 +-
 .../561833c1c74b_add_password_column_to_user.py    |    4 +-
 .../64de9cddf6c9_add_task_fails_journal_table.py   |    4 +-
 ...a59344a4_make_taskinstance_pool_not_nullable.py |   14 +-
 ...867_change_datetime_to_datetime2_6_on_mssql_.py |  155 ++-
 .../versions/7939bcff74ba_add_dagtags_table.py     |    7 +-
 .../849da589634d_prefix_dag_permissions.py         |   10 +-
 .../versions/8504051e801b_xcom_dag_task_indices.py |    3 +-
 ...15af_add_rendered_task_instance_fields_table.py |    4 +-
 .../856955da8476_fix_sqlite_foreign_key.py         |   43 +-
 ...0d1215c0_add_kubernetes_scheduler_uniqueness.py |   23 +-
 ...d48763f6d53_add_unique_constraint_to_conn_id.py |   22 +-
 ...1e647c8_task_reschedule_fk_on_cascade_delete.py |   18 +-
 .../versions/947454bf1dff_add_ti_job_id_index.py   |    4 +-
 .../versions/952da73b5eff_add_dag_code_table.py    |   18 +-
 .../versions/9635ae0956e7_index_faskfail.py        |   10 +-
 ...606e2_add_scheduling_decision_to_dagrun_and_.py |    1 +
 ...67d16b_add_pool_slots_field_to_task_instance.py |    4 +-
 .../versions/a56c9515abdc_remove_dag_stat_table.py |   14 +-
 ...eea_add_precision_to_execution_date_in_mysql.py |   10 +-
 .../versions/b0125267960b_merge_heads.py           |    4 +-
 ...cfc896_add_a_column_to_track_the_encryption_.py |    7 +-
 ...13e_add_notification_sent_column_to_sla_miss.py |    4 +-
 ...3e6c56_make_xcom_value_column_a_large_binary.py |    4 +-
 .../bef4f3d11e8b_drop_kuberesourceversion_and_.py  |   30 +-
 .../bf00311e1990_add_index_to_taskinstance.py      |   11 +-
 .../versions/c8ffec048a3b_add_fields_to_dag.py     |    4 +-
 ...623dc7_add_max_tries_column_to_task_instance.py |   24 +-
 .../versions/cf5dc11e79ad_drop_user_and_chart.py   |   17 +-
 .../d2ae31099d61_increase_text_size_for_mysql.py   |    4 +-
 .../d38e04c12aa2_add_serialized_dag_table.py       |   25 +-
 ...c3a5a_add_dag_hash_column_to_serialized_dag_.py |    3 +-
 .../versions/dd25f486b8ea_add_idx_log_dag.py       |    4 +-
 .../dd4ecb8fbee3_add_schedule_interval_to_dag.py   |    4 +-
 .../e38be357a868_update_schema_for_smart_sensor.py |   15 +-
 .../versions/e3a246e0dc1_current_schema.py         |   67 +-
 .../f23433877c24_fix_mysql_not_null_constraint.py  |    4 +-
 .../versions/f2ca10b85618_add_dag_stats_table.py   |   22 +-
 ...935f_increase_length_for_connection_password.py |   20 +-
 airflow/models/base.py                             |    4 +-
 airflow/models/baseoperator.py                     |  293 ++--
 airflow/models/connection.py                       |   80 +-
 airflow/models/crypto.py                           |   11 +-
 airflow/models/dag.py                              |  546 ++++----
 airflow/models/dagbag.py                           |  115 +-
 airflow/models/dagcode.py                          |   52 +-
 airflow/models/dagrun.py                           |  217 +--
 airflow/models/log.py                              |    4 +-
 airflow/models/pool.py                             |   16 +-
 airflow/models/renderedtifields.py                 |   80 +-
 airflow/models/sensorinstance.py                   |   28 +-
 airflow/models/serialized_dag.py                   |   46 +-
 airflow/models/skipmixin.py                        |   32 +-
 airflow/models/slamiss.py                          |    7 +-
 airflow/models/taskfail.py                         |    5 +-
 airflow/models/taskinstance.py                     |  452 +++---
 airflow/models/taskreschedule.py                   |   29 +-
 airflow/models/variable.py                         |   13 +-
 airflow/models/xcom.py                             |  108 +-
 airflow/models/xcom_arg.py                         |   13 +-
 airflow/operators/bash.py                          |   28 +-
 airflow/operators/bash_operator.py                 |    3 +-
 airflow/operators/check_operator.py                |   20 +-
 airflow/operators/dagrun_operator.py               |    7 +-
 airflow/operators/docker_operator.py               |    3 +-
 airflow/operators/druid_check_operator.py          |    3 +-
 airflow/operators/email.py                         |   35 +-
 airflow/operators/email_operator.py                |    3 +-
 airflow/operators/gcs_to_s3.py                     |    3 +-
 airflow/operators/generic_transfer.py              |   22 +-
 airflow/operators/google_api_to_s3_transfer.py     |   13 +-
 airflow/operators/hive_operator.py                 |    3 +-
 airflow/operators/hive_stats_operator.py           |    3 +-
 airflow/operators/hive_to_druid.py                 |    6 +-
 airflow/operators/hive_to_mysql.py                 |    6 +-
 airflow/operators/hive_to_samba_operator.py        |    3 +-
 airflow/operators/http_operator.py                 |    3 +-
 airflow/operators/jdbc_operator.py                 |    3 +-
 airflow/operators/latest_only.py                   |   10 +-
 airflow/operators/latest_only_operator.py          |    3 +-
 airflow/operators/mssql_operator.py                |    3 +-
 airflow/operators/mssql_to_hive.py                 |    6 +-
 airflow/operators/mysql_operator.py                |    3 +-
 airflow/operators/mysql_to_hive.py                 |    6 +-
 airflow/operators/oracle_operator.py               |    3 +-
 airflow/operators/papermill_operator.py            |    3 +-
 airflow/operators/pig_operator.py                  |    3 +-
 airflow/operators/postgres_operator.py             |    3 +-
 airflow/operators/presto_check_operator.py         |   12 +-
 airflow/operators/presto_to_mysql.py               |    6 +-
 airflow/operators/python.py                        |  116 +-
 airflow/operators/python_operator.py               |    8 +-
 airflow/operators/redshift_to_s3_operator.py       |    6 +-
 airflow/operators/s3_file_transform_operator.py    |    3 +-
 airflow/operators/s3_to_hive_operator.py           |    6 +-
 airflow/operators/s3_to_redshift_operator.py       |    6 +-
 airflow/operators/slack_operator.py                |    3 +-
 airflow/operators/sql.py                           |   75 +-
 airflow/operators/sql_branch_operator.py           |    6 +-
 airflow/operators/sqlite_operator.py               |    3 +-
 airflow/operators/subdag_operator.py               |   56 +-
 airflow/plugins_manager.py                         |   60 +-
 .../aws/example_dags/example_glacier_to_gcs.py     |    4 +-
 airflow/providers/amazon/aws/hooks/base_aws.py     |    2 +-
 .../providers/amazon/aws/hooks/cloud_formation.py  |    2 +-
 .../aws/hooks/elasticache_replication_group.py     |    3 +-
 airflow/providers/amazon/aws/hooks/glacier.py      |    1 +
 airflow/providers/amazon/aws/hooks/glue_catalog.py |    2 +-
 airflow/providers/amazon/aws/hooks/sagemaker.py    |    2 +-
 .../providers/amazon/aws/hooks/secrets_manager.py  |    1 +
 airflow/providers/amazon/aws/hooks/sns.py          |    2 +-
 airflow/providers/amazon/aws/operators/batch.py    |    2 +-
 airflow/providers/amazon/aws/operators/datasync.py |    2 +-
 airflow/providers/amazon/aws/operators/ecs.py      |    2 +-
 .../amazon/aws/operators/sagemaker_transform.py    |    2 +-
 airflow/providers/amazon/aws/sensors/emr_base.py   |    2 +-
 .../amazon/aws/sensors/sagemaker_training.py       |    3 +-
 .../amazon/aws/transfers/dynamodb_to_s3.py         |    2 +-
 .../providers/amazon/aws/transfers/gcs_to_s3.py    |    2 +-
 .../amazon/aws/transfers/glacier_to_gcs.py         |    2 +-
 .../amazon/aws/transfers/hive_to_dynamodb.py       |    2 +-
 .../providers/amazon/aws/transfers/mongo_to_s3.py  |    2 +-
 .../providers/amazon/backport_provider_setup.py    |    2 +-
 .../apache/cassandra/backport_provider_setup.py    |    2 +-
 .../apache/druid/backport_provider_setup.py        |    2 +-
 .../apache/hdfs/backport_provider_setup.py         |    2 +-
 .../apache/hive/backport_provider_setup.py         |    2 +-
 .../apache/kylin/backport_provider_setup.py        |    2 +-
 .../apache/livy/backport_provider_setup.py         |    2 +-
 .../apache/pig/backport_provider_setup.py          |    2 +-
 .../apache/pinot/backport_provider_setup.py        |    2 +-
 .../apache/spark/backport_provider_setup.py        |    2 +-
 .../apache/sqoop/backport_provider_setup.py        |    2 +-
 .../providers/celery/backport_provider_setup.py    |    2 +-
 .../providers/cloudant/backport_provider_setup.py  |    2 +-
 .../cncf/kubernetes/backport_provider_setup.py     |    2 +-
 .../providers/cncf/kubernetes/hooks/kubernetes.py  |    2 +-
 .../cncf/kubernetes/operators/kubernetes_pod.py    |    7 +-
 .../databricks/backport_provider_setup.py          |    2 +-
 airflow/providers/databricks/hooks/databricks.py   |    2 +-
 .../providers/databricks/operators/databricks.py   |    2 +-
 .../providers/datadog/backport_provider_setup.py   |    2 +-
 .../providers/dingding/backport_provider_setup.py  |    2 +-
 airflow/providers/dingding/hooks/dingding.py       |    2 +-
 airflow/providers/dingding/operators/dingding.py   |    3 +-
 .../providers/discord/backport_provider_setup.py   |    2 +-
 .../providers/docker/backport_provider_setup.py    |    2 +-
 .../elasticsearch/backport_provider_setup.py       |    2 +-
 .../providers/exasol/backport_provider_setup.py    |    2 +-
 airflow/providers/exasol/hooks/exasol.py           |    2 +-
 .../providers/facebook/backport_provider_setup.py  |    2 +-
 airflow/providers/ftp/backport_provider_setup.py   |    2 +-
 airflow/providers/ftp/hooks/ftp.py                 |    2 +-
 .../providers/google/backport_provider_setup.py    |    2 +-
 .../example_dags/example_azure_fileshare_to_gcs.py |    2 +-
 .../example_dags/example_cloud_memorystore.py      |    6 +-
 .../cloud/example_dags/example_mysql_to_gcs.py     |    1 +
 airflow/providers/google/cloud/hooks/bigquery.py   |    4 +-
 .../google/cloud/hooks/cloud_memorystore.py        |    2 +-
 airflow/providers/google/cloud/hooks/cloud_sql.py  |    2 +-
 .../cloud/hooks/cloud_storage_transfer_service.py  |    2 +-
 airflow/providers/google/cloud/hooks/datastore.py  |    2 +-
 airflow/providers/google/cloud/hooks/gcs.py        |    2 +-
 airflow/providers/google/cloud/hooks/gdm.py        |    2 +-
 airflow/providers/google/cloud/hooks/mlengine.py   |    2 +-
 .../operators/cloud_storage_transfer_service.py    |    2 +-
 airflow/providers/google/cloud/operators/dlp.py    |    2 +-
 .../sensors/cloud_storage_transfer_service.py      |    2 +-
 airflow/providers/google/cloud/sensors/dataproc.py |    2 +-
 .../cloud/transfers/azure_fileshare_to_gcs.py      |    4 +-
 .../google/cloud/transfers/presto_to_gcs.py        |    2 +-
 .../google/cloud/utils/credentials_provider.py     |    2 +-
 .../marketing_platform/operators/analytics.py      |    2 +-
 airflow/providers/grpc/backport_provider_setup.py  |    2 +-
 .../providers/hashicorp/backport_provider_setup.py |    2 +-
 airflow/providers/http/backport_provider_setup.py  |    2 +-
 airflow/providers/imap/backport_provider_setup.py  |    2 +-
 airflow/providers/jdbc/backport_provider_setup.py  |    2 +-
 .../providers/jenkins/backport_provider_setup.py   |    2 +-
 airflow/providers/jira/backport_provider_setup.py  |    2 +-
 .../microsoft/azure/backport_provider_setup.py     |    2 +-
 .../example_dags/example_azure_blob_to_gcs.py      |    4 +-
 .../azure/example_dags/example_local_to_adls.py    |    1 +
 .../providers/microsoft/azure/hooks/azure_batch.py |    2 +-
 .../microsoft/azure/hooks/azure_fileshare.py       |    4 +-
 .../microsoft/azure/log/wasb_task_handler.py       |    2 +-
 .../azure/operators/azure_container_instances.py   |    6 +-
 .../microsoft/azure/transfers/azure_blob_to_gcs.py |    2 +-
 .../microsoft/azure/transfers/local_to_adls.py     |    3 +-
 .../microsoft/mssql/backport_provider_setup.py     |    2 +-
 .../microsoft/winrm/backport_provider_setup.py     |    2 +-
 airflow/providers/mongo/backport_provider_setup.py |    2 +-
 airflow/providers/mysql/backport_provider_setup.py |    2 +-
 airflow/providers/odbc/backport_provider_setup.py  |    2 +-
 airflow/providers/odbc/hooks/odbc.py               |    2 +-
 .../providers/openfaas/backport_provider_setup.py  |    2 +-
 .../providers/opsgenie/backport_provider_setup.py  |    2 +-
 airflow/providers/opsgenie/hooks/opsgenie_alert.py |    2 +-
 .../providers/opsgenie/operators/opsgenie_alert.py |    2 +-
 .../providers/oracle/backport_provider_setup.py    |    2 +-
 airflow/providers/oracle/hooks/oracle.py           |    2 +-
 .../providers/pagerduty/backport_provider_setup.py |    2 +-
 .../providers/plexus/backport_provider_setup.py    |    2 +-
 airflow/providers/plexus/operators/job.py          |    2 +-
 .../providers/postgres/backport_provider_setup.py  |    2 +-
 airflow/providers/postgres/hooks/postgres.py       |    2 +-
 .../providers/presto/backport_provider_setup.py    |    2 +-
 airflow/providers/presto/hooks/presto.py           |    2 +-
 .../providers/qubole/backport_provider_setup.py    |    2 +-
 airflow/providers/qubole/hooks/qubole.py           |    4 +-
 airflow/providers/qubole/hooks/qubole_check.py     |    2 +-
 airflow/providers/qubole/operators/qubole_check.py |    2 +-
 airflow/providers/redis/backport_provider_setup.py |    2 +-
 .../salesforce/backport_provider_setup.py          |    2 +-
 airflow/providers/salesforce/hooks/salesforce.py   |    2 +-
 airflow/providers/salesforce/hooks/tableau.py      |    2 +-
 airflow/providers/samba/backport_provider_setup.py |    2 +-
 .../providers/segment/backport_provider_setup.py   |    2 +-
 airflow/providers/sftp/backport_provider_setup.py  |    2 +-
 .../singularity/backport_provider_setup.py         |    2 +-
 airflow/providers/slack/backport_provider_setup.py |    2 +-
 airflow/providers/slack/operators/slack.py         |    2 +-
 airflow/providers/slack/operators/slack_webhook.py |    2 +-
 .../providers/snowflake/backport_provider_setup.py |    2 +-
 airflow/providers/snowflake/hooks/snowflake.py     |    2 +-
 .../providers/sqlite/backport_provider_setup.py    |    2 +-
 airflow/providers/ssh/backport_provider_setup.py   |    2 +-
 airflow/providers/ssh/hooks/ssh.py                 |    2 +-
 .../providers/vertica/backport_provider_setup.py   |    2 +-
 .../providers/yandex/backport_provider_setup.py    |    2 +-
 airflow/providers/yandex/hooks/yandex.py           |    2 +-
 .../providers/zendesk/backport_provider_setup.py   |    2 +-
 airflow/secrets/base_secrets.py                    |    3 +-
 airflow/secrets/local_filesystem.py                |   15 +-
 airflow/secrets/metastore.py                       |    2 +
 airflow/security/kerberos.py                       |   49 +-
 airflow/sensors/base_sensor_operator.py            |   98 +-
 airflow/sensors/bash.py                            |   16 +-
 airflow/sensors/date_time_sensor.py                |    8 +-
 airflow/sensors/external_task_sensor.py            |  103 +-
 airflow/sensors/filesystem.py                      |    5 +-
 airflow/sensors/hdfs_sensor.py                     |    3 +-
 airflow/sensors/hive_partition_sensor.py           |    3 +-
 airflow/sensors/http_sensor.py                     |    3 +-
 airflow/sensors/metastore_partition_sensor.py      |    3 +-
 airflow/sensors/named_hive_partition_sensor.py     |    3 +-
 airflow/sensors/python.py                          |   14 +-
 airflow/sensors/s3_key_sensor.py                   |    3 +-
 airflow/sensors/s3_prefix_sensor.py                |    3 +-
 airflow/sensors/smart_sensor_operator.py           |  169 ++-
 airflow/sensors/sql_sensor.py                      |   35 +-
 airflow/sensors/web_hdfs_sensor.py                 |    3 +-
 airflow/sensors/weekday_sensor.py                  |   15 +-
 airflow/sentry.py                                  |   21 +-
 airflow/serialization/serialized_objects.py        |  113 +-
 airflow/settings.py                                |   61 +-
 airflow/stats.py                                   |   30 +-
 airflow/task/task_runner/base_task_runner.py       |   16 +-
 airflow/task/task_runner/cgroup_task_runner.py     |   49 +-
 airflow/ti_deps/dep_context.py                     |   21 +-
 airflow/ti_deps/dependencies_deps.py               |    5 +-
 airflow/ti_deps/deps/base_ti_dep.py                |    9 +-
 airflow/ti_deps/deps/dag_ti_slots_available_dep.py |    4 +-
 airflow/ti_deps/deps/dag_unpaused_dep.py           |    3 +-
 airflow/ti_deps/deps/dagrun_exists_dep.py          |   20 +-
 airflow/ti_deps/deps/dagrun_id_dep.py              |    7 +-
 .../ti_deps/deps/exec_date_after_start_date_dep.py |   13 +-
 airflow/ti_deps/deps/not_in_retry_period_dep.py    |   12 +-
 airflow/ti_deps/deps/not_previously_skipped_dep.py |   17 +-
 airflow/ti_deps/deps/pool_slots_available_dep.py   |   16 +-
 airflow/ti_deps/deps/prev_dagrun_dep.py            |   31 +-
 airflow/ti_deps/deps/ready_to_reschedule.py        |   18 +-
 airflow/ti_deps/deps/runnable_exec_date_dep.py     |   18 +-
 airflow/ti_deps/deps/task_concurrency_dep.py       |    6 +-
 airflow/ti_deps/deps/task_not_running_dep.py       |    3 +-
 airflow/ti_deps/deps/trigger_rule_dep.py           |   95 +-
 airflow/ti_deps/deps/valid_state_dep.py            |   10 +-
 airflow/typing_compat.py                           |    4 +-
 airflow/utils/callback_requests.py                 |    4 +-
 airflow/utils/cli.py                               |   37 +-
 airflow/utils/compression.py                       |   14 +-
 airflow/utils/dag_processing.py                    |  240 ++--
 airflow/utils/dates.py                             |    6 +-
 airflow/utils/db.py                                |  150 +-
 airflow/utils/decorators.py                        |   15 +-
 airflow/utils/dot_renderer.py                      |   30 +-
 airflow/utils/email.py                             |   35 +-
 airflow/utils/file.py                              |   33 +-
 airflow/utils/helpers.py                           |   31 +-
 airflow/utils/json.py                              |   25 +-
 airflow/utils/log/cloudwatch_task_handler.py       |    3 +-
 airflow/utils/log/colored_log.py                   |   12 +-
 airflow/utils/log/es_task_handler.py               |    3 +-
 airflow/utils/log/file_processor_handler.py        |   16 +-
 airflow/utils/log/file_task_handler.py             |   40 +-
 airflow/utils/log/gcs_task_handler.py              |    3 +-
 airflow/utils/log/json_formatter.py                |    3 +-
 airflow/utils/log/log_reader.py                    |   13 +-
 airflow/utils/log/logging_mixin.py                 |   11 +-
 airflow/utils/log/s3_task_handler.py               |    3 +-
 airflow/utils/log/stackdriver_task_handler.py      |    3 +-
 airflow/utils/log/wasb_task_handler.py             |    3 +-
 airflow/utils/module_loading.py                    |    4 +-
 airflow/utils/operator_helpers.py                  |   61 +-
 airflow/utils/operator_resources.py                |   16 +-
 airflow/utils/orm_event_handlers.py                |   21 +-
 airflow/utils/process_utils.py                     |   24 +-
 airflow/utils/python_virtualenv.py                 |   10 +-
 airflow/utils/serve_logs.py                        |    6 +-
 airflow/utils/session.py                           |    4 +-
 airflow/utils/sqlalchemy.py                        |   26 +-
 airflow/utils/state.py                             |   41 +-
 airflow/utils/task_group.py                        |   18 +-
 airflow/utils/timeout.py                           |    2 +-
 airflow/utils/timezone.py                          |   13 +-
 airflow/utils/weekday.py                           |    4 +-
 airflow/www/api/experimental/endpoints.py          |   61 +-
 airflow/www/app.py                                 |    6 +-
 airflow/www/auth.py                                |    8 +-
 airflow/www/extensions/init_jinja_globals.py       |    2 +-
 airflow/www/extensions/init_security.py            |    5 +-
 airflow/www/forms.py                               |  170 +--
 airflow/www/security.py                            |   10 +-
 airflow/www/utils.py                               |  168 ++-
 airflow/www/validators.py                          |   11 +-
 airflow/www/views.py                               | 1472 +++++++++++---------
 airflow/www/widgets.py                             |    5 +-
 chart/tests/test_celery_kubernetes_executor.py     |    1 +
 .../test_celery_kubernetes_pod_launcher_role.py    |    1 +
 chart/tests/test_chart_quality.py                  |    3 +-
 chart/tests/test_dags_persistent_volume_claim.py   |    1 +
 chart/tests/test_flower_authorization.py           |    1 +
 chart/tests/test_git_sync_scheduler.py             |    1 +
 chart/tests/test_git_sync_webserver.py             |    1 +
 chart/tests/test_git_sync_worker.py                |    1 +
 chart/tests/test_migrate_database_job.py           |    1 +
 chart/tests/test_pod_template_file.py              |    3 +-
 chart/tests/test_scheduler.py                      |    1 +
 chart/tests/test_worker.py                         |    1 +
 dags/test_dag.py                                   |   10 +-
 dev/airflow-github                                 |   55 +-
 dev/airflow-license                                |   26 +-
 dev/send_email.py                                  |  117 +-
 docs/build_docs.py                                 |   70 +-
 docs/conf.py                                       |   57 +-
 docs/exts/docroles.py                              |   28 +-
 docs/exts/exampleinclude.py                        |   10 +-
 kubernetes_tests/test_kubernetes_executor.py       |  115 +-
 kubernetes_tests/test_kubernetes_pod_operator.py   |  326 ++---
 metastore_browser/hive_metastore.py                |   47 +-
 provider_packages/import_all_provider_classes.py   |   19 +-
 provider_packages/prepare_provider_packages.py     |  565 ++++----
 provider_packages/refactor_provider_packages.py    |  158 ++-
 provider_packages/remove_old_releases.py           |   34 +-
 .../ci/pre_commit/pre_commit_check_order_setup.py  |   20 +-
 .../pre_commit_check_setup_installation.py         |   19 +-
 scripts/ci/pre_commit/pre_commit_yaml_to_cfg.py    |   28 +-
 .../in_container/update_quarantined_test_status.py |   64 +-
 scripts/tools/list-integrations.py                 |    9 +-
 setup.cfg                                          |    6 +-
 setup.py                                           |   92 +-
 tests/airflow_pylint/disable_checks_for_tests.py   |   18 +-
 tests/airflow_pylint/do_not_use_asserts.py         |    5 +-
 tests/always/test_example_dags.py                  |    4 +-
 tests/always/test_project_structure.py             |   53 +-
 tests/api/auth/backend/test_basic_auth.py          |   58 +-
 tests/api/auth/test_client.py                      |   29 +-
 tests/api/client/test_local_client.py              |   60 +-
 tests/api/common/experimental/test_delete_dag.py   |   56 +-
 tests/api/common/experimental/test_mark_tasks.py   |  299 ++--
 tests/api/common/experimental/test_pool.py         |   82 +-
 tests/api/common/experimental/test_trigger_dag.py  |   13 +-
 .../endpoints/test_config_endpoint.py              |    2 -
 .../endpoints/test_task_instance_endpoint.py       |    8 +-
 .../endpoints/test_variable_endpoint.py            |    2 +-
 .../api_connexion/endpoints/test_xcom_endpoint.py  |    2 +-
 .../schemas/test_task_instance_schema.py           |    4 +-
 tests/build_provider_packages_dependencies.py      |   27 +-
 tests/cli/commands/test_celery_command.py          |   32 +-
 tests/cli/commands/test_cheat_sheet_command.py     |    3 +-
 tests/cli/commands/test_config_command.py          |   20 +-
 tests/cli/commands/test_connection_command.py      |  372 ++---
 tests/cli/commands/test_dag_command.py             |  303 ++--
 tests/cli/commands/test_db_command.py              |   44 +-
 tests/cli/commands/test_info_command.py            |   17 +-
 tests/cli/commands/test_kubernetes_command.py      |   15 +-
 tests/cli/commands/test_legacy_commands.py         |   44 +-
 tests/cli/commands/test_pool_command.py            |   20 +-
 tests/cli/commands/test_role_command.py            |    9 +-
 tests/cli/commands/test_sync_perm_command.py       |   21 +-
 tests/cli/commands/test_task_command.py            |  320 +++--
 tests/cli/commands/test_user_command.py            |  226 ++-
 tests/cli/commands/test_variable_command.py        |   89 +-
 tests/cli/commands/test_webserver_command.py       |   57 +-
 tests/cli/test_cli_parser.py                       |   87 +-
 tests/cluster_policies/__init__.py                 |   13 +-
 tests/conftest.py                                  |  136 +-
 tests/core/test_config_templates.py                |   28 +-
 tests/core/test_configuration.py                   |  211 +--
 tests/core/test_core.py                            |  205 ++-
 tests/core/test_core_to_contrib.py                 |   12 +-
 tests/core/test_example_dags_system.py             |   16 +-
 tests/core/test_impersonation_tests.py             |   66 +-
 tests/core/test_local_settings.py                  |    7 +
 tests/core/test_logging_config.py                  |   35 +-
 tests/core/test_sentry.py                          |    1 +
 tests/core/test_sqlalchemy_config.py               |   46 +-
 tests/core/test_stats.py                           |  103 +-
 tests/dags/subdir2/test_dont_ignore_this.py        |    5 +-
 tests/dags/test_backfill_pooled_tasks.py           |    3 +-
 tests/dags/test_clear_subdag.py                    |   13 +-
 tests/dags/test_cli_triggered_dags.py              |   19 +-
 tests/dags/test_default_impersonation.py           |    5 +-
 tests/dags/test_default_views.py                   |   12 +-
 tests/dags/test_double_trigger.py                  |    4 +-
 tests/dags/test_example_bash_operator.py           |   25 +-
 tests/dags/test_heartbeat_failed_fast.py           |    5 +-
 tests/dags/test_impersonation.py                   |    5 +-
 tests/dags/test_impersonation_subdag.py            |   28 +-
 tests/dags/test_invalid_cron.py                    |   10 +-
 tests/dags/test_issue_1225.py                      |   29 +-
 tests/dags/test_latest_runs.py                     |    6 +-
 tests/dags/test_logging_in_dag.py                  |    6 +-
 tests/dags/test_mark_success.py                    |    6 +-
 tests/dags/test_missing_owner.py                   |    4 +-
 tests/dags/test_multiple_dags.py                   |    8 +-
 tests/dags/test_no_impersonation.py                |    3 +-
 tests/dags/test_on_failure_callback.py             |    4 +-
 tests/dags/test_on_kill.py                         |    9 +-
 tests/dags/test_prev_dagrun_dep.py                 |   14 +-
 tests/dags/test_retry_handling_job.py              |    5 +-
 tests/dags/test_scheduler_dags.py                  |   25 +-
 tests/dags/test_task_view_type_check.py            |    5 +-
 tests/dags/test_with_non_default_owner.py          |    5 +-
 tests/dags_corrupted/test_impersonation_custom.py  |   17 +-
 tests/dags_with_system_exit/a_system_exit.py       |    4 +-
 .../dags_with_system_exit/b_test_scheduler_dags.py |    9 +-
 tests/dags_with_system_exit/c_system_exit.py       |    4 +-
 tests/deprecated_classes.py                        |  116 +-
 tests/executors/test_base_executor.py              |    8 +-
 tests/executors/test_celery_executor.py            |  134 +-
 tests/executors/test_celery_kubernetes_executor.py |   14 +-
 tests/executors/test_dask_executor.py              |   39 +-
 tests/executors/test_executor_loader.py            |   33 +-
 tests/executors/test_kubernetes_executor.py        |  124 +-
 tests/executors/test_local_executor.py             |   18 +-
 tests/executors/test_sequential_executor.py        |    9 +-
 tests/hooks/test_dbapi_hook.py                     |   50 +-
 tests/jobs/test_backfill_job.py                    |  510 +++----
 tests/jobs/test_base_job.py                        |    5 +-
 tests/jobs/test_local_task_job.py                  |  146 +-
 tests/jobs/test_scheduler_job.py                   |  975 +++++++------
 tests/kubernetes/models/test_secret.py             |  167 +--
 tests/kubernetes/test_client.py                    |    1 -
 tests/kubernetes/test_pod_generator.py             |  377 +++--
 tests/kubernetes/test_pod_launcher.py              |  162 ++-
 tests/kubernetes/test_refresh_config.py            |    1 -
 tests/lineage/test_lineage.py                      |   43 +-
 tests/models/test_baseoperator.py                  |   77 +-
 tests/models/test_cleartasks.py                    |   61 +-
 tests/models/test_connection.py                    |   97 +-
 tests/models/test_dag.py                           |  575 ++++----
 tests/models/test_dagbag.py                        |  168 +--
 tests/models/test_dagcode.py                       |   20 +-
 tests/models/test_dagparam.py                      |    4 +-
 tests/models/test_dagrun.py                        |  301 ++--
 tests/models/test_pool.py                          |   39 +-
 tests/models/test_renderedtifields.py              |  135 +-
 tests/models/test_sensorinstance.py                |   14 +-
 tests/models/test_serialized_dag.py                |   10 +-
 tests/models/test_skipmixin.py                     |   18 +-
 tests/models/test_taskinstance.py                  |  666 +++++----
 tests/models/test_timestamp.py                     |    3 +-
 tests/models/test_variable.py                      |   15 +-
 tests/models/test_xcom.py                          |  146 +-
 tests/models/test_xcom_arg.py                      |   16 +-
 tests/operators/test_bash.py                       |   83 +-
 tests/operators/test_branch_operator.py            |   24 +-
 tests/operators/test_dagrun_operator.py            |   24 +-
 tests/operators/test_email.py                      |   15 +-
 tests/operators/test_generic_transfer.py           |   24 +-
 tests/operators/test_latest_only_operator.py       |  162 ++-
 tests/operators/test_python.py                     |  360 ++---
 tests/operators/test_sql.py                        |  102 +-
 tests/operators/test_subdag_operator.py            |   76 +-
 tests/plugins/test_plugin.py                       |   33 +-
 tests/plugins/test_plugins_manager.py              |   55 +-
 tests/providers/amazon/aws/hooks/test_glacier.py   |    2 +-
 tests/providers/amazon/aws/hooks/test_glue.py      |    1 -
 tests/providers/amazon/aws/hooks/test_sagemaker.py |    2 +-
 .../amazon/aws/hooks/test_secrets_manager.py       |    2 +-
 .../providers/amazon/aws/operators/test_athena.py  |    1 -
 tests/providers/amazon/aws/operators/test_batch.py |    1 -
 tests/providers/amazon/aws/operators/test_ecs.py   |    2 +-
 .../providers/amazon/aws/operators/test_glacier.py |    8 +-
 .../amazon/aws/operators/test_glacier_system.py    |    1 -
 tests/providers/amazon/aws/operators/test_glue.py  |    1 -
 .../amazon/aws/operators/test_s3_bucket.py         |    2 +-
 .../providers/amazon/aws/operators/test_s3_list.py |    1 -
 .../aws/operators/test_sagemaker_endpoint.py       |    2 +-
 .../operators/test_sagemaker_endpoint_config.py    |    1 -
 .../amazon/aws/operators/test_sagemaker_model.py   |    1 -
 .../aws/operators/test_sagemaker_processing.py     |    2 +-
 .../aws/operators/test_sagemaker_training.py       |    1 -
 .../aws/operators/test_sagemaker_transform.py      |    1 -
 .../amazon/aws/operators/test_sagemaker_tuning.py  |    1 -
 tests/providers/amazon/aws/sensors/test_athena.py  |    1 -
 tests/providers/amazon/aws/sensors/test_glacier.py |    1 -
 tests/providers/amazon/aws/sensors/test_glue.py    |    1 -
 .../aws/sensors/test_glue_catalog_partition.py     |    1 -
 .../amazon/aws/sensors/test_sagemaker_endpoint.py  |    1 -
 .../amazon/aws/sensors/test_sagemaker_training.py  |    1 -
 .../amazon/aws/sensors/test_sagemaker_transform.py |    1 -
 .../amazon/aws/sensors/test_sagemaker_tuning.py    |    1 -
 .../amazon/aws/transfers/test_gcs_to_s3.py         |    1 -
 .../amazon/aws/transfers/test_glacier_to_gcs.py    |    4 +-
 .../amazon/aws/transfers/test_mongo_to_s3.py       |    1 -
 .../apache/cassandra/hooks/test_cassandra.py       |    2 +-
 .../apache/druid/operators/test_druid_check.py     |    1 -
 .../apache/hive/transfers/test_s3_to_hive.py       |    1 -
 tests/providers/apache/pig/hooks/test_pig.py       |    1 -
 tests/providers/apache/pig/operators/test_pig.py   |    1 -
 .../apache/spark/hooks/test_spark_jdbc_script.py   |    1 +
 tests/providers/cloudant/hooks/test_cloudant.py    |    1 -
 .../cncf/kubernetes/hooks/test_kubernetes.py       |    3 +-
 .../providers/databricks/hooks/test_databricks.py  |    2 +-
 .../databricks/operators/test_databricks.py        |    1 -
 tests/providers/datadog/sensors/test_datadog.py    |    1 -
 tests/providers/docker/hooks/test_docker.py        |    1 -
 tests/providers/docker/operators/test_docker.py    |    1 -
 .../docker/operators/test_docker_swarm.py          |    2 +-
 tests/providers/exasol/hooks/test_exasol.py        |    1 -
 tests/providers/exasol/operators/test_exasol.py    |    1 -
 tests/providers/facebook/ads/hooks/test_ads.py     |    1 +
 tests/providers/google/ads/hooks/test_ads.py       |    1 +
 tests/providers/google/cloud/hooks/test_automl.py  |    2 +-
 .../google/cloud/hooks/test_bigquery_dts.py        |    2 +-
 .../google/cloud/hooks/test_cloud_build.py         |    1 -
 .../hooks/test_cloud_storage_transfer_service.py   |    2 +-
 tests/providers/google/cloud/hooks/test_compute.py |    1 -
 .../providers/google/cloud/hooks/test_dataflow.py  |    2 +-
 .../providers/google/cloud/hooks/test_dataproc.py  |    2 +-
 .../providers/google/cloud/hooks/test_datastore.py |    3 +-
 tests/providers/google/cloud/hooks/test_dlp.py     |    2 +-
 .../providers/google/cloud/hooks/test_functions.py |    1 -
 tests/providers/google/cloud/hooks/test_kms.py     |    1 -
 .../google/cloud/hooks/test_kubernetes_engine.py   |    2 +-
 .../google/cloud/hooks/test_life_sciences.py       |    1 -
 .../google/cloud/hooks/test_natural_language.py    |    2 +-
 tests/providers/google/cloud/hooks/test_pubsub.py  |    2 +-
 tests/providers/google/cloud/hooks/test_spanner.py |    1 -
 .../google/cloud/hooks/test_speech_to_text.py      |    1 -
 .../google/cloud/hooks/test_stackdriver.py         |    2 +-
 tests/providers/google/cloud/hooks/test_tasks.py   |    2 +-
 .../google/cloud/hooks/test_text_to_speech.py      |    1 -
 .../providers/google/cloud/hooks/test_translate.py |    1 -
 .../google/cloud/hooks/test_video_intelligence.py  |    2 +-
 tests/providers/google/cloud/hooks/test_vision.py  |    2 +-
 .../google/cloud/operators/test_automl.py          |    2 +-
 .../google/cloud/operators/test_bigquery.py        |    2 +-
 .../google/cloud/operators/test_bigquery_dts.py    |    1 -
 .../google/cloud/operators/test_cloud_build.py     |    3 +-
 .../cloud/operators/test_cloud_memorystore.py      |    6 +-
 .../google/cloud/operators/test_cloud_sql.py       |    2 +-
 .../test_cloud_storage_transfer_service.py         |    2 +-
 .../google/cloud/operators/test_dataflow.py        |    3 +-
 .../google/cloud/operators/test_dataproc_system.py |    2 +-
 tests/providers/google/cloud/operators/test_dlp.py |    1 -
 .../google/cloud/operators/test_dlp_system.py      |    2 +-
 .../google/cloud/operators/test_functions.py       |    2 +-
 tests/providers/google/cloud/operators/test_gcs.py |    1 -
 .../cloud/operators/test_kubernetes_engine.py      |    2 +-
 .../google/cloud/operators/test_life_sciences.py   |    1 -
 .../google/cloud/operators/test_mlengine_utils.py  |    3 +-
 .../google/cloud/operators/test_pubsub.py          |    2 +-
 .../google/cloud/operators/test_spanner.py         |    2 +-
 .../google/cloud/operators/test_speech_to_text.py  |    1 -
 .../google/cloud/operators/test_stackdriver.py     |    2 +-
 .../providers/google/cloud/operators/test_tasks.py |    2 +-
 .../google/cloud/operators/test_text_to_speech.py  |    2 +-
 .../google/cloud/operators/test_translate.py       |    1 -
 .../cloud/operators/test_translate_speech.py       |    2 +-
 .../cloud/operators/test_video_intelligence.py     |    2 +-
 .../google/cloud/operators/test_vision.py          |    2 +-
 .../google/cloud/sensors/test_bigquery_dts.py      |    1 -
 .../sensors/test_cloud_storage_transfer_service.py |    2 +-
 .../google/cloud/sensors/test_dataproc.py          |    2 +-
 .../providers/google/cloud/sensors/test_pubsub.py  |    2 +-
 .../google/cloud/transfers/test_adls_to_gcs.py     |    1 -
 .../cloud/transfers/test_azure_fileshare_to_gcs.py |    1 -
 .../test_azure_fileshare_to_gcs_system.py          |    9 +-
 .../cloud/transfers/test_bigquery_to_bigquery.py   |    1 -
 .../google/cloud/transfers/test_bigquery_to_gcs.py |    1 -
 .../cloud/transfers/test_bigquery_to_mysql.py      |    1 -
 .../cloud/transfers/test_cassandra_to_gcs.py       |    1 -
 .../google/cloud/transfers/test_gcs_to_bigquery.py |    1 -
 .../google/cloud/transfers/test_gcs_to_gcs.py      |    1 -
 .../google/cloud/transfers/test_gcs_to_local.py    |    1 -
 .../cloud/transfers/test_gcs_to_local_system.py    |    2 +-
 .../google/cloud/transfers/test_gcs_to_sftp.py     |    1 -
 .../google/cloud/transfers/test_local_to_gcs.py    |    2 +-
 .../google/cloud/transfers/test_mssql_to_gcs.py    |    1 -
 .../google/cloud/transfers/test_mysql_to_gcs.py    |    2 +-
 .../cloud/transfers/test_mysql_to_gcs_system.py    |    4 +-
 .../google/cloud/transfers/test_s3_to_gcs.py       |    1 -
 .../cloud/transfers/test_s3_to_gcs_system.py       |    3 +-
 .../cloud/transfers/test_salesforce_to_gcs.py      |    1 -
 .../transfers/test_salesforce_to_gcs_system.py     |    1 +
 .../google/cloud/transfers/test_sftp_to_gcs.py     |    1 -
 .../google/cloud/transfers/test_sql_to_gcs.py      |    2 +-
 .../cloud/utils/test_credentials_provider.py       |    2 +-
 .../google/firebase/hooks/test_firestore.py        |    1 -
 tests/providers/google/suite/hooks/test_drive.py   |    1 -
 tests/providers/google/suite/hooks/test_sheets.py  |    1 -
 tests/providers/grpc/hooks/test_grpc.py            |    1 -
 tests/providers/grpc/operators/test_grpc.py        |    1 -
 tests/providers/http/hooks/test_http.py            |    2 +-
 tests/providers/http/operators/test_http.py        |    2 +-
 tests/providers/http/sensors/test_http.py          |    2 +-
 .../microsoft/azure/hooks/test_azure_batch.py      |    2 +-
 .../microsoft/azure/hooks/test_azure_cosmos.py     |    2 +-
 .../microsoft/azure/hooks/test_azure_data_lake.py  |    1 -
 .../microsoft/azure/hooks/test_azure_fileshare.py  |    4 +-
 tests/providers/microsoft/azure/hooks/test_wasb.py |    1 -
 .../microsoft/azure/operators/test_adls_list.py    |    1 -
 .../microsoft/azure/operators/test_azure_batch.py  |    1 -
 .../operators/test_azure_container_instances.py    |    2 +-
 .../microsoft/azure/operators/test_azure_cosmos.py |    1 -
 .../azure/operators/test_wasb_delete_blob.py       |    1 -
 .../providers/microsoft/azure/sensors/test_wasb.py |    1 -
 .../azure/transfers/test_azure_blob_to_gcs.py      |    5 +-
 .../microsoft/azure/transfers/test_file_to_wasb.py |    1 -
 .../azure/transfers/test_local_to_adls.py          |    1 -
 .../transfers/test_oracle_to_azure_data_lake.py    |    2 +-
 .../providers/microsoft/mssql/hooks/test_mssql.py  |    1 -
 .../microsoft/mssql/operators/test_mssql.py        |    1 -
 tests/providers/openfaas/hooks/test_openfaas.py    |    2 +-
 tests/providers/oracle/hooks/test_oracle.py        |    2 +-
 tests/providers/oracle/operators/test_oracle.py    |    1 -
 .../oracle/transfers/test_oracle_to_oracle.py      |    1 -
 tests/providers/pagerduty/hooks/test_pagerduty.py  |    1 +
 tests/providers/plexus/hooks/test_plexus.py        |    1 +
 tests/providers/plexus/operators/test_job.py       |    2 +
 .../qubole/operators/test_qubole_check.py          |    2 +-
 tests/providers/samba/hooks/test_samba.py          |    2 +-
 tests/providers/sendgrid/utils/test_emailer.py     |    1 -
 .../singularity/operators/test_singularity.py      |    2 +-
 tests/providers/slack/hooks/test_slack.py          |    2 +-
 tests/providers/slack/operators/test_slack.py      |    1 -
 .../snowflake/operators/test_snowflake.py          |    1 -
 tests/providers/ssh/hooks/test_ssh.py              |    6 +-
 tests/secrets/test_local_filesystem.py             |   55 +-
 tests/secrets/test_secrets.py                      |   61 +-
 tests/secrets/test_secrets_backends.py             |   30 +-
 tests/security/test_kerberos.py                    |   17 +-
 tests/sensors/test_base_sensor.py                  |  162 +--
 tests/sensors/test_bash.py                         |    9 +-
 tests/sensors/test_date_time_sensor.py             |   10 +-
 tests/sensors/test_external_task_sensor.py         |  309 ++--
 tests/sensors/test_filesystem.py                   |   36 +-
 tests/sensors/test_python.py                       |   54 +-
 tests/sensors/test_smart_sensor_operator.py        |   55 +-
 tests/sensors/test_sql_sensor.py                   |   45 +-
 tests/sensors/test_time_sensor.py                  |    4 +-
 tests/sensors/test_timedelta_sensor.py             |    8 +-
 tests/sensors/test_timeout_sensor.py               |   15 +-
 tests/sensors/test_weekday_sensor.py               |   61 +-
 tests/serialization/test_dag_serialization.py      |  472 ++++---
 tests/task/task_runner/test_cgroup_task_runner.py  |    1 -
 .../task/task_runner/test_standard_task_runner.py  |   40 +-
 tests/task/task_runner/test_task_runner.py         |   11 +-
 tests/test_utils/amazon_system_helpers.py          |   38 +-
 tests/test_utils/api_connexion_utils.py            |    2 +-
 tests/test_utils/asserts.py                        |   20 +-
 tests/test_utils/azure_system_helpers.py           |    1 -
 tests/test_utils/db.py                             |   16 +-
 tests/test_utils/gcp_system_helpers.py             |   62 +-
 tests/test_utils/hdfs_utils.py                     |  245 ++--
 tests/test_utils/logging_command_executor.py       |   17 +-
 tests/test_utils/mock_hooks.py                     |    6 +-
 tests/test_utils/mock_operators.py                 |   18 +-
 tests/test_utils/mock_process.py                   |   12 +-
 tests/test_utils/perf/dags/elastic_dag.py          |   27 +-
 tests/test_utils/perf/dags/perf_dag_1.py           |   13 +-
 tests/test_utils/perf/dags/perf_dag_2.py           |   13 +-
 tests/test_utils/perf/perf_kit/memory.py           |    1 +
 tests/test_utils/perf/perf_kit/repeat_and_time.py  |    2 +
 tests/test_utils/perf/perf_kit/sqlalchemy.py       |   75 +-
 .../perf/scheduler_dag_execution_timing.py         |   53 +-
 tests/test_utils/perf/scheduler_ops_metrics.py     |  101 +-
 tests/test_utils/perf/sql_queries.py               |    6 +-
 tests/test_utils/remote_user_api_auth_backend.py   |    6 +-
 .../test_remote_user_api_auth_backend.py           |    4 +-
 tests/ti_deps/deps/fake_models.py                  |    4 -
 .../deps/test_dag_ti_slots_available_dep.py        |    1 -
 tests/ti_deps/deps/test_dag_unpaused_dep.py        |    1 -
 tests/ti_deps/deps/test_dagrun_exists_dep.py       |    1 -
 tests/ti_deps/deps/test_not_in_retry_period_dep.py |   10 +-
 .../deps/test_not_previously_skipped_dep.py        |   16 +-
 tests/ti_deps/deps/test_prev_dagrun_dep.py         |   81 +-
 tests/ti_deps/deps/test_ready_to_reschedule_dep.py |   18 +-
 tests/ti_deps/deps/test_runnable_exec_date_dep.py  |   24 +-
 tests/ti_deps/deps/test_task_concurrency.py        |    1 -
 tests/ti_deps/deps/test_task_not_running_dep.py    |    1 -
 tests/ti_deps/deps/test_trigger_rule_dep.py        |  656 +++++----
 tests/ti_deps/deps/test_valid_state_dep.py         |    1 -
 tests/utils/log/test_file_processor_handler.py     |   14 +-
 tests/utils/log/test_json_formatter.py             |    6 +-
 tests/utils/log/test_log_reader.py                 |   46 +-
 tests/utils/test_cli_util.py                       |   26 +-
 tests/utils/test_compression.py                    |   31 +-
 tests/utils/test_dag_cycle.py                      |   40 +-
 tests/utils/test_dag_processing.py                 |   89 +-
 tests/utils/test_dates.py                          |   25 +-
 tests/utils/test_db.py                             |   70 +-
 tests/utils/test_decorators.py                     |    4 +-
 tests/utils/test_docs.py                           |   14 +-
 tests/utils/test_email.py                          |   50 +-
 tests/utils/test_helpers.py                        |   44 +-
 tests/utils/test_json.py                           |   46 +-
 tests/utils/test_log_handlers.py                   |   30 +-
 tests/utils/test_logging_mixin.py                  |   12 +-
 tests/utils/test_net.py                            |    3 +-
 tests/utils/test_operator_helpers.py               |   24 +-
 tests/utils/test_process_utils.py                  |   15 +-
 tests/utils/test_python_virtualenv.py              |   21 +-
 tests/utils/test_sqlalchemy.py                     |   64 +-
 .../test_task_handler_with_custom_formatter.py     |    5 +-
 tests/utils/test_timezone.py                       |    9 +-
 tests/utils/test_trigger_rule.py                   |    1 -
 tests/utils/test_weight_rule.py                    |    1 -
 .../www/api/experimental/test_dag_runs_endpoint.py |   10 +-
 tests/www/api/experimental/test_endpoints.py       |  166 +--
 .../api/experimental/test_kerberos_endpoints.py    |   16 +-
 tests/www/test_app.py                              |   90 +-
 tests/www/test_security.py                         |   33 +-
 tests/www/test_utils.py                            |   78 +-
 tests/www/test_validators.py                       |    5 +-
 tests/www/test_views.py                            | 1095 ++++++++-------
 1070 files changed, 15413 insertions(+), 15140 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 43564d0..be85738 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -159,8 +159,7 @@ repos:
     rev: 20.8b1
     hooks:
       - id: black
-        files: api_connexion/.*\.py|.*providers.*\.py|^chart/tests/.*\.py
-        exclude: .*kubernetes_pod\.py|.*google/common/hooks/base_google\.py$
+        exclude: .*kubernetes_pod\.py|.*google/common/hooks/base_google\.py$|^airflow/configuration.py$
         args: [--config=./pyproject.toml]
   - repo: https://github.com/pre-commit/pre-commit-hooks
     rev: v3.3.0
@@ -203,7 +202,7 @@ repos:
         name: Run isort to sort imports
         types: [python]
         # To keep consistent with the global isort skip config defined in setup.cfg
-        exclude: ^build/.*$|^.tox/.*$|^venv/.*$|.*api_connexion/.*\.py|.*providers.*\.py
+        exclude: ^build/.*$|^.tox/.*$|^venv/.*$
   - repo: https://github.com/pycqa/pydocstyle
     rev: 5.1.1
     hooks:
diff --git a/airflow/__init__.py b/airflow/__init__.py
index 486bd5f..35e755e 100644
--- a/airflow/__init__.py
+++ b/airflow/__init__.py
@@ -55,15 +55,18 @@ def __getattr__(name):
     # PEP-562: Lazy loaded attributes on python modules
     if name == "DAG":
         from airflow.models.dag import DAG  # pylint: disable=redefined-outer-name
+
         return DAG
     if name == "AirflowException":
         from airflow.exceptions import AirflowException  # pylint: disable=redefined-outer-name
+
         return AirflowException
     raise AttributeError(f"module {__name__} has no attribute {name}")
 
 
 if not settings.LAZY_LOAD_PLUGINS:
     from airflow import plugins_manager
+
     plugins_manager.ensure_plugins_loaded()
 
 
diff --git a/airflow/api/__init__.py b/airflow/api/__init__.py
index 63dbfcf..c869252 100644
--- a/airflow/api/__init__.py
+++ b/airflow/api/__init__.py
@@ -38,8 +38,5 @@ def load_auth():
         log.info("Loaded API auth backend: %s", auth_backend)
         return auth_backend
     except ImportError as err:
-        log.critical(
-            "Cannot import %s for API authentication due to: %s",
-            auth_backend, err
-        )
+        log.critical("Cannot import %s for API authentication due to: %s", auth_backend, err)
         raise AirflowException(err)
diff --git a/airflow/api/auth/backend/basic_auth.py b/airflow/api/auth/backend/basic_auth.py
index bd42708..9b0e320 100644
--- a/airflow/api/auth/backend/basic_auth.py
+++ b/airflow/api/auth/backend/basic_auth.py
@@ -53,13 +53,12 @@ def auth_current_user() -> Optional[User]:
 
 def requires_authentication(function: T):
     """Decorator for functions that require authentication"""
+
     @wraps(function)
     def decorated(*args, **kwargs):
         if auth_current_user() is not None:
             return function(*args, **kwargs)
         else:
-            return Response(
-                "Unauthorized", 401, {"WWW-Authenticate": "Basic"}
-            )
+            return Response("Unauthorized", 401, {"WWW-Authenticate": "Basic"})
 
     return cast(T, decorated)
diff --git a/airflow/api/auth/backend/default.py b/airflow/api/auth/backend/default.py
index 70ae82b..bfa96df 100644
--- a/airflow/api/auth/backend/default.py
+++ b/airflow/api/auth/backend/default.py
@@ -33,6 +33,7 @@ T = TypeVar("T", bound=Callable)  # pylint: disable=invalid-name
 
 def requires_authentication(function: T):
     """Decorator for functions that require authentication"""
+
     @wraps(function)
     def decorated(*args, **kwargs):
         return function(*args, **kwargs)
diff --git a/airflow/api/auth/backend/kerberos_auth.py b/airflow/api/auth/backend/kerberos_auth.py
index 41042de..08a0fec 100644
--- a/airflow/api/auth/backend/kerberos_auth.py
+++ b/airflow/api/auth/backend/kerberos_auth.py
@@ -132,6 +132,7 @@ T = TypeVar("T", bound=Callable)  # pylint: disable=invalid-name
 
 def requires_authentication(function: T):
     """Decorator for functions that require authentication with Kerberos"""
+
     @wraps(function)
     def decorated(*args, **kwargs):
         header = request.headers.get("Authorization")
@@ -144,11 +145,11 @@ def requires_authentication(function: T):
                 response = function(*args, **kwargs)
                 response = make_response(response)
                 if ctx.kerberos_token is not None:
-                    response.headers['WWW-Authenticate'] = ' '.join(['negotiate',
-                                                                     ctx.kerberos_token])
+                    response.headers['WWW-Authenticate'] = ' '.join(['negotiate', ctx.kerberos_token])
 
                 return response
             if return_code != kerberos.AUTH_GSS_CONTINUE:
                 return _forbidden()
         return _unauthorized()
+
     return cast(T, decorated)
diff --git a/airflow/api/client/__init__.py b/airflow/api/client/__init__.py
index 7431dfa..53c8506 100644
--- a/airflow/api/client/__init__.py
+++ b/airflow/api/client/__init__.py
@@ -35,6 +35,6 @@ def get_current_api_client() -> Client:
     api_client = api_module.Client(
         api_base_url=conf.get('cli', 'endpoint_url'),
         auth=getattr(auth_backend, 'CLIENT_AUTH', None),
-        session=session
+        session=session,
     )
     return api_client
diff --git a/airflow/api/client/json_client.py b/airflow/api/client/json_client.py
index c17307f..1ffe7fd 100644
--- a/airflow/api/client/json_client.py
+++ b/airflow/api/client/json_client.py
@@ -45,12 +45,15 @@ class Client(api_client.Client):
     def trigger_dag(self, dag_id, run_id=None, conf=None, execution_date=None):
         endpoint = f'/api/experimental/dags/{dag_id}/dag_runs'
         url = urljoin(self._api_base_url, endpoint)
-        data = self._request(url, method='POST',
-                             json={
-                                 "run_id": run_id,
-                                 "conf": conf,
-                                 "execution_date": execution_date,
-                             })
+        data = self._request(
+            url,
+            method='POST',
+            json={
+                "run_id": run_id,
+                "conf": conf,
+                "execution_date": execution_date,
+            },
+        )
         return data['message']
 
     def delete_dag(self, dag_id):
@@ -74,12 +77,15 @@ class Client(api_client.Client):
     def create_pool(self, name, slots, description):
         endpoint = '/api/experimental/pools'
         url = urljoin(self._api_base_url, endpoint)
-        pool = self._request(url, method='POST',
-                             json={
-                                 'name': name,
-                                 'slots': slots,
-                                 'description': description,
-                             })
+        pool = self._request(
+            url,
+            method='POST',
+            json={
+                'name': name,
+                'slots': slots,
+                'description': description,
+            },
+        )
         return pool['pool'], pool['slots'], pool['description']
 
     def delete_pool(self, name):
diff --git a/airflow/api/client/local_client.py b/airflow/api/client/local_client.py
index 5c08f1a..7ce0d16 100644
--- a/airflow/api/client/local_client.py
+++ b/airflow/api/client/local_client.py
@@ -26,10 +26,9 @@ class Client(api_client.Client):
     """Local API client implementation."""
 
     def trigger_dag(self, dag_id, run_id=None, conf=None, execution_date=None):
-        dag_run = trigger_dag.trigger_dag(dag_id=dag_id,
-                                          run_id=run_id,
-                                          conf=conf,
-                                          execution_date=execution_date)
+        dag_run = trigger_dag.trigger_dag(
+            dag_id=dag_id, run_id=run_id, conf=conf, execution_date=execution_date
+        )
         return f"Created {dag_run}"
 
     def delete_dag(self, dag_id):
diff --git a/airflow/api/common/experimental/__init__.py b/airflow/api/common/experimental/__init__.py
index ebaea5e..b161e04 100644
--- a/airflow/api/common/experimental/__init__.py
+++ b/airflow/api/common/experimental/__init__.py
@@ -29,10 +29,7 @@ def check_and_get_dag(dag_id: str, task_id: Optional[str] = None) -> DagModel:
     if dag_model is None:
         raise DagNotFound(f"Dag id {dag_id} not found in DagModel")
 
-    dagbag = DagBag(
-        dag_folder=dag_model.fileloc,
-        read_dags_from_db=True
-    )
+    dagbag = DagBag(dag_folder=dag_model.fileloc, read_dags_from_db=True)
     dag = dagbag.get_dag(dag_id)
     if not dag:
         error_message = f"Dag id {dag_id} not found"
@@ -47,7 +44,6 @@ def check_and_get_dagrun(dag: DagModel, execution_date: datetime) -> DagRun:
     """Get DagRun object and check that it exists"""
     dagrun = dag.get_dagrun(execution_date=execution_date)
     if not dagrun:
-        error_message = ('Dag Run for date {} not found in dag {}'
-                         .format(execution_date, dag.dag_id))
+        error_message = f'Dag Run for date {execution_date} not found in dag {dag.dag_id}'
         raise DagRunNotFound(error_message)
     return dagrun
diff --git a/airflow/api/common/experimental/delete_dag.py b/airflow/api/common/experimental/delete_dag.py
index ee50c7d..d27c21f 100644
--- a/airflow/api/common/experimental/delete_dag.py
+++ b/airflow/api/common/experimental/delete_dag.py
@@ -60,13 +60,14 @@ def delete_dag(dag_id: str, keep_records_in_log: bool = True, session=None) -> i
     if dag.is_subdag:
         parent_dag_id, task_id = dag_id.rsplit(".", 1)
         for model in TaskFail, models.TaskInstance:
-            count += session.query(model).filter(model.dag_id == parent_dag_id,
-                                                 model.task_id == task_id).delete()
+            count += (
+                session.query(model).filter(model.dag_id == parent_dag_id, model.task_id == task_id).delete()
+            )
 
     # Delete entries in Import Errors table for a deleted DAG
     # This handles the case when the dag_id is changed in the file
-    session.query(models.ImportError).filter(
-        models.ImportError.filename == dag.fileloc
-    ).delete(synchronize_session='fetch')
+    session.query(models.ImportError).filter(models.ImportError.filename == dag.fileloc).delete(
+        synchronize_session='fetch'
+    )
 
     return count
diff --git a/airflow/api/common/experimental/get_dag_runs.py b/airflow/api/common/experimental/get_dag_runs.py
index 8b85c99..cd93967 100644
--- a/airflow/api/common/experimental/get_dag_runs.py
+++ b/airflow/api/common/experimental/get_dag_runs.py
@@ -38,16 +38,16 @@ def get_dag_runs(dag_id: str, state: Optional[str] = None) -> List[Dict[str, Any
     dag_runs = []
     state = state.lower() if state else None
     for run in DagRun.find(dag_id=dag_id, state=state):
-        dag_runs.append({
-            'id': run.id,
-            'run_id': run.run_id,
-            'state': run.state,
-            'dag_id': run.dag_id,
-            'execution_date': run.execution_date.isoformat(),
-            'start_date': ((run.start_date or '') and
-                           run.start_date.isoformat()),
-            'dag_run_url': url_for('Airflow.graph', dag_id=run.dag_id,
-                                   execution_date=run.execution_date)
-        })
+        dag_runs.append(
+            {
+                'id': run.id,
+                'run_id': run.run_id,
+                'state': run.state,
+                'dag_id': run.dag_id,
+                'execution_date': run.execution_date.isoformat(),
+                'start_date': ((run.start_date or '') and run.start_date.isoformat()),
+                'dag_run_url': url_for('Airflow.graph', dag_id=run.dag_id, execution_date=run.execution_date),
+            }
+        )
 
     return dag_runs
diff --git a/airflow/api/common/experimental/get_lineage.py b/airflow/api/common/experimental/get_lineage.py
index 2d0e97d..c6857a6 100644
--- a/airflow/api/common/experimental/get_lineage.py
+++ b/airflow/api/common/experimental/get_lineage.py
@@ -31,10 +31,12 @@ def get_lineage(dag_id: str, execution_date: datetime.datetime, session=None) ->
     dag = check_and_get_dag(dag_id)
     check_and_get_dagrun(dag, execution_date)
 
-    inlets: List[XCom] = XCom.get_many(dag_ids=dag_id, execution_date=execution_date,
-                                       key=PIPELINE_INLETS, session=session).all()
-    outlets: List[XCom] = XCom.get_many(dag_ids=dag_id, execution_date=execution_date,
-                                        key=PIPELINE_OUTLETS, session=session).all()
+    inlets: List[XCom] = XCom.get_many(
+        dag_ids=dag_id, execution_date=execution_date, key=PIPELINE_INLETS, session=session
+    ).all()
+    outlets: List[XCom] = XCom.get_many(
+        dag_ids=dag_id, execution_date=execution_date, key=PIPELINE_OUTLETS, session=session
+    ).all()
 
     lineage: Dict[str, Dict[str, Any]] = {}
     for meta in inlets:
diff --git a/airflow/api/common/experimental/get_task_instance.py b/airflow/api/common/experimental/get_task_instance.py
index 0b1dc8e..07f41cb 100644
--- a/airflow/api/common/experimental/get_task_instance.py
+++ b/airflow/api/common/experimental/get_task_instance.py
@@ -31,8 +31,7 @@ def get_task_instance(dag_id: str, task_id: str, execution_date: datetime) -> Ta
     # Get task instance object and check that it exists
     task_instance = dagrun.get_task_instance(task_id)
     if not task_instance:
-        error_message = ('Task {} instance for date {} not found'
-                         .format(task_id, execution_date))
+        error_message = f'Task {task_id} instance for date {execution_date} not found'
         raise TaskInstanceNotFound(error_message)
 
     return task_instance
diff --git a/airflow/api/common/experimental/mark_tasks.py b/airflow/api/common/experimental/mark_tasks.py
index 3f1cb83..852038d 100644
--- a/airflow/api/common/experimental/mark_tasks.py
+++ b/airflow/api/common/experimental/mark_tasks.py
@@ -69,7 +69,7 @@ def set_state(
     past: bool = False,
     state: str = State.SUCCESS,
     commit: bool = False,
-    session=None
+    session=None,
 ):  # pylint: disable=too-many-arguments,too-many-locals
     """
     Set the state of a task instance and if needed its relatives. Can set state
@@ -137,33 +137,24 @@ def set_state(
 # Flake and pylint disagree about correct indents here
 def all_subdag_tasks_query(sub_dag_run_ids, session, state, confirmed_dates):  # noqa: E123
     """Get *all* tasks of the sub dags"""
-    qry_sub_dag = session.query(TaskInstance). \
-        filter(
-        TaskInstance.dag_id.in_(sub_dag_run_ids),
-        TaskInstance.execution_date.in_(confirmed_dates)
-    ). \
-        filter(
-        or_(
-            TaskInstance.state.is_(None),
-            TaskInstance.state != state
-        )
+    qry_sub_dag = (
+        session.query(TaskInstance)
+        .filter(TaskInstance.dag_id.in_(sub_dag_run_ids), TaskInstance.execution_date.in_(confirmed_dates))
+        .filter(or_(TaskInstance.state.is_(None), TaskInstance.state != state))
     )  # noqa: E123
     return qry_sub_dag
 
 
 def get_all_dag_task_query(dag, session, state, task_ids, confirmed_dates):
     """Get all tasks of the main dag that will be affected by a state change"""
-    qry_dag = session.query(TaskInstance). \
-        filter(
-        TaskInstance.dag_id == dag.dag_id,
-        TaskInstance.execution_date.in_(confirmed_dates),
-        TaskInstance.task_id.in_(task_ids)  # noqa: E123
-    ). \
-        filter(
-        or_(
-            TaskInstance.state.is_(None),
-            TaskInstance.state != state
+    qry_dag = (
+        session.query(TaskInstance)
+        .filter(
+            TaskInstance.dag_id == dag.dag_id,
+            TaskInstance.execution_date.in_(confirmed_dates),
+            TaskInstance.task_id.in_(task_ids),  # noqa: E123
         )
+        .filter(or_(TaskInstance.state.is_(None), TaskInstance.state != state))
     )
     return qry_dag
 
@@ -186,10 +177,12 @@ def get_subdag_runs(dag, session, state, task_ids, commit, confirmed_dates):
                 # this works as a kind of integrity check
                 # it creates missing dag runs for subdag operators,
                 # maybe this should be moved to dagrun.verify_integrity
-                dag_runs = _create_dagruns(current_task.subdag,
-                                           execution_dates=confirmed_dates,
-                                           state=State.RUNNING,
-                                           run_type=DagRunType.BACKFILL_JOB)
+                dag_runs = _create_dagruns(
+                    current_task.subdag,
+                    execution_dates=confirmed_dates,
+                    state=State.RUNNING,
+                    run_type=DagRunType.BACKFILL_JOB,
+                )
 
                 verify_dagruns(dag_runs, commit, state, session, current_task)
 
@@ -279,10 +272,9 @@ def _set_dag_run_state(dag_id, execution_date, state, session=None):
     :param state: target state
     :param session: database session
     """
-    dag_run = session.query(DagRun).filter(
-        DagRun.dag_id == dag_id,
-        DagRun.execution_date == execution_date
-    ).one()
+    dag_run = (
+        session.query(DagRun).filter(DagRun.dag_id == dag_id, DagRun.execution_date == execution_date).one()
+    )
     dag_run.state = state
     if state == State.RUNNING:
         dag_run.start_date = timezone.utcnow()
@@ -316,8 +308,9 @@ def set_dag_run_state_to_success(dag, execution_date, commit=False, session=None
     # Mark all task instances of the dag run to success.
     for task in dag.tasks:
         task.dag = dag
-    return set_state(tasks=dag.tasks, execution_date=execution_date,
-                     state=State.SUCCESS, commit=commit, session=session)
+    return set_state(
+        tasks=dag.tasks, execution_date=execution_date, state=State.SUCCESS, commit=commit, session=session
+    )
 
 
 @provide_session
@@ -343,10 +336,15 @@ def set_dag_run_state_to_failed(dag, execution_date, commit=False, session=None)
 
     # Mark only RUNNING task instances.
     task_ids = [task.task_id for task in dag.tasks]
-    tis = session.query(TaskInstance).filter(
-        TaskInstance.dag_id == dag.dag_id,
-        TaskInstance.execution_date == execution_date,
-        TaskInstance.task_id.in_(task_ids)).filter(TaskInstance.state == State.RUNNING)
+    tis = (
+        session.query(TaskInstance)
+        .filter(
+            TaskInstance.dag_id == dag.dag_id,
+            TaskInstance.execution_date == execution_date,
+            TaskInstance.task_id.in_(task_ids),
+        )
+        .filter(TaskInstance.state == State.RUNNING)
+    )
     task_ids_of_running_tis = [task_instance.task_id for task_instance in tis]
 
     tasks = []
@@ -356,8 +354,9 @@ def set_dag_run_state_to_failed(dag, execution_date, commit=False, session=None)
         task.dag = dag
         tasks.append(task)
 
-    return set_state(tasks=tasks, execution_date=execution_date,
-                     state=State.FAILED, commit=commit, session=session)
+    return set_state(
+        tasks=tasks, execution_date=execution_date, state=State.FAILED, commit=commit, session=session
+    )
 
 
 @provide_session
diff --git a/airflow/api/common/experimental/trigger_dag.py b/airflow/api/common/experimental/trigger_dag.py
index e1d3cee..519079e 100644
--- a/airflow/api/common/experimental/trigger_dag.py
+++ b/airflow/api/common/experimental/trigger_dag.py
@@ -63,16 +63,15 @@ def _trigger_dag(
         if min_dag_start_date and execution_date < min_dag_start_date:
             raise ValueError(
                 "The execution_date [{}] should be >= start_date [{}] from DAG's default_args".format(
-                    execution_date.isoformat(),
-                    min_dag_start_date.isoformat()))
+                    execution_date.isoformat(), min_dag_start_date.isoformat()
+                )
+            )
 
     run_id = run_id or DagRun.generate_run_id(DagRunType.MANUAL, execution_date)
     dag_run = DagRun.find(dag_id=dag_id, run_id=run_id)
 
     if dag_run:
-        raise DagRunAlreadyExists(
-            f"Run id {run_id} already exists for dag id {dag_id}"
-        )
+        raise DagRunAlreadyExists(f"Run id {run_id} already exists for dag id {dag_id}")
 
     run_conf = None
     if conf:
@@ -95,11 +94,11 @@ def _trigger_dag(
 
 
 def trigger_dag(
-        dag_id: str,
-        run_id: Optional[str] = None,
-        conf: Optional[Union[dict, str]] = None,
-        execution_date: Optional[datetime] = None,
-        replace_microseconds: bool = True,
+    dag_id: str,
+    run_id: Optional[str] = None,
+    conf: Optional[Union[dict, str]] = None,
+    execution_date: Optional[datetime] = None,
+    replace_microseconds: bool = True,
 ) -> Optional[DagRun]:
     """Triggers execution of DAG specified by dag_id
 
diff --git a/airflow/api_connexion/endpoints/dag_run_endpoint.py b/airflow/api_connexion/endpoints/dag_run_endpoint.py
index bac2ad2..d6a1555 100644
--- a/airflow/api_connexion/endpoints/dag_run_endpoint.py
+++ b/airflow/api_connexion/endpoints/dag_run_endpoint.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 from connexion import NoContent
-from flask import g, request, current_app
+from flask import current_app, g, request
 from marshmallow import ValidationError
 
 from airflow.api_connexion import security
diff --git a/airflow/api_connexion/endpoints/dag_source_endpoint.py b/airflow/api_connexion/endpoints/dag_source_endpoint.py
index b023ae6..0281b22 100644
--- a/airflow/api_connexion/endpoints/dag_source_endpoint.py
+++ b/airflow/api_connexion/endpoints/dag_source_endpoint.py
@@ -25,7 +25,6 @@ from airflow.api_connexion.schemas.dag_source_schema import dag_source_schema
 from airflow.models.dagcode import DagCode
 from airflow.security import permissions
 
-
 log = logging.getLogger(__name__)
 
 
diff --git a/airflow/api_connexion/endpoints/task_instance_endpoint.py b/airflow/api_connexion/endpoints/task_instance_endpoint.py
index 37e9b02..b84c59a 100644
--- a/airflow/api_connexion/endpoints/task_instance_endpoint.py
+++ b/airflow/api_connexion/endpoints/task_instance_endpoint.py
@@ -16,31 +16,31 @@
 # under the License.
 from typing import Any, List, Optional, Tuple
 
-from flask import request, current_app
+from flask import current_app, request
 from marshmallow import ValidationError
 from sqlalchemy import and_, func
 
 from airflow.api.common.experimental.mark_tasks import set_state
 from airflow.api_connexion import security
-from airflow.api_connexion.exceptions import NotFound, BadRequest
+from airflow.api_connexion.exceptions import BadRequest, NotFound
 from airflow.api_connexion.parameters import format_datetime, format_parameters
 from airflow.api_connexion.schemas.task_instance_schema import (
-    clear_task_instance_form,
     TaskInstanceCollection,
-    task_instance_collection_schema,
-    task_instance_schema,
-    task_instance_batch_form,
-    task_instance_reference_collection_schema,
     TaskInstanceReferenceCollection,
+    clear_task_instance_form,
     set_task_instance_state_form,
+    task_instance_batch_form,
+    task_instance_collection_schema,
+    task_instance_reference_collection_schema,
+    task_instance_schema,
 )
 from airflow.exceptions import SerializedDagNotFound
-from airflow.models.dagrun import DagRun as DR
-from airflow.models.taskinstance import clear_task_instances, TaskInstance as TI
 from airflow.models import SlaMiss
+from airflow.models.dagrun import DagRun as DR
+from airflow.models.taskinstance import TaskInstance as TI, clear_task_instances
 from airflow.security import permissions
-from airflow.utils.state import State
 from airflow.utils.session import provide_session
+from airflow.utils.state import State
 
 
 @security.requires_access(
diff --git a/airflow/api_connexion/schemas/sla_miss_schema.py b/airflow/api_connexion/schemas/sla_miss_schema.py
index 341b8aa..9413e37 100644
--- a/airflow/api_connexion/schemas/sla_miss_schema.py
+++ b/airflow/api_connexion/schemas/sla_miss_schema.py
@@ -16,6 +16,7 @@
 # under the License.
 
 from marshmallow_sqlalchemy import SQLAlchemySchema, auto_field
+
 from airflow.models import SlaMiss
 
 
diff --git a/airflow/api_connexion/schemas/task_instance_schema.py b/airflow/api_connexion/schemas/task_instance_schema.py
index e825665..27bf4a6 100644
--- a/airflow/api_connexion/schemas/task_instance_schema.py
+++ b/airflow/api_connexion/schemas/task_instance_schema.py
@@ -15,14 +15,14 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from typing import List, NamedTuple, Tuple, Optional
+from typing import List, NamedTuple, Optional, Tuple
 
-from marshmallow import Schema, fields, ValidationError, validates_schema, validate
+from marshmallow import Schema, ValidationError, fields, validate, validates_schema
 from marshmallow.utils import get_value
 
 from airflow.api_connexion.schemas.enum_schemas import TaskInstanceStateField
 from airflow.api_connexion.schemas.sla_miss_schema import SlaMissSchema
-from airflow.models import TaskInstance, SlaMiss
+from airflow.models import SlaMiss, TaskInstance
 from airflow.utils.state import State
 
 
diff --git a/airflow/cli/cli_parser.py b/airflow/cli/cli_parser.py
index 84f1349..c9dbfec 100644
--- a/airflow/cli/cli_parser.py
+++ b/airflow/cli/cli_parser.py
@@ -92,8 +92,18 @@ class Arg:
     """Class to keep information about command line argument"""
 
     # pylint: disable=redefined-builtin,unused-argument
-    def __init__(self, flags=_UNSET, help=_UNSET, action=_UNSET, default=_UNSET, nargs=_UNSET, type=_UNSET,
-                 choices=_UNSET, required=_UNSET, metavar=_UNSET):
+    def __init__(
+        self,
+        flags=_UNSET,
+        help=_UNSET,
+        action=_UNSET,
+        default=_UNSET,
+        nargs=_UNSET,
+        type=_UNSET,
+        choices=_UNSET,
+        required=_UNSET,
+        metavar=_UNSET,
+    ):
         self.flags = flags
         self.kwargs = {}
         for k, v in locals().items():
@@ -103,6 +113,7 @@ class Arg:
                 continue
 
             self.kwargs[k] = v
+
     # pylint: enable=redefined-builtin,unused-argument
 
     def add_to_parser(self, parser: argparse.ArgumentParser):
@@ -122,65 +133,47 @@ def positive_int(value):
 
 
 # Shared
-ARG_DAG_ID = Arg(
-    ("dag_id",),
-    help="The id of the dag")
-ARG_TASK_ID = Arg(
-    ("task_id",),
-    help="The id of the task")
-ARG_EXECUTION_DATE = Arg(
-    ("execution_date",),
-    help="The execution date of the DAG",
-    type=parsedate)
+ARG_DAG_ID = Arg(("dag_id",), help="The id of the dag")
+ARG_TASK_ID = Arg(("task_id",), help="The id of the task")
+ARG_EXECUTION_DATE = Arg(("execution_date",), help="The execution date of the DAG", type=parsedate)
 ARG_TASK_REGEX = Arg(
-    ("-t", "--task-regex"),
-    help="The regex to filter specific task_ids to backfill (optional)")
+    ("-t", "--task-regex"), help="The regex to filter specific task_ids to backfill (optional)"
+)
 ARG_SUBDIR = Arg(
     ("-S", "--subdir"),
     help=(
         "File location or directory from which to look for the dag. "
         "Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the "
-        "value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg' "),
-    default='[AIRFLOW_HOME]/dags' if BUILD_DOCS else settings.DAGS_FOLDER)
-ARG_START_DATE = Arg(
-    ("-s", "--start-date"),
-    help="Override start_date YYYY-MM-DD",
-    type=parsedate)
-ARG_END_DATE = Arg(
-    ("-e", "--end-date"),
-    help="Override end_date YYYY-MM-DD",
-    type=parsedate)
+        "value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg' "
+    ),
+    default='[AIRFLOW_HOME]/dags' if BUILD_DOCS else settings.DAGS_FOLDER,
+)
+ARG_START_DATE = Arg(("-s", "--start-date"), help="Override start_date YYYY-MM-DD", type=parsedate)
+ARG_END_DATE = Arg(("-e", "--end-date"), help="Override end_date YYYY-MM-DD", type=parsedate)
 ARG_OUTPUT_PATH = Arg(
-    ("-o", "--output-path",),
+    (
+        "-o",
+        "--output-path",
+    ),
     help="The output for generated yaml files",
     type=str,
-    default="[CWD]" if BUILD_DOCS else os.getcwd())
+    default="[CWD]" if BUILD_DOCS else os.getcwd(),
+)
 ARG_DRY_RUN = Arg(
     ("-n", "--dry-run"),
     help="Perform a dry run for each task. Only renders Template Fields for each task, nothing else",
-    action="store_true")
-ARG_PID = Arg(
-    ("--pid",),
-    help="PID file location",
-    nargs='?')
+    action="store_true",
+)
+ARG_PID = Arg(("--pid",), help="PID file location", nargs='?')
 ARG_DAEMON = Arg(
-    ("-D", "--daemon"),
-    help="Daemonize instead of running in the foreground",
-    action="store_true")
-ARG_STDERR = Arg(
-    ("--stderr",),
-    help="Redirect stderr to this file")
-ARG_STDOUT = Arg(
-    ("--stdout",),
-    help="Redirect stdout to this file")
-ARG_LOG_FILE = Arg(
-    ("-l", "--log-file"),
-    help="Location of the log file")
+    ("-D", "--daemon"), help="Daemonize instead of running in the foreground", action="store_true"
+)
+ARG_STDERR = Arg(("--stderr",), help="Redirect stderr to this file")
+ARG_STDOUT = Arg(("--stdout",), help="Redirect stdout to this file")
+ARG_LOG_FILE = Arg(("-l", "--log-file"), help="Location of the log file")
 ARG_YES = Arg(
-    ("-y", "--yes"),
-    help="Do not prompt to confirm reset. Use with care!",
-    action="store_true",
-    default=False)
+    ("-y", "--yes"), help="Do not prompt to confirm reset. Use with care!", action="store_true", default=False
+)
 ARG_OUTPUT = Arg(
     ("--output",),
     help=(
@@ -189,238 +182,181 @@ ARG_OUTPUT = Arg(
     ),
     metavar="FORMAT",
     choices=tabulate_formats,
-    default="plain")
+    default="plain",
+)
 ARG_COLOR = Arg(
     ('--color',),
     help="Do emit colored output (default: auto)",
     choices={ColorMode.ON, ColorMode.OFF, ColorMode.AUTO},
-    default=ColorMode.AUTO)
+    default=ColorMode.AUTO,
+)
 
 # list_dag_runs
-ARG_DAG_ID_OPT = Arg(
-    ("-d", "--dag-id"),
-    help="The id of the dag"
-)
+ARG_DAG_ID_OPT = Arg(("-d", "--dag-id"), help="The id of the dag")
 ARG_NO_BACKFILL = Arg(
-    ("--no-backfill",),
-    help="filter all the backfill dagruns given the dag id",
-    action="store_true")
-ARG_STATE = Arg(
-    ("--state",),
-    help="Only list the dag runs corresponding to the state")
+    ("--no-backfill",), help="filter all the backfill dagruns given the dag id", action="store_true"
+)
+ARG_STATE = Arg(("--state",), help="Only list the dag runs corresponding to the state")
 
 # list_jobs
-ARG_LIMIT = Arg(
-    ("--limit",),
-    help="Return a limited number of records")
+ARG_LIMIT = Arg(("--limit",), help="Return a limited number of records")
 
 # next_execution
 ARG_NUM_EXECUTIONS = Arg(
     ("-n", "--num-executions"),
     default=1,
     type=positive_int,
-    help="The number of next execution datetimes to show")
+    help="The number of next execution datetimes to show",
+)
 
 # backfill
 ARG_MARK_SUCCESS = Arg(
-    ("-m", "--mark-success"),
-    help="Mark jobs as succeeded without running them",
-    action="store_true")
-ARG_VERBOSE = Arg(
-    ("-v", "--verbose"),
-    help="Make logging output more verbose",
-    action="store_true")
-ARG_LOCAL = Arg(
-    ("-l", "--local"),
-    help="Run the task using the LocalExecutor",
-    action="store_true")
+    ("-m", "--mark-success"), help="Mark jobs as succeeded without running them", action="store_true"
+)
+ARG_VERBOSE = Arg(("-v", "--verbose"), help="Make logging output more verbose", action="store_true")
+ARG_LOCAL = Arg(("-l", "--local"), help="Run the task using the LocalExecutor", action="store_true")
 ARG_DONOT_PICKLE = Arg(
     ("-x", "--donot-pickle"),
     help=(
         "Do not attempt to pickle the DAG object to send over "
         "to the workers, just tell the workers to run their version "
-        "of the code"),
-    action="store_true")
+        "of the code"
+    ),
+    action="store_true",
+)
 ARG_BF_IGNORE_DEPENDENCIES = Arg(
     ("-i", "--ignore-dependencies"),
     help=(
         "Skip upstream tasks, run only the tasks "
         "matching the regexp. Only works in conjunction "
-        "with task_regex"),
-    action="store_true")
+        "with task_regex"
+    ),
+    action="store_true",
+)
 ARG_BF_IGNORE_FIRST_DEPENDS_ON_PAST = Arg(
     ("-I", "--ignore-first-depends-on-past"),
     help=(
         "Ignores depends_on_past dependencies for the first "
         "set of tasks only (subsequent executions in the backfill "
-        "DO respect depends_on_past)"),
-    action="store_true")
+        "DO respect depends_on_past)"
+    ),
+    action="store_true",
+)
 ARG_POOL = Arg(("--pool",), "Resource pool to use")
 ARG_DELAY_ON_LIMIT = Arg(
     ("--delay-on-limit",),
-    help=("Amount of time in seconds to wait when the limit "
-          "on maximum active dag runs (max_active_runs) has "
-          "been reached before trying to execute a dag run "
-          "again"),
+    help=(
+        "Amount of time in seconds to wait when the limit "
+        "on maximum active dag runs (max_active_runs) has "
+        "been reached before trying to execute a dag run "
+        "again"
+    ),
     type=float,
-    default=1.0)
+    default=1.0,
+)
 ARG_RESET_DAG_RUN = Arg(
     ("--reset-dagruns",),
     help=(
         "if set, the backfill will delete existing "
         "backfill-related DAG runs and start "
-        "anew with fresh, running DAG runs"),
-    action="store_true")
+        "anew with fresh, running DAG runs"
+    ),
+    action="store_true",
+)
 ARG_RERUN_FAILED_TASKS = Arg(
     ("--rerun-failed-tasks",),
     help=(
         "if set, the backfill will auto-rerun "
         "all the failed tasks for the backfill date range "
-        "instead of throwing exceptions"),
-    action="store_true")
+        "instead of throwing exceptions"
+    ),
+    action="store_true",
+)
 ARG_RUN_BACKWARDS = Arg(
-    ("-B", "--run-backwards",),
+    (
+        "-B",
+        "--run-backwards",
+    ),
     help=(
         "if set, the backfill will run tasks from the most "
         "recent day first.  if there are tasks that depend_on_past "
-        "this option will throw an exception"),
-    action="store_true")
+        "this option will throw an exception"
+    ),
+    action="store_true",
+)
 # test_dag
 ARG_SHOW_DAGRUN = Arg(
-    ("--show-dagrun", ),
+    ("--show-dagrun",),
     help=(
         "After completing the backfill, shows the diagram for current DAG Run.\n"
         "\n"
-        "The diagram is in DOT language\n"),
-    action='store_true')
+        "The diagram is in DOT language\n"
+    ),
+    action='store_true',
+)
 ARG_IMGCAT_DAGRUN = Arg(
-    ("--imgcat-dagrun", ),
+    ("--imgcat-dagrun",),
     help=(
         "After completing the dag run, prints a diagram on the screen for the "
         "current DAG Run using the imgcat tool.\n"
     ),
-    action='store_true')
+    action='store_true',
+)
 ARG_SAVE_DAGRUN = Arg(
-    ("--save-dagrun", ),
+    ("--save-dagrun",),
     help=(
-        "After completing the backfill, saves the diagram for current DAG Run to the indicated file.\n"
-        "\n"
-    ))
+        "After completing the backfill, saves the diagram for current DAG Run to the indicated file.\n" "\n"
+    ),
+)
 
 # list_tasks
-ARG_TREE = Arg(
-    ("-t", "--tree"),
-    help="Tree view",
-    action="store_true")
+ARG_TREE = Arg(("-t", "--tree"), help="Tree view", action="store_true")
 
 # clear
-ARG_UPSTREAM = Arg(
-    ("-u", "--upstream"),
-    help="Include upstream tasks",
-    action="store_true")
-ARG_ONLY_FAILED = Arg(
-    ("-f", "--only-failed"),
-    help="Only failed jobs",
-    action="store_true")
-ARG_ONLY_RUNNING = Arg(
-    ("-r", "--only-running"),
-    help="Only running jobs",
-    action="store_true")
-ARG_DOWNSTREAM = Arg(
-    ("-d", "--downstream"),
-    help="Include downstream tasks",
-    action="store_true")
-ARG_EXCLUDE_SUBDAGS = Arg(
-    ("-x", "--exclude-subdags"),
-    help="Exclude subdags",
-    action="store_true")
+ARG_UPSTREAM = Arg(("-u", "--upstream"), help="Include upstream tasks", action="store_true")
+ARG_ONLY_FAILED = Arg(("-f", "--only-failed"), help="Only failed jobs", action="store_true")
+ARG_ONLY_RUNNING = Arg(("-r", "--only-running"), help="Only running jobs", action="store_true")
+ARG_DOWNSTREAM = Arg(("-d", "--downstream"), help="Include downstream tasks", action="store_true")
+ARG_EXCLUDE_SUBDAGS = Arg(("-x", "--exclude-subdags"), help="Exclude subdags", action="store_true")
 ARG_EXCLUDE_PARENTDAG = Arg(
     ("-X", "--exclude-parentdag"),
     help="Exclude ParentDAGS if the task cleared is a part of a SubDAG",
-    action="store_true")
+    action="store_true",
+)
 ARG_DAG_REGEX = Arg(
-    ("-R", "--dag-regex"),
-    help="Search dag_id as regex instead of exact string",
-    action="store_true")
+    ("-R", "--dag-regex"), help="Search dag_id as regex instead of exact string", action="store_true"
+)
 
 # show_dag
-ARG_SAVE = Arg(
-    ("-s", "--save"),
-    help="Saves the result to the indicated file.")
+ARG_SAVE = Arg(("-s", "--save"), help="Saves the result to the indicated file.")
 
-ARG_IMGCAT = Arg(
-    ("--imgcat", ),
-    help=(
-        "Displays graph using the imgcat tool."),
-    action='store_true')
+ARG_IMGCAT = Arg(("--imgcat",), help=("Displays graph using the imgcat tool."), action='store_true')
 
 # trigger_dag
-ARG_RUN_ID = Arg(
-    ("-r", "--run-id"),
-    help="Helps to identify this run")
-ARG_CONF = Arg(
-    ('-c', '--conf'),
-    help="JSON string that gets pickled into the DagRun's conf attribute")
-ARG_EXEC_DATE = Arg(
-    ("-e", "--exec-date"),
-    help="The execution date of the DAG",
-    type=parsedate)
+ARG_RUN_ID = Arg(("-r", "--run-id"), help="Helps to identify this run")
+ARG_CONF = Arg(('-c', '--conf'), help="JSON string that gets pickled into the DagRun's conf attribute")
+ARG_EXEC_DATE = Arg(("-e", "--exec-date"), help="The execution date of the DAG", type=parsedate)
 
 # pool
-ARG_POOL_NAME = Arg(
-    ("pool",),
-    metavar='NAME',
-    help="Pool name")
-ARG_POOL_SLOTS = Arg(
-    ("slots",),
-    type=int,
-    help="Pool slots")
-ARG_POOL_DESCRIPTION = Arg(
-    ("description",),
-    help="Pool description")
-ARG_POOL_IMPORT = Arg(
-    ("file",),
-    metavar="FILEPATH",
-    help="Import pools from JSON file")
-ARG_POOL_EXPORT = Arg(
-    ("file",),
-    metavar="FILEPATH",
-    help="Export all pools to JSON file")
+ARG_POOL_NAME = Arg(("pool",), metavar='NAME', help="Pool name")
+ARG_POOL_SLOTS = Arg(("slots",), type=int, help="Pool slots")
+ARG_POOL_DESCRIPTION = Arg(("description",), help="Pool description")
+ARG_POOL_IMPORT = Arg(("file",), metavar="FILEPATH", help="Import pools from JSON file")
+ARG_POOL_EXPORT = Arg(("file",), metavar="FILEPATH", help="Export all pools to JSON file")
 
 # variables
-ARG_VAR = Arg(
-    ("key",),
-    help="Variable key")
-ARG_VAR_VALUE = Arg(
-    ("value",),
-    metavar='VALUE',
-    help="Variable value")
+ARG_VAR = Arg(("key",), help="Variable key")
+ARG_VAR_VALUE = Arg(("value",), metavar='VALUE', help="Variable value")
 ARG_DEFAULT = Arg(
-    ("-d", "--default"),
-    metavar="VAL",
-    default=None,
-    help="Default value returned if variable does not exist")
-ARG_JSON = Arg(
-    ("-j", "--json"),
-    help="Deserialize JSON variable",
-    action="store_true")
-ARG_VAR_IMPORT = Arg(
-    ("file",),
-    help="Import variables from JSON file")
-ARG_VAR_EXPORT = Arg(
-    ("file",),
-    help="Export all variables to JSON file")
+    ("-d", "--default"), metavar="VAL", default=None, help="Default value returned if variable does not exist"
+)
+ARG_JSON = Arg(("-j", "--json"), help="Deserialize JSON variable", action="store_true")
+ARG_VAR_IMPORT = Arg(("file",), help="Import variables from JSON file")
+ARG_VAR_EXPORT = Arg(("file",), help="Export all variables to JSON file")
 
 # kerberos
-ARG_PRINCIPAL = Arg(
-    ("principal",),
-    help="kerberos principal",
-    nargs='?')
-ARG_KEYTAB = Arg(
-    ("-k", "--keytab"),
-    help="keytab",
-    nargs='?',
-    default=conf.get('kerberos', 'keytab'))
+ARG_PRINCIPAL = Arg(("principal",), help="kerberos principal", nargs='?')
+ARG_KEYTAB = Arg(("-k", "--keytab"), help="keytab", nargs='?', default=conf.get('kerberos', 'keytab'))
 # run
 # TODO(aoen): "force" is a poor choice of name here since it implies it overrides
 # all dependencies (not just past success), e.g. the ignore_depends_on_past
@@ -429,18 +365,20 @@ ARG_KEYTAB = Arg(
 # instead.
 ARG_INTERACTIVE = Arg(
     ('-N', '--interactive'),
-    help='Do not capture standard output and error streams '
-         '(useful for interactive debugging)',
-    action='store_true')
+    help='Do not capture standard output and error streams ' '(useful for interactive debugging)',
+    action='store_true',
+)
 ARG_FORCE = Arg(
     ("-f", "--force"),
     help="Ignore previous task instance state, rerun regardless if task already succeeded/failed",
-    action="store_true")
+    action="store_true",
+)
 ARG_RAW = Arg(("-r", "--raw"), argparse.SUPPRESS, "store_true")
 ARG_IGNORE_ALL_DEPENDENCIES = Arg(
     ("-A", "--ignore-all-dependencies"),
     help="Ignores all non-critical dependencies, including ignore_ti_state and ignore_task_deps",
-    action="store_true")
+    action="store_true",
+)
 # TODO(aoen): ignore_dependencies is a poor choice of name here because it is too
 # vague (e.g. a task being in the appropriate state to be run is also a dependency
 # but is not ignored by this flag), the name 'ignore_task_dependencies' is
@@ -449,24 +387,19 @@ ARG_IGNORE_ALL_DEPENDENCIES = Arg(
 ARG_IGNORE_DEPENDENCIES = Arg(
     ("-i", "--ignore-dependencies"),
     help="Ignore task-specific dependencies, e.g. upstream, depends_on_past, and retry delay dependencies",
-    action="store_true")
+    action="store_true",
+)
 ARG_IGNORE_DEPENDS_ON_PAST = Arg(
     ("-I", "--ignore-depends-on-past"),
     help="Ignore depends_on_past dependencies (but respect upstream dependencies)",
-    action="store_true")
+    action="store_true",
+)
 ARG_SHIP_DAG = Arg(
-    ("--ship-dag",),
-    help="Pickles (serializes) the DAG and ships it to the worker",
-    action="store_true")
-ARG_PICKLE = Arg(
-    ("-p", "--pickle"),
-    help="Serialized pickle object of the entire dag (used internally)")
-ARG_JOB_ID = Arg(
-    ("-j", "--job-id"),
-    help=argparse.SUPPRESS)
-ARG_CFG_PATH = Arg(
-    ("--cfg-path",),
-    help="Path to config file to use instead of airflow.cfg")
+    ("--ship-dag",), help="Pickles (serializes) the DAG and ships it to the worker", action="store_true"
+)
+ARG_PICKLE = Arg(("-p", "--pickle"), help="Serialized pickle object of the entire dag (used internally)")
+ARG_JOB_ID = Arg(("-j", "--job-id"), help=argparse.SUPPRESS)
+ARG_CFG_PATH = Arg(("--cfg-path",), help="Path to config file to use instead of airflow.cfg")
 ARG_MIGRATION_TIMEOUT = Arg(
     ("-t", "--migration-wait-timeout"),
     help="timeout to wait for db to migrate ",
@@ -479,220 +412,194 @@ ARG_PORT = Arg(
     ("-p", "--port"),
     default=conf.get('webserver', 'WEB_SERVER_PORT'),
     type=int,
-    help="The port on which to run the server")
+    help="The port on which to run the server",
+)
 ARG_SSL_CERT = Arg(
     ("--ssl-cert",),
     default=conf.get('webserver', 'WEB_SERVER_SSL_CERT'),
-    help="Path to the SSL certificate for the webserver")
+    help="Path to the SSL certificate for the webserver",
+)
 ARG_SSL_KEY = Arg(
     ("--ssl-key",),
     default=conf.get('webserver', 'WEB_SERVER_SSL_KEY'),
-    help="Path to the key to use with the SSL certificate")
+    help="Path to the key to use with the SSL certificate",
+)
 ARG_WORKERS = Arg(
     ("-w", "--workers"),
     default=conf.get('webserver', 'WORKERS'),
     type=int,
-    help="Number of workers to run the webserver on")
+    help="Number of workers to run the webserver on",
+)
 ARG_WORKERCLASS = Arg(
     ("-k", "--workerclass"),
     default=conf.get('webserver', 'WORKER_CLASS'),
     choices=['sync', 'eventlet', 'gevent', 'tornado'],
-    help="The worker class to use for Gunicorn")
+    help="The worker class to use for Gunicorn",
+)
 ARG_WORKER_TIMEOUT = Arg(
     ("-t", "--worker-timeout"),
     default=conf.get('webserver', 'WEB_SERVER_WORKER_TIMEOUT'),
     type=int,
-    help="The timeout for waiting on webserver workers")
+    help="The timeout for waiting on webserver workers",
+)
 ARG_HOSTNAME = Arg(
     ("-H", "--hostname"),
     default=conf.get('webserver', 'WEB_SERVER_HOST'),
-    help="Set the hostname on which to run the web server")
+    help="Set the hostname on which to run the web server",
+)
 ARG_DEBUG = Arg(
-    ("-d", "--debug"),
-    help="Use the server that ships with Flask in debug mode",
-    action="store_true")
+    ("-d", "--debug"), help="Use the server that ships with Flask in debug mode", action="store_true"
+)
 ARG_ACCESS_LOGFILE = Arg(
     ("-A", "--access-logfile"),
     default=conf.get('webserver', 'ACCESS_LOGFILE'),
-    help="The logfile to store the webserver access log. Use '-' to print to "
-         "stderr")
+    help="The logfile to store the webserver access log. Use '-' to print to " "stderr",
+)
 ARG_ERROR_LOGFILE = Arg(
     ("-E", "--error-logfile"),
     default=conf.get('webserver', 'ERROR_LOGFILE'),
-    help="The logfile to store the webserver error log. Use '-' to print to "
-         "stderr")
+    help="The logfile to store the webserver error log. Use '-' to print to " "stderr",
+)
 
 # scheduler
 ARG_NUM_RUNS = Arg(
     ("-n", "--num-runs"),
     default=conf.getint('scheduler', 'num_runs'),
     type=int,
-    help="Set the number of runs to execute before exiting")
+    help="Set the number of runs to execute before exiting",
+)
 ARG_DO_PICKLE = Arg(
     ("-p", "--do-pickle"),
     default=False,
     help=(
         "Attempt to pickle the DAG object to send over "
         "to the workers, instead of letting workers run their version "
-        "of the code"),
-    action="store_true")
+        "of the code"
+    ),
+    action="store_true",
+)
 
 # worker
 ARG_QUEUES = Arg(
     ("-q", "--queues"),
     help="Comma delimited list of queues to serve",
-    default=conf.get('celery', 'DEFAULT_QUEUE'))
+    default=conf.get('celery', 'DEFAULT_QUEUE'),
+)
 ARG_CONCURRENCY = Arg(
     ("-c", "--concurrency"),
     type=int,
     help="The number of worker processes",
-    default=conf.get('celery', 'worker_concurrency'))
+    default=conf.get('celery', 'worker_concurrency'),
+)
 ARG_CELERY_HOSTNAME = Arg(
     ("-H", "--celery-hostname"),
-    help=("Set the hostname of celery worker "
-          "if you have multiple workers on a single machine"))
+    help=("Set the hostname of celery worker " "if you have multiple workers on a single machine"),
+)
 ARG_UMASK = Arg(
     ("-u", "--umask"),
     help="Set the umask of celery worker in daemon mode",
-    default=conf.get('celery', 'worker_umask'))
+    default=conf.get('celery', 'worker_umask'),
+)
 
 # flower
 ARG_BROKER_API = Arg(("-a", "--broker-api"), help="Broker API")
 ARG_FLOWER_HOSTNAME = Arg(
     ("-H", "--hostname"),
     default=conf.get('celery', 'FLOWER_HOST'),
-    help="Set the hostname on which to run the server")
+    help="Set the hostname on which to run the server",
+)
 ARG_FLOWER_PORT = Arg(
     ("-p", "--port"),
     default=conf.get('celery', 'FLOWER_PORT'),
     type=int,
-    help="The port on which to run the server")
-ARG_FLOWER_CONF = Arg(
-    ("-c", "--flower-conf"),
-    help="Configuration file for flower")
+    help="The port on which to run the server",
+)
+ARG_FLOWER_CONF = Arg(("-c", "--flower-conf"), help="Configuration file for flower")
 ARG_FLOWER_URL_PREFIX = Arg(
-    ("-u", "--url-prefix"),
-    default=conf.get('celery', 'FLOWER_URL_PREFIX'),
-    help="URL prefix for Flower")
+    ("-u", "--url-prefix"), default=conf.get('celery', 'FLOWER_URL_PREFIX'), help="URL prefix for Flower"
+)
 ARG_FLOWER_BASIC_AUTH = Arg(
     ("-A", "--basic-auth"),
     default=conf.get('celery', 'FLOWER_BASIC_AUTH'),
-    help=("Securing Flower with Basic Authentication. "
-          "Accepts user:password pairs separated by a comma. "
-          "Example: flower_basic_auth = user1:password1,user2:password2"))
-ARG_TASK_PARAMS = Arg(
-    ("-t", "--task-params"),
-    help="Sends a JSON params dict to the task")
+    help=(
+        "Securing Flower with Basic Authentication. "
+        "Accepts user:password pairs separated by a comma. "
+        "Example: flower_basic_auth = user1:password1,user2:password2"
+    ),
+)
+ARG_TASK_PARAMS = Arg(("-t", "--task-params"), help="Sends a JSON params dict to the task")
 ARG_POST_MORTEM = Arg(
-    ("-m", "--post-mortem"),
-    action="store_true",
-    help="Open debugger on uncaught exception")
+    ("-m", "--post-mortem"), action="store_true", help="Open debugger on uncaught exception"
+)
 ARG_ENV_VARS = Arg(
-    ("--env-vars", ),
+    ("--env-vars",),
     help="Set env var in both parsing time and runtime for each of entry supplied in a JSON dict",
-    type=json.loads)
+    type=json.loads,
+)
 
 # connections
-ARG_CONN_ID = Arg(
-    ('conn_id',),
-    help='Connection id, required to get/add/delete a connection',
-    type=str)
+ARG_CONN_ID = Arg(('conn_id',), help='Connection id, required to get/add/delete a connection', type=str)
 ARG_CONN_ID_FILTER = Arg(
-    ('--conn-id',),
-    help='If passed, only items with the specified connection ID will be displayed',
-    type=str)
+    ('--conn-id',), help='If passed, only items with the specified connection ID will be displayed', type=str
+)
 ARG_CONN_URI = Arg(
-    ('--conn-uri',),
-    help='Connection URI, required to add a connection without conn_type',
-    type=str)
+    ('--conn-uri',), help='Connection URI, required to add a connection without conn_type', type=str
+)
 ARG_CONN_TYPE = Arg(
-    ('--conn-type',),
-    help='Connection type, required to add a connection without conn_uri',
-    type=str)
-ARG_CONN_HOST = Arg(
-    ('--conn-host',),
-    help='Connection host, optional when adding a connection',
-    type=str)
-ARG_CONN_LOGIN = Arg(
-    ('--conn-login',),
-    help='Connection login, optional when adding a connection',
-    type=str)
+    ('--conn-type',), help='Connection type, required to add a connection without conn_uri', type=str
+)
+ARG_CONN_HOST = Arg(('--conn-host',), help='Connection host, optional when adding a connection', type=str)
+ARG_CONN_LOGIN = Arg(('--conn-login',), help='Connection login, optional when adding a connection', type=str)
 ARG_CONN_PASSWORD = Arg(
-    ('--conn-password',),
-    help='Connection password, optional when adding a connection',
-    type=str)
+    ('--conn-password',), help='Connection password, optional when adding a connection', type=str
+)
 ARG_CONN_SCHEMA = Arg(
-    ('--conn-schema',),
-    help='Connection schema, optional when adding a connection',
-    type=str)
-ARG_CONN_PORT = Arg(
-    ('--conn-port',),
-    help='Connection port, optional when adding a connection',
-    type=str)
+    ('--conn-schema',), help='Connection schema, optional when adding a connection', type=str
+)
+ARG_CONN_PORT = Arg(('--conn-port',), help='Connection port, optional when adding a connection', type=str)
 ARG_CONN_EXTRA = Arg(
-    ('--conn-extra',),
-    help='Connection `Extra` field, optional when adding a connection',
-    type=str)
+    ('--conn-extra',), help='Connection `Extra` field, optional when adding a connection', type=str
+)
 ARG_CONN_EXPORT = Arg(
     ('file',),
     help='Output file path for exporting the connections',
-    type=argparse.FileType('w', encoding='UTF-8'))
+    type=argparse.FileType('w', encoding='UTF-8'),
+)
 ARG_CONN_EXPORT_FORMAT = Arg(
-    ('--format',),
-    help='Format of the connections data in file',
-    type=str,
-    choices=['json', 'yaml', 'env'])
+    ('--format',), help='Format of the connections data in file', type=str, choices=['json', 'yaml', 'env']
+)
 # users
-ARG_USERNAME = Arg(
-    ('-u', '--username'),
-    help='Username of the user',
-    required=True,
-    type=str)
-ARG_USERNAME_OPTIONAL = Arg(
-    ('-u', '--username'),
-    help='Username of the user',
-    type=str)
-ARG_FIRSTNAME = Arg(
-    ('-f', '--firstname'),
-    help='First name of the user',
-    required=True,
-    type=str)
-ARG_LASTNAME = Arg(
-    ('-l', '--lastname'),
-    help='Last name of the user',
-    required=True,
-    type=str)
+ARG_USERNAME = Arg(('-u', '--username'), help='Username of the user', required=True, type=str)
+ARG_USERNAME_OPTIONAL = Arg(('-u', '--username'), help='Username of the user', type=str)
+ARG_FIRSTNAME = Arg(('-f', '--firstname'), help='First name of the user', required=True, type=str)
+ARG_LASTNAME = Arg(('-l', '--lastname'), help='Last name of the user', required=True, type=str)
 ARG_ROLE = Arg(
     ('-r', '--role'),
-    help='Role of the user. Existing roles include Admin, '
-         'User, Op, Viewer, and Public',
-    required=True,
-    type=str,)
-ARG_EMAIL = Arg(
-    ('-e', '--email'),
-    help='Email of the user',
+    help='Role of the user. Existing roles include Admin, ' 'User, Op, Viewer, and Public',
     required=True,
-    type=str)
-ARG_EMAIL_OPTIONAL = Arg(
-    ('-e', '--email'),
-    help='Email of the user',
-    type=str)
+    type=str,
+)
+ARG_EMAIL = Arg(('-e', '--email'), help='Email of the user', required=True, type=str)
+ARG_EMAIL_OPTIONAL = Arg(('-e', '--email'), help='Email of the user', type=str)
 ARG_PASSWORD = Arg(
     ('-p', '--password'),
-    help='Password of the user, required to create a user '
-         'without --use-random-password',
-    type=str)
+    help='Password of the user, required to create a user ' 'without --use-random-password',
+    type=str,
+)
 ARG_USE_RANDOM_PASSWORD = Arg(
     ('--use-random-password',),
     help='Do not prompt for password. Use random string instead.'
-         ' Required to create a user without --password ',
+    ' Required to create a user without --password ',
     default=False,
-    action='store_true')
+    action='store_true',
+)
 ARG_USER_IMPORT = Arg(
     ("import",),
     metavar="FILEPATH",
-    help="Import users from JSON file. Example format::\n" +
-         textwrap.indent(textwrap.dedent('''
+    help="Import users from JSON file. Example format::\n"
+    + textwrap.indent(
+        textwrap.dedent(
+            '''
             [
                 {
                     "email": "foo@bar.org",
@@ -701,49 +608,33 @@ ARG_USER_IMPORT = Arg(
                     "roles": ["Public"],
                     "username": "jondoe"
                 }
-            ]'''), " " * 4))
-ARG_USER_EXPORT = Arg(
-    ("export",),
-    metavar="FILEPATH",
-    help="Export all users to JSON file")
+            ]'''
+        ),
+        " " * 4,
+    ),
+)
+ARG_USER_EXPORT = Arg(("export",), metavar="FILEPATH", help="Export all users to JSON file")
 
 # roles
-ARG_CREATE_ROLE = Arg(
-    ('-c', '--create'),
-    help='Create a new role',
-    action='store_true')
-ARG_LIST_ROLES = Arg(
-    ('-l', '--list'),
-    help='List roles',
-    action='store_true')
-ARG_ROLES = Arg(
-    ('role',),
-    help='The name of a role',
-    nargs='*')
-ARG_AUTOSCALE = Arg(
-    ('-a', '--autoscale'),
-    help="Minimum and Maximum number of worker to autoscale")
+ARG_CREATE_ROLE = Arg(('-c', '--create'), help='Create a new role', action='store_true')
+ARG_LIST_ROLES = Arg(('-l', '--list'), help='List roles', action='store_true')
+ARG_ROLES = Arg(('role',), help='The name of a role', nargs='*')
+ARG_AUTOSCALE = Arg(('-a', '--autoscale'), help="Minimum and Maximum number of worker to autoscale")
 ARG_SKIP_SERVE_LOGS = Arg(
     ("-s", "--skip-serve-logs"),
     default=False,
     help="Don't start the serve logs process along with the workers",
-    action="store_true")
+    action="store_true",
+)
 
 # info
 ARG_ANONYMIZE = Arg(
     ('--anonymize',),
-    help=(
-        'Minimize any personal identifiable information. '
-        'Use it when sharing output with others.'
-    ),
-    action='store_true'
+    help=('Minimize any personal identifiable information. ' 'Use it when sharing output with others.'),
+    action='store_true',
 )
 ARG_FILE_IO = Arg(
-    ('--file-io',),
-    help=(
-        'Send output to file.io service and returns link.'
-    ),
-    action='store_true'
+    ('--file-io',), help=('Send output to file.io service and returns link.'), action='store_true'
 )
 
 # config
@@ -764,7 +655,12 @@ ARG_NAMESPACE = Arg(
 )
 
 ALTERNATIVE_CONN_SPECS_ARGS = [
-    ARG_CONN_TYPE, ARG_CONN_HOST, ARG_CONN_LOGIN, ARG_CONN_PASSWORD, ARG_CONN_SCHEMA, ARG_CONN_PORT
+    ARG_CONN_TYPE,
+    ARG_CONN_HOST,
+    ARG_CONN_LOGIN,
+    ARG_CONN_PASSWORD,
+    ARG_CONN_SCHEMA,
+    ARG_CONN_PORT,
 ]
 
 
@@ -867,23 +763,30 @@ DAGS_COMMANDS = (
     ActionCommand(
         name='show',
         help="Displays DAG's tasks with their dependencies",
-        description=("The --imgcat option only works in iTerm.\n"
-                     "\n"
-                     "For more information, see: https://www.iterm2.com/documentation-images.html\n"
-                     "\n"
-                     "The --save option saves the result to the indicated file.\n"
-                     "\n"
-                     "The file format is determined by the file extension. "
-                     "For more information about supported "
-                     "format, see: https://www.graphviz.org/doc/info/output.html\n"
-                     "\n"
-                     "If you want to create a PNG file then you should execute the following command:\n"
-                     "airflow dags show <DAG_ID> --save output.png\n"
-                     "\n"
-                     "If you want to create a DOT file then you should execute the following command:\n"
-                     "airflow dags show <DAG_ID> --save output.dot\n"),
+        description=(
+            "The --imgcat option only works in iTerm.\n"
+            "\n"
+            "For more information, see: https://www.iterm2.com/documentation-images.html\n"
+            "\n"
+            "The --save option saves the result to the indicated file.\n"
+            "\n"
+            "The file format is determined by the file extension. "
+            "For more information about supported "
+            "format, see: https://www.graphviz.org/doc/info/output.html\n"
+            "\n"
+            "If you want to create a PNG file then you should execute the following command:\n"
+            "airflow dags show <DAG_ID> --save output.png\n"
+            "\n"
+            "If you want to create a DOT file then you should execute the following command:\n"
+            "airflow dags show <DAG_ID> --save output.dot\n"
+        ),
         func=lazy_load_command('airflow.cli.commands.dag_command.dag_show'),
-        args=(ARG_DAG_ID, ARG_SUBDIR, ARG_SAVE, ARG_IMGCAT,),
+        args=(
+            ARG_DAG_ID,
+            ARG_SUBDIR,
+            ARG_SAVE,
+            ARG_IMGCAT,
+        ),
     ),
     ActionCommand(
         name='backfill',
@@ -896,36 +799,58 @@ DAGS_COMMANDS = (
         ),
         func=lazy_load_command('airflow.cli.commands.dag_command.dag_backfill'),
         args=(
-            ARG_DAG_ID, ARG_TASK_REGEX, ARG_START_DATE, ARG_END_DATE, ARG_MARK_SUCCESS, ARG_LOCAL,
-            ARG_DONOT_PICKLE, ARG_YES, ARG_BF_IGNORE_DEPENDENCIES, ARG_BF_IGNORE_FIRST_DEPENDS_ON_PAST,
-            ARG_SUBDIR, ARG_POOL, ARG_DELAY_ON_LIMIT, ARG_DRY_RUN, ARG_VERBOSE, ARG_CONF,
-            ARG_RESET_DAG_RUN, ARG_RERUN_FAILED_TASKS, ARG_RUN_BACKWARDS
+            ARG_DAG_ID,
+            ARG_TASK_REGEX,
+            ARG_START_DATE,
+            ARG_END_DATE,
+            ARG_MARK_SUCCESS,
+            ARG_LOCAL,
+            ARG_DONOT_PICKLE,
+            ARG_YES,
+            ARG_BF_IGNORE_DEPENDENCIES,
+            ARG_BF_IGNORE_FIRST_DEPENDS_ON_PAST,
+            ARG_SUBDIR,
+            ARG_POOL,
+            ARG_DELAY_ON_LIMIT,
+            ARG_DRY_RUN,
+            ARG_VERBOSE,
+            ARG_CONF,
+            ARG_RESET_DAG_RUN,
+            ARG_RERUN_FAILED_TASKS,
+            ARG_RUN_BACKWARDS,
         ),
     ),
     ActionCommand(
         name='test',
         help="Execute one single DagRun",
-        description=("Execute one single DagRun for a given DAG and execution date, "
-                     "using the DebugExecutor.\n"
-                     "\n"
-                     "The --imgcat-dagrun option only works in iTerm.\n"
-                     "\n"
-                     "For more information, see: https://www.iterm2.com/documentation-images.html\n"
-                     "\n"
-                     "If --save-dagrun is used, then, after completing the backfill, saves the diagram "
-                     "for current DAG Run to the indicated file.\n"
-                     "The file format is determined by the file extension. "
-                     "For more information about supported format, "
-                     "see: https://www.graphviz.org/doc/info/output.html\n"
-                     "\n"
-                     "If you want to create a PNG file then you should execute the following command:\n"
-                     "airflow dags test <DAG_ID> <EXECUTION_DATE> --save-dagrun output.png\n"
-                     "\n"
-                     "If you want to create a DOT file then you should execute the following command:\n"
-                     "airflow dags test <DAG_ID> <EXECUTION_DATE> --save-dagrun output.dot\n"),
+        description=(
+            "Execute one single DagRun for a given DAG and execution date, "
+            "using the DebugExecutor.\n"
+            "\n"
+            "The --imgcat-dagrun option only works in iTerm.\n"
+            "\n"
+            "For more information, see: https://www.iterm2.com/documentation-images.html\n"
+            "\n"
+            "If --save-dagrun is used, then, after completing the backfill, saves the diagram "
+            "for current DAG Run to the indicated file.\n"
+            "The file format is determined by the file extension. "
+            "For more information about supported format, "
+            "see: https://www.graphviz.org/doc/info/output.html\n"
+            "\n"
+            "If you want to create a PNG file then you should execute the following command:\n"
+            "airflow dags test <DAG_ID> <EXECUTION_DATE> --save-dagrun output.png\n"
+            "\n"
+            "If you want to create a DOT file then you should execute the following command:\n"
+            "airflow dags test <DAG_ID> <EXECUTION_DATE> --save-dagrun output.dot\n"
+        ),
         func=lazy_load_command('airflow.cli.commands.dag_command.dag_test'),
         args=(
-            ARG_DAG_ID, ARG_EXECUTION_DATE, ARG_SUBDIR, ARG_SHOW_DAGRUN, ARG_IMGCAT_DAGRUN, ARG_SAVE_DAGRUN
+            ARG_DAG_ID,
+            ARG_EXECUTION_DATE,
+            ARG_SUBDIR,
+            ARG_SHOW_DAGRUN,
+            ARG_IMGCAT_DAGRUN,
+            ARG_SAVE_DAGRUN,
         ),
     ),
 )
@@ -941,9 +866,19 @@ TASKS_COMMANDS = (
         help="Clear a set of task instance, as if they never ran",
         func=lazy_load_command('airflow.cli.commands.task_command.task_clear'),
         args=(
-            ARG_DAG_ID, ARG_TASK_REGEX, ARG_START_DATE, ARG_END_DATE, ARG_SUBDIR, ARG_UPSTREAM,
-            ARG_DOWNSTREAM, ARG_YES, ARG_ONLY_FAILED, ARG_ONLY_RUNNING, ARG_EXCLUDE_SUBDAGS,
-            ARG_EXCLUDE_PARENTDAG, ARG_DAG_REGEX
+            ARG_DAG_ID,
+            ARG_TASK_REGEX,
+            ARG_START_DATE,
+            ARG_END_DATE,
+            ARG_SUBDIR,
+            ARG_UPSTREAM,
+            ARG_DOWNSTREAM,
+            ARG_YES,
+            ARG_ONLY_FAILED,
+            ARG_ONLY_RUNNING,
+            ARG_EXCLUDE_SUBDAGS,
+            ARG_EXCLUDE_PARENTDAG,
+            ARG_DAG_REGEX,
         ),
     ),
     ActionCommand(
@@ -974,9 +909,22 @@ TASKS_COMMANDS = (
         help="Run a single task instance",
         func=lazy_load_command('airflow.cli.commands.task_command.task_run'),
         args=(
-            ARG_DAG_ID, ARG_TASK_ID, ARG_EXECUTION_DATE, ARG_SUBDIR, ARG_MARK_SUCCESS, ARG_FORCE,
-            ARG_POOL, ARG_CFG_PATH, ARG_LOCAL, ARG_RAW, ARG_IGNORE_ALL_DEPENDENCIES,
-            ARG_IGNORE_DEPENDENCIES, ARG_IGNORE_DEPENDS_ON_PAST, ARG_SHIP_DAG, ARG_PICKLE, ARG_JOB_ID,
+            ARG_DAG_ID,
+            ARG_TASK_ID,
+            ARG_EXECUTION_DATE,
+            ARG_SUBDIR,
+            ARG_MARK_SUCCESS,
+            ARG_FORCE,
+            ARG_POOL,
+            ARG_CFG_PATH,
+            ARG_LOCAL,
+            ARG_RAW,
+            ARG_IGNORE_ALL_DEPENDENCIES,
+            ARG_IGNORE_DEPENDENCIES,
+            ARG_IGNORE_DEPENDS_ON_PAST,
+            ARG_SHIP_DAG,
+            ARG_PICKLE,
+            ARG_JOB_ID,
             ARG_INTERACTIVE,
         ),
     ),
@@ -989,8 +937,14 @@ TASKS_COMMANDS = (
         ),
         func=lazy_load_command('airflow.cli.commands.task_command.task_test'),
         args=(
-            ARG_DAG_ID, ARG_TASK_ID, ARG_EXECUTION_DATE, ARG_SUBDIR, ARG_DRY_RUN,
-            ARG_TASK_PARAMS, ARG_POST_MORTEM, ARG_ENV_VARS
+            ARG_DAG_ID,
+            ARG_TASK_ID,
+            ARG_EXECUTION_DATE,
+            ARG_SUBDIR,
+            ARG_DRY_RUN,
+            ARG_TASK_PARAMS,
+            ARG_POST_MORTEM,
+            ARG_ENV_VARS,
         ),
     ),
     ActionCommand(
@@ -1011,31 +965,48 @@ POOLS_COMMANDS = (
         name='get',
         help='Get pool size',
         func=lazy_load_command('airflow.cli.commands.pool_command.pool_get'),
-        args=(ARG_POOL_NAME, ARG_OUTPUT,),
+        args=(
+            ARG_POOL_NAME,
+            ARG_OUTPUT,
+        ),
     ),
     ActionCommand(
         name='set',
         help='Configure pool',
         func=lazy_load_command('airflow.cli.commands.pool_command.pool_set'),
-        args=(ARG_POOL_NAME, ARG_POOL_SLOTS, ARG_POOL_DESCRIPTION, ARG_OUTPUT,),
+        args=(
+            ARG_POOL_NAME,
+            ARG_POOL_SLOTS,
+            ARG_POOL_DESCRIPTION,
+            ARG_OUTPUT,
+        ),
     ),
     ActionCommand(
         name='delete',
         help='Delete pool',
         func=lazy_load_command('airflow.cli.commands.pool_command.pool_delete'),
-        args=(ARG_POOL_NAME, ARG_OUTPUT,),
+        args=(
+            ARG_POOL_NAME,
+            ARG_OUTPUT,
+        ),
     ),
     ActionCommand(
         name='import',
         help='Import pools',
         func=lazy_load_command('airflow.cli.commands.pool_command.pool_import'),
-        args=(ARG_POOL_IMPORT, ARG_OUTPUT,),
+        args=(
+            ARG_POOL_IMPORT,
+            ARG_OUTPUT,
+        ),
     ),
     ActionCommand(
         name='export',
         help='Export all pools',
         func=lazy_load_command('airflow.cli.commands.pool_command.pool_export'),
-        args=(ARG_POOL_EXPORT, ARG_OUTPUT,),
+        args=(
+            ARG_POOL_EXPORT,
+            ARG_OUTPUT,
+        ),
     ),
 )
 VARIABLES_COMMANDS = (
@@ -1086,9 +1057,7 @@ DB_COMMANDS = (
     ActionCommand(
         name="check-migrations",
         help="Check if migration have finished",
-        description=(
-            "Check if migration have finished (or continually check until timeout)"
-        ),
+        description=("Check if migration have finished (or continually check until timeout)"),
         func=lazy_load_command('airflow.cli.commands.db_command.check_migrations'),
         args=(ARG_MIGRATION_TIMEOUT,),
     ),
@@ -1145,18 +1114,23 @@ CONNECTIONS_COMMANDS = (
     ActionCommand(
         name='export',
         help='Export all connections',
-        description=("All connections can be exported in STDOUT using the following command:\n"
-                     "airflow connections export -\n"
-                     "The file format can be determined by the provided file extension. eg, The following "
-                     "command will export the connections in JSON format:\n"
-                     "airflow connections export /tmp/connections.json\n"
-                     "The --format parameter can be used to mention the connections format. eg, "
-                     "the default format is JSON in STDOUT mode, which can be overridden using: \n"
-                     "airflow connections export - --format yaml\n"
-                     "The --format parameter can also be used for the files, for example:\n"
-                     "airflow connections export /tmp/connections --format json\n"),
+        description=(
+            "All connections can be exported in STDOUT using the following command:\n"
+            "airflow connections export -\n"
+            "The file format can be determined by the provided file extension. eg, The following "
+            "command will export the connections in JSON format:\n"
+            "airflow connections export /tmp/connections.json\n"
+            "The --format parameter can be used to mention the connections format. eg, "
+            "the default format is JSON in STDOUT mode, which can be overridden using: \n"
+            "airflow connections export - --format yaml\n"
+            "The --format parameter can also be used for the files, for example:\n"
+            "airflow connections export /tmp/connections --format json\n"
+        ),
         func=lazy_load_command('airflow.cli.commands.connection_command.connections_export'),
-        args=(ARG_CONN_EXPORT, ARG_CONN_EXPORT_FORMAT,),
+        args=(
+            ARG_CONN_EXPORT,
+            ARG_CONN_EXPORT_FORMAT,
+        ),
     ),
 )
 USERS_COMMANDS = (
@@ -1171,8 +1145,13 @@ USERS_COMMANDS = (
         help='Create a user',
         func=lazy_load_command('airflow.cli.commands.user_command.users_create'),
         args=(
-            ARG_ROLE, ARG_USERNAME, ARG_EMAIL, ARG_FIRSTNAME, ARG_LASTNAME, ARG_PASSWORD,
-            ARG_USE_RANDOM_PASSWORD
+            ARG_ROLE,
+            ARG_USERNAME,
+            ARG_EMAIL,
+            ARG_FIRSTNAME,
+            ARG_LASTNAME,
+            ARG_PASSWORD,
+            ARG_USE_RANDOM_PASSWORD,
         ),
         epilog=(
             'examples:\n'
@@ -1184,7 +1163,7 @@ USERS_COMMANDS = (
             '          --lastname LAST_NAME \\\n'
             '          --role Admin \\\n'
             '          --email admin@example.org'
-        )
+        ),
     ),
     ActionCommand(
         name='delete',
@@ -1238,8 +1217,17 @@ CELERY_COMMANDS = (
         help="Start a Celery worker node",
         func=lazy_load_command('airflow.cli.commands.celery_command.worker'),
         args=(
-            ARG_QUEUES, ARG_CONCURRENCY, ARG_CELERY_HOSTNAME, ARG_PID, ARG_DAEMON,
-            ARG_UMASK, ARG_STDOUT, ARG_STDERR, ARG_LOG_FILE, ARG_AUTOSCALE, ARG_SKIP_SERVE_LOGS
+            ARG_QUEUES,
+            ARG_CONCURRENCY,
+            ARG_CELERY_HOSTNAME,
+            ARG_PID,
+            ARG_DAEMON,
+            ARG_UMASK,
+            ARG_STDOUT,
+            ARG_STDERR,
+            ARG_LOG_FILE,
+            ARG_AUTOSCALE,
+            ARG_SKIP_SERVE_LOGS,
         ),
     ),
     ActionCommand(
@@ -1247,9 +1235,17 @@ CELERY_COMMANDS = (
         help="Start a Celery Flower",
         func=lazy_load_command('airflow.cli.commands.celery_command.flower'),
         args=(
-            ARG_FLOWER_HOSTNAME, ARG_FLOWER_PORT, ARG_FLOWER_CONF, ARG_FLOWER_URL_PREFIX,
-            ARG_FLOWER_BASIC_AUTH, ARG_BROKER_API, ARG_PID, ARG_DAEMON, ARG_STDOUT, ARG_STDERR,
-            ARG_LOG_FILE
+            ARG_FLOWER_HOSTNAME,
+            ARG_FLOWER_PORT,
+            ARG_FLOWER_CONF,
+            ARG_FLOWER_URL_PREFIX,
+            ARG_FLOWER_BASIC_AUTH,
+            ARG_BROKER_API,
+            ARG_PID,
+            ARG_DAEMON,
+            ARG_STDOUT,
+            ARG_STDERR,
+            ARG_LOG_FILE,
         ),
     ),
     ActionCommand(
@@ -1257,7 +1253,7 @@ CELERY_COMMANDS = (
         help="Stop the Celery worker gracefully",
         func=lazy_load_command('airflow.cli.commands.celery_command.stop_worker'),
         args=(),
-    )
+    ),
 )
 
 CONFIG_COMMANDS = (
@@ -1265,13 +1261,16 @@ CONFIG_COMMANDS = (
         name='get-value',
         help='Print the value of the configuration',
         func=lazy_load_command('airflow.cli.commands.config_command.get_value'),
-        args=(ARG_SECTION, ARG_OPTION, ),
+        args=(
+            ARG_SECTION,
+            ARG_OPTION,
+        ),
     ),
     ActionCommand(
         name='list',
         help='List options for the configuration',
         func=lazy_load_command('airflow.cli.commands.config_command.show_config'),
-        args=(ARG_COLOR, ),
+        args=(ARG_COLOR,),
     ),
 )
 
@@ -1280,12 +1279,12 @@ KUBERNETES_COMMANDS = (
         name='cleanup-pods',
         help="Clean up Kubernetes pods in evicted/failed/succeeded states",
         func=lazy_load_command('airflow.cli.commands.kubernetes_command.cleanup_pods'),
-        args=(ARG_NAMESPACE, ),
+        args=(ARG_NAMESPACE,),
     ),
     ActionCommand(
         name='generate-dag-yaml',
         help="Generate YAML files for all tasks in DAG. Useful for debugging tasks without "
-             "launching into a cluster",
+        "launching into a cluster",
         func=lazy_load_command('airflow.cli.commands.kubernetes_command.generate_pod_yaml'),
         args=(ARG_DAG_ID, ARG_EXECUTION_DATE, ARG_SUBDIR, ARG_OUTPUT_PATH),
     ),
@@ -1298,9 +1297,7 @@ airflow_commands: List[CLICommand] = [
         subcommands=DAGS_COMMANDS,
     ),
     GroupCommand(
-        name="kubernetes",
-        help='Tools to help run the KubernetesExecutor',
-        subcommands=KUBERNETES_COMMANDS
+        name="kubernetes", help='Tools to help run the KubernetesExecutor', subcommands=KUBERNETES_COMMANDS
     ),
     GroupCommand(
         name='tasks',
@@ -1333,9 +1330,21 @@ airflow_commands: List[CLICommand] = [
         help="Start a Airflow webserver instance",
         func=lazy_load_command('airflow.cli.commands.webserver_command.webserver'),
         args=(
-            ARG_PORT, ARG_WORKERS, ARG_WORKERCLASS, ARG_WORKER_TIMEOUT, ARG_HOSTNAME, ARG_PID,
-            ARG_DAEMON, ARG_STDOUT, ARG_STDERR, ARG_ACCESS_LOGFILE, ARG_ERROR_LOGFILE, ARG_LOG_FILE,
-            ARG_SSL_CERT, ARG_SSL_KEY, ARG_DEBUG
+            ARG_PORT,
+            ARG_WORKERS,
+            ARG_WORKERCLASS,
+            ARG_WORKER_TIMEOUT,
+            ARG_HOSTNAME,
+            ARG_PID,
+            ARG_DAEMON,
+            ARG_STDOUT,
+            ARG_STDERR,
+            ARG_ACCESS_LOGFILE,
+            ARG_ERROR_LOGFILE,
+            ARG_LOG_FILE,
+            ARG_SSL_CERT,
+            ARG_SSL_KEY,
+            ARG_DEBUG,
         ),
     ),
     ActionCommand(
@@ -1343,8 +1352,14 @@ airflow_commands: List[CLICommand] = [
         help="Start a scheduler instance",
         func=lazy_load_command('airflow.cli.commands.scheduler_command.scheduler'),
         args=(
-            ARG_SUBDIR, ARG_NUM_RUNS, ARG_DO_PICKLE, ARG_PID, ARG_DAEMON, ARG_STDOUT,
-            ARG_STDERR, ARG_LOG_FILE
+            ARG_SUBDIR,
+            ARG_NUM_RUNS,
+            ARG_DO_PICKLE,
+            ARG_PID,
+            ARG_DAEMON,
+            ARG_STDOUT,
+            ARG_STDERR,
+            ARG_LOG_FILE,
         ),
     ),
     ActionCommand(
@@ -1391,16 +1406,15 @@ airflow_commands: List[CLICommand] = [
         ),
         args=(),
     ),
-    GroupCommand(
-        name="config",
-        help='View configuration',
-        subcommands=CONFIG_COMMANDS
-    ),
+    GroupCommand(name="config", help='View configuration', subcommands=CONFIG_COMMANDS),
     ActionCommand(
         name='info',
         help='Show information about current Airflow and environment',
         func=lazy_load_command('airflow.cli.commands.info_command.show_info'),
-        args=(ARG_ANONYMIZE, ARG_FILE_IO, ),
+        args=(
+            ARG_ANONYMIZE,
+            ARG_FILE_IO,
+        ),
     ),
     ActionCommand(
         name='plugins',
@@ -1415,13 +1429,11 @@ airflow_commands: List[CLICommand] = [
             'Start celery components. Works only when using CeleryExecutor. For more information, see '
             'https://airflow.readthedocs.io/en/stable/executor/celery.html'
         ),
-        subcommands=CELERY_COMMANDS
-    )
+        subcommands=CELERY_COMMANDS,
+    ),
 ]
 ALL_COMMANDS_DICT: Dict[str, CLICommand] = {sp.name: sp for sp in airflow_commands}
-DAG_CLI_COMMANDS: Set[str] = {
-    'list_tasks', 'backfill', 'test', 'run', 'pause', 'unpause', 'list_dag_runs'
-}
+DAG_CLI_COMMANDS: Set[str] = {'list_tasks', 'backfill', 'test', 'run', 'pause', 'unpause', 'list_dag_runs'}
 
 
 class AirflowHelpFormatter(argparse.HelpFormatter):
@@ -1483,17 +1495,18 @@ def get_parser(dag_parser: bool = False) -> argparse.ArgumentParser:
 
 def _sort_args(args: Iterable[Arg]) -> Iterable[Arg]:
     """Sort subcommand optional args, keep positional args"""
+
     def get_long_option(arg: Arg):
         """Get long option from Arg.flags"""
         return arg.flags[0] if len(arg.flags) == 1 else arg.flags[1]
+
     positional, optional = partition(lambda x: x.flags[0].startswith("-"), args)
     yield from positional
     yield from sorted(optional, key=lambda x: get_long_option(x).lower())
 
 
 def _add_command(
-    subparsers: argparse._SubParsersAction,  # pylint: disable=protected-access
-    sub: CLICommand
+    subparsers: argparse._SubParsersAction, sub: CLICommand  # pylint: disable=protected-access
 ) -> None:
     sub_proc = subparsers.add_parser(
         sub.name, help=sub.help, description=sub.description or sub.help, epilog=sub.epilog
diff --git a/airflow/cli/commands/cheat_sheet_command.py b/airflow/cli/commands/cheat_sheet_command.py
index 24a86d3..0e9abaa 100644
--- a/airflow/cli/commands/cheat_sheet_command.py
+++ b/airflow/cli/commands/cheat_sheet_command.py
@@ -41,6 +41,7 @@ def cheat_sheet(args):
 
 def display_commands_index():
     """Display list of all commands."""
+
     def display_recursive(prefix: List[str], commands: Iterable[Union[GroupCommand, ActionCommand]]):
         actions: List[ActionCommand]
         groups: List[GroupCommand]
diff --git a/airflow/cli/commands/config_command.py b/airflow/cli/commands/config_command.py
index 0ec624c..2eedfa5 100644
--- a/airflow/cli/commands/config_command.py
+++ b/airflow/cli/commands/config_command.py
@@ -32,9 +32,7 @@ def show_config(args):
         conf.write(output)
         code = output.getvalue()
         if should_use_colors(args):
-            code = pygments.highlight(
-                code=code, formatter=get_terminal_formatter(), lexer=IniLexer()
-            )
+            code = pygments.highlight(code=code, formatter=get_terminal_formatter(), lexer=IniLexer())
         print(code)
 
 
diff --git a/airflow/cli/commands/connection_command.py b/airflow/cli/commands/connection_command.py
index 3a8d31c..6708806 100644
--- a/airflow/cli/commands/connection_command.py
+++ b/airflow/cli/commands/connection_command.py
@@ -47,7 +47,8 @@ def _tabulate_connection(conns: List[Connection], tablefmt: str):
             'Is Encrypted': conn.is_encrypted,
             'Is Extra Encrypted': conn.is_encrypted,
             'Extra': conn.extra,
-        } for conn in conns
+        }
+        for conn in conns
     ]
 
     msg = tabulate(tabulate_data, tablefmt=tablefmt, headers='keys')
@@ -67,7 +68,7 @@ def _yamulate_connection(conn: Connection):
         'Is Encrypted': conn.is_encrypted,
         'Is Extra Encrypted': conn.is_encrypted,
         'Extra': conn.extra_dejson,
-        'URI': conn.get_uri()
+        'URI': conn.get_uri(),
     }
     return yaml.safe_dump(yaml_data, sort_keys=False)
 
@@ -150,8 +151,10 @@ def connections_export(args):
             _, filetype = os.path.splitext(args.file.name)
             filetype = filetype.lower()
             if filetype not in allowed_formats:
-                msg = f"Unsupported file format. " \
-                      f"The file must have the extension {', '.join(allowed_formats)}"
+                msg = (
+                    f"Unsupported file format. "
+                    f"The file must have the extension {', '.join(allowed_formats)}"
+                )
                 raise SystemExit(msg)
 
         connections = session.query(Connection).order_by(Connection.conn_id).all()
@@ -164,8 +167,7 @@ def connections_export(args):
             print(f"Connections successfully exported to {args.file.name}")
 
 
-alternative_conn_specs = ['conn_type', 'conn_host',
-                          'conn_login', 'conn_password', 'conn_schema', 'conn_port']
+alternative_conn_specs = ['conn_type', 'conn_host', 'conn_login', 'conn_password', 'conn_schema', 'conn_port']
 
 
 @cli_utils.action_logging
@@ -181,42 +183,51 @@ def connections_add(args):
     elif not args.conn_type:
         missing_args.append('conn-uri or conn-type')
     if missing_args:
-        msg = ('The following args are required to add a connection:' +
-               f' {missing_args!r}')
+        msg = 'The following args are required to add a connection:' + f' {missing_args!r}'
         raise SystemExit(msg)
     if invalid_args:
-        msg = ('The following args are not compatible with the ' +
-               'add flag and --conn-uri flag: {invalid!r}')
+        msg = 'The following args are not compatible with the ' + 'add flag and --conn-uri flag: {invalid!r}'
         msg = msg.format(invalid=invalid_args)
         raise SystemExit(msg)
 
     if args.conn_uri:
         new_conn = Connection(conn_id=args.conn_id, uri=args.conn_uri)
     else:
-        new_conn = Connection(conn_id=args.conn_id,
-                              conn_type=args.conn_type,
-                              host=args.conn_host,
-                              login=args.conn_login,
-                              password=args.conn_password,
-                              schema=args.conn_schema,
-                              port=args.conn_port)
+        new_conn = Connection(
+            conn_id=args.conn_id,
+            conn_type=args.conn_type,
+            host=args.conn_host,
+            login=args.conn_login,
+            password=args.conn_password,
+            schema=args.conn_schema,
+            port=args.conn_port,
+        )
     if args.conn_extra is not None:
         new_conn.set_extra(args.conn_extra)
 
     with create_session() as session:
-        if not (session.query(Connection)
-                .filter(Connection.conn_id == new_conn.conn_id).first()):
+        if not session.query(Connection).filter(Connection.conn_id == new_conn.conn_id).first():
             session.add(new_conn)
             msg = '\n\tSuccessfully added `conn_id`={conn_id} : {uri}\n'
-            msg = msg.format(conn_id=new_conn.conn_id,
-                             uri=args.conn_uri or
-                             urlunparse((args.conn_type,
-                                         '{login}:{password}@{host}:{port}'
-                                             .format(login=args.conn_login or '',
-                                                     password='******' if args.conn_password else '',
-                                                     host=args.conn_host or '',
-                                                     port=args.conn_port or ''),
-                                         args.conn_schema or '', '', '', '')))
+            msg = msg.format(
+                conn_id=new_conn.conn_id,
+                uri=args.conn_uri
+                or urlunparse(
+                    (
+                        args.conn_type,
+                        '{login}:{password}@{host}:{port}'.format(
+                            login=args.conn_login or '',
+                            password='******' if args.conn_password else '',
+                            host=args.conn_host or '',
+                            port=args.conn_port or '',
+                        ),
+                        args.conn_schema or '',
+                        '',
+                        '',
+                        '',
+                    )
+                ),
+            )
             print(msg)
         else:
             msg = '\n\tA connection with `conn_id`={conn_id} already exists\n'
@@ -229,18 +240,14 @@ def connections_delete(args):
     """Deletes connection from DB"""
     with create_session() as session:
         try:
-            to_delete = (session
-                         .query(Connection)
-                         .filter(Connection.conn_id == args.conn_id)
-                         .one())
+            to_delete = session.query(Connection).filter(Connection.conn_id == args.conn_id).one()
         except exc.NoResultFound:
             msg = '\n\tDid not find a connection with `conn_id`={conn_id}\n'
             msg = msg.format(conn_id=args.conn_id)
             print(msg)
             return
         except exc.MultipleResultsFound:
-            msg = ('\n\tFound more than one connection with ' +
-                   '`conn_id`={conn_id}\n')
+            msg = '\n\tFound more than one connection with ' + '`conn_id`={conn_id}\n'
             msg = msg.format(conn_id=args.conn_id)
             print(msg)
             return
diff --git a/airflow/cli/commands/dag_command.py b/airflow/cli/commands/dag_command.py
index 456b5b9..a3d1fe1 100644
--- a/airflow/cli/commands/dag_command.py
+++ b/airflow/cli/commands/dag_command.py
@@ -52,12 +52,10 @@ def _tabulate_dag_runs(dag_runs: List[DagRun], tablefmt: str = "fancy_grid") ->
             'Execution date': dag_run.execution_date.isoformat(),
             'Start date': dag_run.start_date.isoformat() if dag_run.start_date else '',
             'End date': dag_run.end_date.isoformat() if dag_run.end_date else '',
-        } for dag_run in dag_runs
-    )
-    return tabulate(
-        tabular_data=tabulate_data,
-        tablefmt=tablefmt
+        }
+        for dag_run in dag_runs
     )
+    return tabulate(tabular_data=tabulate_data, tablefmt=tablefmt)
 
 
 def _tabulate_dags(dags: List[DAG], tablefmt: str = "fancy_grid") -> str:
@@ -66,27 +64,25 @@ def _tabulate_dags(dags: List[DAG], tablefmt: str = "fancy_grid") -> str:
             'DAG ID': dag.dag_id,
             'Filepath': dag.filepath,
             'Owner': dag.owner,
-        } for dag in sorted(dags, key=lambda d: d.dag_id)
-    )
-    return tabulate(
-        tabular_data=tabulate_data,
-        tablefmt=tablefmt,
-        headers='keys'
+        }
+        for dag in sorted(dags, key=lambda d: d.dag_id)
     )
+    return tabulate(tabular_data=tabulate_data, tablefmt=tablefmt, headers='keys')
 
 
 @cli_utils.action_logging
 def dag_backfill(args, dag=None):
     """Creates backfill job or dry run for a DAG"""
-    logging.basicConfig(
-        level=settings.LOGGING_LEVEL,
-        format=settings.SIMPLE_LOG_FORMAT)
+    logging.basicConfig(level=settings.LOGGING_LEVEL, format=settings.SIMPLE_LOG_FORMAT)
 
     signal.signal(signal.SIGTERM, sigint_handler)
 
     import warnings
-    warnings.warn('--ignore-first-depends-on-past is deprecated as the value is always set to True',
-                  category=PendingDeprecationWarning)
+
+    warnings.warn(
+        '--ignore-first-depends-on-past is deprecated as the value is always set to True',
+        category=PendingDeprecationWarning,
+    )
 
     if args.ignore_first_depends_on_past is False:
         args.ignore_first_depends_on_past = True
@@ -102,16 +98,15 @@ def dag_backfill(args, dag=None):
 
     if args.task_regex:
         dag = dag.partial_subset(
-            task_ids_or_regex=args.task_regex,
-            include_upstream=not args.ignore_dependencies)
+            task_ids_or_regex=args.task_regex, include_upstream=not args.ignore_dependencies
+        )
 
     run_conf = None
     if args.conf:
         run_conf = json.loads(args.conf)
 
     if args.dry_run:
-        print("Dry run of DAG {} on {}".format(args.dag_id,
-                                               args.start_date))
+        print(f"Dry run of DAG {args.dag_id} on {args.start_date}")
         for task in dag.tasks:
             print(f"Task {task.task_id}")
             ti = TaskInstance(task, args.start_date)
@@ -132,8 +127,7 @@ def dag_backfill(args, dag=None):
             end_date=args.end_date,
             mark_success=args.mark_success,
             local=args.local,
-            donot_pickle=(args.donot_pickle or
-                          conf.getboolean('core', 'donot_pickle')),
+            donot_pickle=(args.donot_pickle or conf.getboolean('core', 'donot_pickle')),
             ignore_first_depends_on_past=args.ignore_first_depends_on_past,
             ignore_task_deps=args.ignore_dependencies,
             pool=args.pool,
@@ -141,7 +135,7 @@ def dag_backfill(args, dag=None):
             verbose=args.verbose,
             conf=run_conf,
             rerun_failed_tasks=args.rerun_failed_tasks,
-            run_backwards=args.run_backwards
+            run_backwards=args.run_backwards,
         )
 
 
@@ -150,10 +144,9 @@ def dag_trigger(args):
     """Creates a dag run for the specified dag"""
     api_client = get_current_api_client()
     try:
-        message = api_client.trigger_dag(dag_id=args.dag_id,
-                                         run_id=args.run_id,
-                                         conf=args.conf,
-                                         execution_date=args.exec_date)
+        message = api_client.trigger_dag(
+            dag_id=args.dag_id, run_id=args.run_id, conf=args.conf, execution_date=args.exec_date
+        )
         print(message)
     except OSError as err:
         raise AirflowException(err)
@@ -163,9 +156,13 @@ def dag_trigger(args):
 def dag_delete(args):
     """Deletes all DB records related to the specified dag"""
     api_client = get_current_api_client()
-    if args.yes or input(
-            "This will drop all existing records related to the specified DAG. "
-            "Proceed? (y/n)").upper() == "Y":
+    if (
+        args.yes
+        or input(
+            "This will drop all existing records related to the specified DAG. " "Proceed? (y/n)"
+        ).upper()
+        == "Y"
+    ):
         try:
             message = api_client.delete_dag(dag_id=args.dag_id)
             print(message)
@@ -207,7 +204,7 @@ def dag_show(args):
         print(
             "Option --save and --imgcat are mutually exclusive. "
             "Please remove one option to execute the command.",
-            file=sys.stderr
+            file=sys.stderr,
         )
         sys.exit(1)
     elif filename:
@@ -280,8 +277,11 @@ def dag_next_execution(args):
         next_execution_dttm = dag.following_schedule(latest_execution_date)
 
         if next_execution_dttm is None:
-            print("[WARN] No following schedule can be found. " +
-                  "This DAG may have schedule interval '@once' or `None`.", file=sys.stderr)
+            print(
+                "[WARN] No following schedule can be found. "
+                + "This DAG may have schedule interval '@once' or `None`.",
+                file=sys.stderr,
+            )
             print(None)
         else:
             print(next_execution_dttm)
@@ -327,17 +327,18 @@ def dag_list_jobs(args, dag=None):
         queries.append(BaseJob.state == args.state)
 
     with create_session() as session:
-        all_jobs = (session
-                    .query(BaseJob)
-                    .filter(*queries)
-                    .order_by(BaseJob.start_date.desc())
-                    .limit(args.limit)
-                    .all())
+        all_jobs = (
+            session.query(BaseJob)
+            .filter(*queries)
+            .order_by(BaseJob.start_date.desc())
+            .limit(args.limit)
+            .all()
+        )
         fields = ['dag_id', 'state', 'job_type', 'start_date', 'end_date']
         all_jobs = [[job.__getattribute__(field) for field in fields] for job in all_jobs]
-        msg = tabulate(all_jobs,
-                       [field.capitalize().replace('_', ' ') for field in fields],
-                       tablefmt=args.output)
+        msg = tabulate(
+            all_jobs, [field.capitalize().replace('_', ' ') for field in fields], tablefmt=args.output
+        )
         print(msg)
 
 
@@ -367,10 +368,7 @@ def dag_list_dag_runs(args, dag=None):
         return
 
     dag_runs.sort(key=lambda x: x.execution_date, reverse=True)
-    table = _tabulate_dag_runs(
-        dag_runs,
-        tablefmt=args.output
-    )
+    table = _tabulate_dag_runs(dag_runs, tablefmt=args.output)
     print(table)
 
 
@@ -389,10 +387,14 @@ def dag_test(args, session=None):
     imgcat = args.imgcat_dagrun
     filename = args.save_dagrun
     if show_dagrun or imgcat or filename:
-        tis = session.query(TaskInstance).filter(
-            TaskInstance.dag_id == args.dag_id,
-            TaskInstance.execution_date == args.execution_date,
-        ).all()
+        tis = (
+            session.query(TaskInstance)
+            .filter(
+                TaskInstance.dag_id == args.dag_id,
+                TaskInstance.execution_date == args.execution_date,
+            )
+            .all()
+        )
 
         dot_graph = render_dag(dag, tis=tis)
         print()
diff --git a/airflow/cli/commands/db_command.py b/airflow/cli/commands/db_command.py
index 6ba5b37..1b05bd0 100644
--- a/airflow/cli/commands/db_command.py
+++ b/airflow/cli/commands/db_command.py
@@ -35,9 +35,7 @@ def initdb(args):
 def resetdb(args):
     """Resets the metadata database"""
     print("DB: " + repr(settings.engine.url))
-    if args.yes or input("This will drop existing tables "
-                         "if they exist. Proceed? "
-                         "(y/n)").upper() == "Y":
+    if args.yes or input("This will drop existing tables " "if they exist. Proceed? " "(y/n)").upper() == "Y":
         db.resetdb()
     else:
         print("Cancelled")
@@ -63,14 +61,16 @@ def shell(args):
 
     if url.get_backend_name() == 'mysql':
         with NamedTemporaryFile(suffix="my.cnf") as f:
-            content = textwrap.dedent(f"""
+            content = textwrap.dedent(
+                f"""
                 [client]
                 host     = {url.host}
                 user     = {url.username}
                 password = {url.password or ""}
                 port     = {url.port or ""}
                 database = {url.database}
-                """).strip()
+                """
+            ).strip()
             f.write(content.encode())
             f.flush()
             execute_interactive(["mysql", f"--defaults-extra-file={f.name}"])
diff --git a/airflow/cli/commands/info_command.py b/airflow/cli/commands/info_command.py
index 3fcad45..a60a8c2 100644
--- a/airflow/cli/commands/info_command.py
+++ b/airflow/cli/commands/info_command.py
@@ -303,19 +303,17 @@ class ConfigInfo:
     @property
     def task_logging_handler(self):
         """Returns task logging handler."""
+
         def get_fullname(o):
             module = o.__class__.__module__
             if module is None or module == str.__class__.__module__:
                 return o.__class__.__name__  # Avoid reporting __builtin__
             else:
                 return module + '.' + o.__class__.__name__
+
         try:
-            handler_names = [
-                get_fullname(handler) for handler in logging.getLogger('airflow.task').handlers
-            ]
-            return ", ".join(
-                handler_names
-            )
+            handler_names = [get_fullname(handler) for handler in logging.getLogger('airflow.task').handlers]
+            return ", ".join(handler_names)
         except Exception:  # noqa pylint: disable=broad-except
             return "NOT AVAILABLE"
 
diff --git a/airflow/cli/commands/legacy_commands.py b/airflow/cli/commands/legacy_commands.py
index b66cc6f..94f9b69 100644
--- a/airflow/cli/commands/legacy_commands.py
+++ b/airflow/cli/commands/legacy_commands.py
@@ -44,7 +44,7 @@ COMMAND_MAP = {
     "pool": "pools",
     "list_users": "users list",
     "create_user": "users create",
-    "delete_user": "users delete"
+    "delete_user": "users delete",
 }
 
 
diff --git a/airflow/cli/commands/pool_command.py b/airflow/cli/commands/pool_command.py
index d824bd4..4984618 100644
--- a/airflow/cli/commands/pool_command.py
+++ b/airflow/cli/commands/pool_command.py
@@ -27,8 +27,7 @@ from airflow.utils import cli as cli_utils
 
 
 def _tabulate_pools(pools, tablefmt="fancy_grid"):
-    return "\n%s" % tabulate(pools, ['Pool', 'Slots', 'Description'],
-                             tablefmt=tablefmt)
+    return "\n%s" % tabulate(pools, ['Pool', 'Slots', 'Description'], tablefmt=tablefmt)
 
 
 def pool_list(args):
@@ -49,9 +48,7 @@ def pool_get(args):
 def pool_set(args):
     """Creates new pool with a given name and slots"""
     api_client = get_current_api_client()
-    pools = [api_client.create_pool(name=args.pool,
-                                    slots=args.slots,
-                                    description=args.description)]
+    pools = [api_client.create_pool(name=args.pool, slots=args.slots, description=args.description)]
     print(_tabulate_pools(pools=pools, tablefmt=args.output))
 
 
@@ -97,9 +94,9 @@ def pool_import_helper(filepath):
             counter = 0
             for k, v in pools_json.items():
                 if isinstance(v, dict) and len(v) == 2:
-                    pools.append(api_client.create_pool(name=k,
-                                                        slots=v["slots"],
-                                                        description=v["description"]))
+                    pools.append(
+                        api_client.create_pool(name=k, slots=v["slots"], description=v["description"])
+                    )
                     counter += 1
                 else:
                     pass
diff --git a/airflow/cli/commands/role_command.py b/airflow/cli/commands/role_command.py
index b4e6f59..fb34d8c 100644
--- a/airflow/cli/commands/role_command.py
+++ b/airflow/cli/commands/role_command.py
@@ -29,9 +29,7 @@ def roles_list(args):
     roles = appbuilder.sm.get_all_roles()
     print("Existing roles:\n")
     role_names = sorted([[r.name] for r in roles])
-    msg = tabulate(role_names,
-                   headers=['Role'],
-                   tablefmt=args.output)
+    msg = tabulate(role_names, headers=['Role'], tablefmt=args.output)
     print(msg)
 
 
diff --git a/airflow/cli/commands/rotate_fernet_key_command.py b/airflow/cli/commands/rotate_fernet_key_command.py
index 784eae8..10c32d2 100644
--- a/airflow/cli/commands/rotate_fernet_key_command.py
+++ b/airflow/cli/commands/rotate_fernet_key_command.py
@@ -24,8 +24,7 @@ from airflow.utils.session import create_session
 def rotate_fernet_key(args):
     """Rotates all encrypted connection credentials and variables"""
     with create_session() as session:
-        for conn in session.query(Connection).filter(
-                Connection.is_encrypted | Connection.is_extra_encrypted):
+        for conn in session.query(Connection).filter(Connection.is_encrypted | Connection.is_extra_encrypted):
             conn.rotate_fernet_key()
         for var in session.query(Variable).filter(Variable.is_encrypted):
             var.rotate_fernet_key()
diff --git a/airflow/cli/commands/scheduler_command.py b/airflow/cli/commands/scheduler_command.py
index f0f019a..100a0f1 100644
--- a/airflow/cli/commands/scheduler_command.py
+++ b/airflow/cli/commands/scheduler_command.py
@@ -34,14 +34,13 @@ def scheduler(args):
     job = SchedulerJob(
         subdir=process_subdir(args.subdir),
         num_runs=args.num_runs,
-        do_pickle=args.do_pickle)
+        do_pickle=args.do_pickle,
+    )
 
     if args.daemon:
-        pid, stdout, stderr, log_file = setup_locations("scheduler",
-                                                        args.pid,
-                                                        args.stdout,
-                                                        args.stderr,
-                                                        args.log_file)
+        pid, stdout, stderr, log_file = setup_locations(
+            "scheduler", args.pid, args.stdout, args.stderr, args.log_file
+        )
         handle = setup_logging(log_file)
         stdout = open(stdout, 'w+')
         stderr = open(stderr, 'w+')
diff --git a/airflow/cli/commands/sync_perm_command.py b/airflow/cli/commands/sync_perm_command.py
index 3a31ea0..b072e8d 100644
--- a/airflow/cli/commands/sync_perm_command.py
+++ b/airflow/cli/commands/sync_perm_command.py
@@ -30,6 +30,4 @@ def sync_perm(args):
     print('Updating permission on all DAG views')
     dags = DagBag(read_dags_from_db=True).dags.values()
     for dag in dags:
-        appbuilder.sm.sync_perm_for_dag(
-            dag.dag_id,
-            dag.access_control)
+        appbuilder.sm.sync_perm_for_dag(dag.dag_id, dag.access_control)
diff --git a/airflow/cli/commands/task_command.py b/airflow/cli/commands/task_command.py
index 46f670b..3fa1d1f 100644
--- a/airflow/cli/commands/task_command.py
+++ b/airflow/cli/commands/task_command.py
@@ -77,8 +77,7 @@ def _run_task_by_executor(args, dag, ti):
                 session.add(pickle)
                 pickle_id = pickle.id
                 # TODO: This should be written to a log
-                print('Pickled dag {dag} as pickle_id: {pickle_id}'.format(
-                    dag=dag, pickle_id=pickle_id))
+                print(f'Pickled dag {dag} as pickle_id: {pickle_id}')
         except Exception as e:
             print('Could not pickle the DAG')
             print(e)
@@ -94,7 +93,8 @@ def _run_task_by_executor(args, dag, ti):
         ignore_depends_on_past=args.ignore_depends_on_past,
         ignore_task_deps=args.ignore_dependencies,
         ignore_ti_state=args.force,
-        pool=args.pool)
+        pool=args.pool,
+    )
     executor.heartbeat()
     executor.end()
 
@@ -109,12 +109,16 @@ def _run_task_by_local_task_job(args, ti):
         ignore_depends_on_past=args.ignore_depends_on_past,
         ignore_task_deps=args.ignore_dependencies,
         ignore_ti_state=args.force,
-        pool=args.pool)
+        pool=args.pool,
+    )
     run_job.run()
 
 
 RAW_TASK_UNSUPPORTED_OPTION = [
-    "ignore_all_dependencies", "ignore_depends_on_past", "ignore_dependencies", "force"
+    "ignore_all_dependencies",
+    "ignore_depends_on_past",
+    "ignore_dependencies",
+    "force",
 ]
 
 
@@ -182,8 +186,9 @@ def task_run(args, dag=None):
         _run_task_by_selected_method(args, dag, ti)
     else:
         if settings.DONOT_MODIFY_HANDLERS:
-            with redirect_stdout(StreamLogWriter(ti.log, logging.INFO)), \
-                    redirect_stderr(StreamLogWriter(ti.log, logging.WARN)):
+            with redirect_stdout(StreamLogWriter(ti.log, logging.INFO)), redirect_stderr(
+                StreamLogWriter(ti.log, logging.WARN)
+            ):
                 _run_task_by_selected_method(args, dag, ti)
         else:
             # Get all the Handlers from 'airflow.task' logger
@@ -201,8 +206,9 @@ def task_run(args, dag=None):
                 root_logger.addHandler(handler)
             root_logger.setLevel(logging.getLogger('airflow.task').level)
 
-            with redirect_stdout(StreamLogWriter(ti.log, logging.INFO)), \
-                    redirect_stderr(StreamLogWriter(ti.log, logging.WARN)):
+            with redirect_stdout(StreamLogWriter(ti.log, logging.INFO)), redirect_stderr(
+                StreamLogWriter(ti.log, logging.WARN)
+            ):
                 _run_task_by_selected_method(args, dag, ti)
 
             # We need to restore the handlers to the loggers as celery worker process
@@ -300,15 +306,18 @@ def task_states_for_dag_run(args):
     """Get the status of all task instances in a DagRun"""
     session = settings.Session()
 
-    tis = session.query(
-        TaskInstance.dag_id,
-        TaskInstance.execution_date,
-        TaskInstance.task_id,
-        TaskInstance.state,
-        TaskInstance.start_date,
-        TaskInstance.end_date).filter(
-        TaskInstance.dag_id == args.dag_id,
-        TaskInstance.execution_date == args.execution_date).all()
+    tis = (
+        session.query(
+            TaskInstance.dag_id,
+            TaskInstance.execution_date,
+            TaskInstance.task_id,
+            TaskInstance.state,
+            TaskInstance.start_date,
+            TaskInstance.end_date,
+        )
+        .filter(TaskInstance.dag_id == args.dag_id, TaskInstance.execution_date == args.execution_date)
+        .all()
+    )
 
     if len(tis) == 0:
         raise AirflowException("DagRun does not exist.")
@@ -316,18 +325,18 @@ def task_states_for_dag_run(args):
     formatted_rows = []
 
     for ti in tis:
-        formatted_rows.append((ti.dag_id,
-                               ti.execution_date,
-                               ti.task_id,
-                               ti.state,
-                               ti.start_date,
-                               ti.end_date))
+        formatted_rows.append(
+            (ti.dag_id, ti.execution_date, ti.task_id, ti.state, ti.start_date, ti.end_date)
+        )
 
     print(
-        "\n%s" %
-        tabulate(
-            formatted_rows, [
-                'dag', 'exec_date', 'task', 'state', 'start_date', 'end_date'], tablefmt=args.output))
+        "\n%s"
+        % tabulate(
+            formatted_rows,
+            ['dag', 'exec_date', 'task', 'state', 'start_date', 'end_date'],
+            tablefmt=args.output,
+        )
+    )
 
     session.close()
 
@@ -387,20 +396,24 @@ def task_render(args):
     ti = TaskInstance(task, args.execution_date)
     ti.render_templates()
     for attr in task.__class__.template_fields:
-        print(textwrap.dedent("""\
+        print(
+            textwrap.dedent(
+                """\
         # ----------------------------------------------------------
         # property: {}
         # ----------------------------------------------------------
         {}
-        """.format(attr, getattr(task, attr))))
+        """.format(
+                    attr, getattr(task, attr)
+                )
+            )
+        )
 
 
 @cli_utils.action_logging
 def task_clear(args):
     """Clears all task instances or only those matched by regex for a DAG(s)"""
-    logging.basicConfig(
-        level=settings.LOGGING_LEVEL,
-        format=settings.SIMPLE_LOG_FORMAT)
+    logging.basicConfig(level=settings.LOGGING_LEVEL, format=settings.SIMPLE_LOG_FORMAT)
 
     if args.dag_id and not args.subdir and not args.dag_regex and not args.task_regex:
         dags = get_dag_by_file_location(args.dag_id)
@@ -413,7 +426,8 @@ def task_clear(args):
                 dags[idx] = dag.partial_subset(
                     task_ids_or_regex=args.task_regex,
                     include_downstream=args.downstream,
-                    include_upstream=args.upstream)
+                    include_upstream=args.upstream,
+                )
 
     DAG.clear_dags(
         dags,
diff --git a/airflow/cli/commands/user_command.py b/airflow/cli/commands/user_command.py
index 90a8f2a..7536ce6 100644
--- a/airflow/cli/commands/user_command.py
+++ b/airflow/cli/commands/user_command.py
@@ -36,8 +36,7 @@ def users_list(args):
     users = appbuilder.sm.get_all_users()
     fields = ['id', 'username', 'email', 'first_name', 'last_name', 'roles']
     users = [[user.__getattribute__(field) for field in fields] for user in users]
-    msg = tabulate(users, [field.capitalize().replace('_', ' ') for field in fields],
-                   tablefmt=args.output)
+    msg = tabulate(users, [field.capitalize().replace('_', ' ') for field in fields], tablefmt=args.output)
     print(msg)
 
 
@@ -63,8 +62,7 @@ def users_create(args):
     if appbuilder.sm.find_user(args.username):
         print(f'{args.username} already exist in the db')
         return
-    user = appbuilder.sm.add_user(args.username, args.firstname, args.lastname,
-                                  args.email, role, password)
+    user = appbuilder.sm.add_user(args.username, args.firstname, args.lastname, args.email, role, password)
     if user:
         print(f'{args.role} user {args.username} created.')
     else:
@@ -77,8 +75,7 @@ def users_delete(args):
     appbuilder = cached_app().appbuilder  # pylint: disable=no-member
 
     try:
-        user = next(u for u in appbuilder.sm.get_all_users()
-                    if u.username == args.username)
+        user = next(u for u in appbuilder.sm.get_all_users() if u.username == args.username)
     except StopIteration:
         raise SystemExit(f'{args.username} is not a valid user.')
 
@@ -95,15 +92,12 @@ def users_manage_role(args, remove=False):
         raise SystemExit('Missing args: must supply one of --username or --email')
 
     if args.username and args.email:
-        raise SystemExit('Conflicting args: must supply either --username'
-                         ' or --email, but not both')
+        raise SystemExit('Conflicting args: must supply either --username' ' or --email, but not both')
 
     appbuilder = cached_app().appbuilder  # pylint: disable=no-member
-    user = (appbuilder.sm.find_user(username=args.username) or
-            appbuilder.sm.find_user(email=args.email))
+    user = appbuilder.sm.find_user(username=args.username) or appbuilder.sm.find_user(email=args.email)
     if not user:
-        raise SystemExit('User "{}" does not exist'.format(
-            args.username or args.email))
+        raise SystemExit('User "{}" does not exist'.format(args.username or args.email))
 
     role = appbuilder.sm.find_role(args.role)
     if not role:
@@ -114,24 +108,16 @@ def users_manage_role(args, remove=False):
         if role in user.roles:
             user.roles = [r for r in user.roles if r != role]
             appbuilder.sm.update_user(user)
-            print('User "{}" removed from role "{}".'.format(
-                user,
-                args.role))
+            print(f'User "{user}" removed from role "{args.role}".')
         else:
-            raise SystemExit('User "{}" is not a member of role "{}".'.format(
-                user,
-                args.role))
+            raise SystemExit(f'User "{user}" is not a member of role "{args.role}".')
     else:
         if role in user.roles:
-            raise SystemExit('User "{}" is already a member of role "{}".'.format(
-                user,
-                args.role))
+            raise SystemExit(f'User "{user}" is already a member of role "{args.role}".')
         else:
             user.roles.append(role)
             appbuilder.sm.update_user(user)
-            print('User "{}" added to role "{}".'.format(
-                user,
-                args.role))
+            print(f'User "{user}" added to role "{args.role}".')
 
 
 def users_export(args):
@@ -146,9 +132,12 @@ def users_export(args):
         return re.sub("_", "", s)
 
     users = [
-        {remove_underscores(field): user.__getattribute__(field)
-            if field != 'roles' else [r.name for r in user.roles]
-            for field in fields}
+        {
+            remove_underscores(field): user.__getattribute__(field)
+            if field != 'roles'
+            else [r.name for r in user.roles]
+            for field in fields
+        }
         for user in users
     ]
 
@@ -175,12 +164,10 @@ def users_import(args):
 
     users_created, users_updated = _import_users(users_list)
     if users_created:
-        print("Created the following users:\n\t{}".format(
-            "\n\t".join(users_created)))
+        print("Created the following users:\n\t{}".format("\n\t".join(users_created)))
 
     if users_updated:
-        print("Updated the following users:\n\t{}".format(
-            "\n\t".join(users_updated)))
+        print("Updated the following users:\n\t{}".format("\n\t".join(users_updated)))
 
 
 def _import_users(users_list):  # pylint: disable=redefined-outer-name
@@ -199,12 +186,10 @@ def _import_users(users_list):  # pylint: disable=redefined-outer-name
             else:
                 roles.append(role)
 
-        required_fields = ['username', 'firstname', 'lastname',
-                           'email', 'roles']
+        required_fields = ['username', 'firstname', 'lastname', 'email', 'roles']
         for field in required_fields:
             if not user.get(field):
-                print("Error: '{}' is a required field, but was not "
-                      "specified".format(field))
+                print("Error: '{}' is a required field, but was not " "specified".format(field))
                 sys.exit(1)
 
         existing_user = appbuilder.sm.find_user(email=user['email'])
@@ -215,9 +200,11 @@ def _import_users(users_list):  # pylint: disable=redefined-outer-name
             existing_user.last_name = user['lastname']
 
             if existing_user.username != user['username']:
-                print("Error: Changing the username is not allowed - "
-                      "please delete and recreate the user with "
-                      "email '{}'".format(user['email']))
+                print(
+                    "Error: Changing the username is not allowed - "
+                    "please delete and recreate the user with "
+                    "email '{}'".format(user['email'])
+                )
                 sys.exit(1)
 
             appbuilder.sm.update_user(existing_user)
diff --git a/airflow/cli/commands/variable_command.py b/airflow/cli/commands/variable_command.py
index 1781b36..e76dc80 100644
--- a/airflow/cli/commands/variable_command.py
+++ b/airflow/cli/commands/variable_command.py
@@ -37,17 +37,10 @@ def variables_get(args):
     """Displays variable by a given name"""
     try:
         if args.default is None:
-            var = Variable.get(
-                args.key,
-                deserialize_json=args.json
-            )
+            var = Variable.get(args.key, deserialize_json=args.json)
             print(var)
         else:
-            var = Variable.get(
-                args.key,
-                deserialize_json=args.json,
-                default_var=args.default
-            )
+            var = Variable.get(args.key, deserialize_json=args.json, default_var=args.default)
             print(var)
     except (ValueError, KeyError) as e:
         print(str(e), file=sys.stderr)
diff --git a/airflow/cli/commands/webserver_command.py b/airflow/cli/commands/webserver_command.py
index 5a4f7e2..1b3f913 100644
--- a/airflow/cli/commands/webserver_command.py
+++ b/airflow/cli/commands/webserver_command.py
@@ -87,7 +87,7 @@ class GunicornMonitor(LoggingMixin):
         master_timeout: int,
         worker_refresh_interval: int,
         worker_refresh_batch_size: int,
-        reload_on_plugin_change: bool
+        reload_on_plugin_change: bool,
     ):
         super().__init__()
         self.gunicorn_master_proc = psutil.Process(gunicorn_master_pid)
@@ -152,9 +152,7 @@ class GunicornMonitor(LoggingMixin):
         start_time = time.time()
         while not fn():
             if 0 < timeout <= time.time() - start_time:
-                raise AirflowWebServerTimeout(
-                    f"No response from gunicorn master within {timeout} seconds"
-                )
+                raise AirflowWebServerTimeout(f"No response from gunicorn master within {timeout} seconds")
             sleep(0.1)
 
     def _spawn_new_workers(self, count: int) -> None:
@@ -170,7 +168,7 @@ class GunicornMonitor(LoggingMixin):
             excess += 1
             self._wait_until_true(
                 lambda: self.num_workers_expected + excess == self._get_num_workers_running(),
-                timeout=self.master_timeout
+                timeout=self.master_timeout,
             )
 
     def _kill_old_workers(self, count: int) -> None:
@@ -185,7 +183,8 @@ class GunicornMonitor(LoggingMixin):
             self.gunicorn_master_proc.send_signal(signal.SIGTTOU)
             self._wait_until_true(
                 lambda: self.num_workers_expected + count == self._get_num_workers_running(),
-                timeout=self.master_timeout)
+                timeout=self.master_timeout,
+            )
 
     def _reload_gunicorn(self) -> None:
         """
@@ -197,8 +196,7 @@ class GunicornMonitor(LoggingMixin):
         self.gunicorn_master_proc.send_signal(signal.SIGHUP)
         sleep(1)
         self._wait_until_true(
-            lambda: self.num_workers_expected == self._get_num_workers_running(),
-            timeout=self.master_timeout
+            lambda: self.num_workers_expected == self._get_num_workers_running(), timeout=self.master_timeout
         )
 
     def start(self) -> NoReturn:
@@ -206,7 +204,7 @@ class GunicornMonitor(LoggingMixin):
         try:  # pylint: disable=too-many-nested-blocks
             self._wait_until_true(
                 lambda: self.num_workers_expected == self._get_num_workers_running(),
-                timeout=self.master_timeout
+                timeout=self.master_timeout,
             )
             while True:
                 if not self.gunicorn_master_proc.is_running():
@@ -232,7 +230,8 @@ class GunicornMonitor(LoggingMixin):
         if num_ready_workers_running < num_workers_running:
             self.log.debug(
                 '[%d / %d] Some workers are starting up, waiting...',
-                num_ready_workers_running, num_workers_running
+                num_ready_workers_running,
+                num_workers_running,
             )
             sleep(1)
             return
@@ -251,9 +250,9 @@ class GunicornMonitor(LoggingMixin):
         # to increase number of workers
         if num_workers_running < self.num_workers_expected:
             self.log.error(
-                "[%d / %d] Some workers seem to have died and gunicorn did not restart "
-                "them as expected",
-                num_ready_workers_running, num_workers_running
+                "[%d / %d] Some workers seem to have died and gunicorn did not restart " "them as expected",
+                num_ready_workers_running,
+                num_workers_running,
             )
             sleep(10)
             num_workers_running = self._get_num_workers_running()
@@ -263,7 +262,9 @@ class GunicornMonitor(LoggingMixin):
                 )
                 self.log.debug(
                     '[%d / %d] Spawning %d workers',
-                    num_ready_workers_running, num_workers_running, new_worker_count
+                    num_ready_workers_running,
+                    num_workers_running,
+                    new_worker_count,
                 )
                 self._spawn_new_workers(num_workers_running)
             return
@@ -273,12 +274,14 @@ class GunicornMonitor(LoggingMixin):
         # If workers should be restarted periodically.
         if self.worker_refresh_interval > 0 and self._last_refresh_time:
             # and we refreshed the workers a long time ago, refresh the workers
-            last_refresh_diff = (time.time() - self._last_refresh_time)
+            last_refresh_diff = time.time() - self._last_refresh_time
             if self.worker_refresh_interval < last_refresh_diff:
                 num_new_workers = self.worker_refresh_batch_size
                 self.log.debug(
                     '[%d / %d] Starting doing a refresh. Starting %d workers.',
-                    num_ready_workers_running, num_workers_running, num_new_workers
+                    num_ready_workers_running,
+                    num_workers_running,
+                    num_new_workers,
                 )
                 self._spawn_new_workers(num_new_workers)
                 self._last_refresh_time = time.time()
@@ -293,14 +296,16 @@ class GunicornMonitor(LoggingMixin):
                 self.log.debug(
                     '[%d / %d] Plugins folder changed. The gunicorn will be restarted the next time the '
                     'plugin directory is checked, if there is no change in it.',
-                    num_ready_workers_running, num_workers_running
+                    num_ready_workers_running,
+                    num_workers_running,
                 )
                 self._restart_on_next_plugin_check = True
                 self._last_plugin_state = new_state
             elif self._restart_on_next_plugin_check:
                 self.log.debug(
                     '[%d / %d] Starts reloading the gunicorn configuration.',
-                    num_ready_workers_running, num_workers_running
+                    num_ready_workers_running,
+                    num_workers_running,
                 )
                 self._restart_on_next_plugin_check = False
                 self._last_refresh_time = time.time()
@@ -315,25 +320,24 @@ def webserver(args):
     access_logfile = args.access_logfile or conf.get('webserver', 'access_logfile')
     error_logfile = args.error_logfile or conf.get('webserver', 'error_logfile')
     num_workers = args.workers or conf.get('webserver', 'workers')
-    worker_timeout = (args.worker_timeout or
-                      conf.get('webserver', 'web_server_worker_timeout'))
+    worker_timeout = args.worker_timeout or conf.get('webserver', 'web_server_worker_timeout')
     ssl_cert = args.ssl_cert or conf.get('webserver', 'web_server_ssl_cert')
     ssl_key = args.ssl_key or conf.get('webserver', 'web_server_ssl_key')
     if not ssl_cert and ssl_key:
-        raise AirflowException(
-            'An SSL certificate must also be provided for use with ' + ssl_key)
+        raise AirflowException('An SSL certificate must also be provided for use with ' + ssl_key)
     if ssl_cert and not ssl_key:
-        raise AirflowException(
-            'An SSL key must also be provided for use with ' + ssl_cert)
+        raise AirflowException('An SSL key must also be provided for use with ' + ssl_cert)
 
     if args.debug:
-        print(
-            "Starting the web server on port {} and host {}.".format(
-                args.port, args.hostname))
+        print(f"Starting the web server on port {args.port} and host {args.hostname}.")
         app = create_app(testing=conf.getboolean('core', 'unit_test_mode'))
-        app.run(debug=True, use_reloader=not app.config['TESTING'],
-                port=args.port, host=args.hostname,
-                ssl_context=(ssl_cert, ssl_key) if ssl_cert and ssl_key else None)
+        app.run(
+            debug=True,
+            use_reloader=not app.config['TESTING'],
+            port=args.port,
+            host=args.hostname,
+            ssl_context=(ssl_cert, ssl_key) if ssl_cert and ssl_key else None,
+        )
     else:
         # This pre-warms the cache, and makes possible errors
         # get reported earlier (i.e. before demonization)
@@ -342,33 +346,49 @@ def webserver(args):
         os.environ.pop('SKIP_DAGS_PARSING')
 
         pid_file, stdout, stderr, log_file = setup_locations(
-            "webserver", args.pid, args.stdout, args.stderr, args.log_file)
+            "webserver", args.pid, args.stdout, args.stderr, args.log_file
+        )
 
         # Check if webserver is already running if not, remove old pidfile
         check_if_pidfile_process_is_running(pid_file=pid_file, process_name="webserver")
 
         print(
-            textwrap.dedent('''\
+            textwrap.dedent(
+                '''\
                 Running the Gunicorn Server with:
                 Workers: {num_workers} {workerclass}
                 Host: {hostname}:{port}
                 Timeout: {worker_timeout}
                 Logfiles: {access_logfile} {error_logfile}
                 =================================================================\
-            '''.format(num_workers=num_workers, workerclass=args.workerclass,
-                       hostname=args.hostname, port=args.port,
-                       worker_timeout=worker_timeout, access_logfile=access_logfile,
-                       error_logfile=error_logfile)))
+            '''.format(
+                    num_workers=num_workers,
+                    workerclass=args.workerclass,
+                    hostname=args.hostname,
+                    port=args.port,
+                    worker_timeout=worker_timeout,
+                    access_logfile=access_logfile,
+                    error_logfile=error_logfile,
+                )
+            )
+        )
 
         run_args = [
             'gunicorn',
-            '--workers', str(num_workers),
-            '--worker-class', str(args.workerclass),
-            '--timeout', str(worker_timeout),
-            '--bind', args.hostname + ':' + str(args.port),
-            '--name', 'airflow-webserver',
-            '--pid', pid_file,
-            '--config', 'python:airflow.www.gunicorn_config',
+            '--workers',
+            str(num_workers),
+            '--worker-class',
+            str(args.workerclass),
+            '--timeout',
+            str(worker_timeout),
+            '--bind',
+            args.hostname + ':' + str(args.port),
+            '--name',
+            'airflow-webserver',
+            '--pid',
+            pid_file,
+            '--config',
+            'python:airflow.www.gunicorn_config',
         ]
 
         if args.access_logfile:
diff --git a/airflow/config_templates/airflow_local_settings.py b/airflow/config_templates/airflow_local_settings.py
index 67c5444..16b372c 100644
--- a/airflow/config_templates/airflow_local_settings.py
+++ b/airflow/config_templates/airflow_local_settings.py
@@ -58,19 +58,17 @@ DEFAULT_LOGGING_CONFIG: Dict[str, Any] = {
     'version': 1,
     'disable_existing_loggers': False,
     'formatters': {
-        'airflow': {
-            'format': LOG_FORMAT
-        },
+        'airflow': {'format': LOG_FORMAT},
         'airflow_coloured': {
             'format': COLORED_LOG_FORMAT if COLORED_LOG else LOG_FORMAT,
-            'class': COLORED_FORMATTER_CLASS if COLORED_LOG else 'logging.Formatter'
+            'class': COLORED_FORMATTER_CLASS if COLORED_LOG else 'logging.Formatter',
         },
     },
     'handlers': {
         'console': {
             'class': 'airflow.utils.log.logging_mixin.RedirectStdHandler',
             'formatter': 'airflow_coloured',
-            'stream': 'sys.stdout'
+            'stream': 'sys.stdout',
         },
         'task': {
             'class': 'airflow.utils.log.file_task_handler.FileTaskHandler',
@@ -83,7 +81,7 @@ DEFAULT_LOGGING_CONFIG: Dict[str, Any] = {
             'formatter': 'airflow',
             'base_log_folder': os.path.expanduser(PROCESSOR_LOG_FOLDER),
             'filename_template': PROCESSOR_FILENAME_TEMPLATE,
-        }
+        },
     },
     'loggers': {
         'airflow.processor': {
@@ -100,19 +98,22 @@ DEFAULT_LOGGING_CONFIG: Dict[str, Any] = {
             'handler': ['console'],
             'level': FAB_LOG_LEVEL,
             'propagate': True,
-        }
+        },
     },
     'root': {
         'handlers': ['console'],
         'level': LOG_LEVEL,
-    }
+    },
 }
 
 EXTRA_LOGGER_NAMES: str = conf.get('logging', 'EXTRA_LOGGER_NAMES', fallback=None)
 if EXTRA_LOGGER_NAMES:
     new_loggers = {
         logger_name.strip(): {
-            'handler': ['console'], 'level': LOG_LEVEL, 'propagate': True, }
+            'handler': ['console'],
+            'level': LOG_LEVEL,
+            'propagate': True,
+        }
         for logger_name in EXTRA_LOGGER_NAMES.split(",")
     }
     DEFAULT_LOGGING_CONFIG['loggers'].update(new_loggers)
@@ -125,7 +126,7 @@ DEFAULT_DAG_PARSING_LOGGING_CONFIG: Dict[str, Dict[str, Dict[str, Any]]] = {
             'filename': DAG_PROCESSOR_MANAGER_LOG_LOCATION,
             'mode': 'a',
             'maxBytes': 104857600,  # 100MB
-            'backupCount': 5
+            'backupCount': 5,
         }
     },
     'loggers': {
@@ -134,22 +135,21 @@ DEFAULT_DAG_PARSING_LOGGING_CONFIG: Dict[str, Dict[str, Dict[str, Any]]] = {
             'level': LOG_LEVEL,
             'propagate': False,
         }
-    }
+    },
 }
 
 # Only update the handlers and loggers when CONFIG_PROCESSOR_MANAGER_LOGGER is set.
 # This is to avoid exceptions when initializing RotatingFileHandler multiple times
 # in multiple processes.
 if os.environ.get('CONFIG_PROCESSOR_MANAGER_LOGGER') == 'True':
-    DEFAULT_LOGGING_CONFIG['handlers'] \
-        .update(DEFAULT_DAG_PARSING_LOGGING_CONFIG['handlers'])
-    DEFAULT_LOGGING_CONFIG['loggers'] \
-        .update(DEFAULT_DAG_PARSING_LOGGING_CONFIG['loggers'])
+    DEFAULT_LOGGING_CONFIG['handlers'].update(DEFAULT_DAG_PARSING_LOGGING_CONFIG['handlers'])
+    DEFAULT_LOGGING_CONFIG['loggers'].update(DEFAULT_DAG_PARSING_LOGGING_CONFIG['loggers'])
 
     # Manually create log directory for processor_manager handler as RotatingFileHandler
     # will only create file but not the directory.
-    processor_manager_handler_config: Dict[str, Any] = \
-        DEFAULT_DAG_PARSING_LOGGING_CONFIG['handlers']['processor_manager']
+    processor_manager_handler_config: Dict[str, Any] = DEFAULT_DAG_PARSING_LOGGING_CONFIG['handlers'][
+        'processor_manager'
+    ]
     directory: str = os.path.dirname(processor_manager_handler_config['filename'])
     Path(directory).mkdir(parents=True, exist_ok=True, mode=0o755)
 
@@ -204,7 +204,7 @@ if REMOTE_LOGGING:
                 'base_log_folder': str(os.path.expanduser(BASE_LOG_FOLDER)),
                 'gcs_log_folder': REMOTE_BASE_LOG_FOLDER,
                 'filename_template': FILENAME_TEMPLATE,
-                'gcp_key_path': key_path
+                'gcp_key_path': key_path,
             },
         }
 
@@ -232,7 +232,7 @@ if REMOTE_LOGGING:
                 'class': 'airflow.providers.google.cloud.log.stackdriver_task_handler.StackdriverTaskHandler',
                 'formatter': 'airflow',
                 'name': log_name,
-                'gcp_key_path': key_path
+                'gcp_key_path': key_path,
             }
         }
 
@@ -257,7 +257,7 @@ if REMOTE_LOGGING:
                 'frontend': ELASTICSEARCH_FRONTEND,
                 'write_stdout': ELASTICSEARCH_WRITE_STDOUT,
                 'json_format': ELASTICSEARCH_JSON_FORMAT,
-                'json_fields': ELASTICSEARCH_JSON_FIELDS
+                'json_fields': ELASTICSEARCH_JSON_FIELDS,
             },
         }
 
@@ -266,4 +266,5 @@ if REMOTE_LOGGING:
         raise AirflowException(
             "Incorrect remote log configuration. Please check the configuration of option 'host' in "
             "section 'elasticsearch' if you are using Elasticsearch. In the other case, "
-            "'remote_base_log_folder' option in 'core' section.")
+            "'remote_base_log_folder' option in 'core' section."
+        )
diff --git a/airflow/config_templates/default_celery.py b/airflow/config_templates/default_celery.py
index b12bf14..14d4c0f 100644
--- a/airflow/config_templates/default_celery.py
+++ b/airflow/config_templates/default_celery.py
@@ -59,30 +59,43 @@ except AirflowConfigException:
 try:
     if celery_ssl_active:
         if 'amqp://' in broker_url:
-            broker_use_ssl = {'keyfile': conf.get('celery', 'SSL_KEY'),
-                              'certfile': conf.get('celery', 'SSL_CERT'),
-                              'ca_certs': conf.get('celery', 'SSL_CACERT'),
-                              'cert_reqs': ssl.CERT_REQUIRED}
+            broker_use_ssl = {
+                'keyfile': conf.get('celery', 'SSL_KEY'),
+                'certfile': conf.get('celery', 'SSL_CERT'),
+                'ca_certs': conf.get('celery', 'SSL_CACERT'),
+                'cert_reqs': ssl.CERT_REQUIRED,
+            }
         elif 'redis://' in broker_url:
-            broker_use_ssl = {'ssl_keyfile': conf.get('celery', 'SSL_KEY'),
-                              'ssl_certfile': conf.get('celery', 'SSL_CERT'),
-                              'ssl_ca_certs': conf.get('celery', 'SSL_CACERT'),
-                              'ssl_cert_reqs': ssl.CERT_REQUIRED}
+            broker_use_ssl = {
+                'ssl_keyfile': conf.get('celery', 'SSL_KEY'),
+                'ssl_certfile': conf.get('celery', 'SSL_CERT'),
+                'ssl_ca_certs': conf.get('celery', 'SSL_CACERT'),
+                'ssl_cert_reqs': ssl.CERT_REQUIRED,
+            }
         else:
-            raise AirflowException('The broker you configured does not support SSL_ACTIVE to be True. '
-                                   'Please use RabbitMQ or Redis if you would like to use SSL for broker.')
+            raise AirflowException(
+                'The broker you configured does not support SSL_ACTIVE to be True. '
+                'Please use RabbitMQ or Redis if you would like to use SSL for broker.'
+            )
 
         DEFAULT_CELERY_CONFIG['broker_use_ssl'] = broker_use_ssl
 except AirflowConfigException:
-    raise AirflowException('AirflowConfigException: SSL_ACTIVE is True, '
-                           'please ensure SSL_KEY, '
-                           'SSL_CERT and SSL_CACERT are set')
+    raise AirflowException(
+        'AirflowConfigException: SSL_ACTIVE is True, '
+        'please ensure SSL_KEY, '
+        'SSL_CERT and SSL_CACERT are set'
+    )
 except Exception as e:
-    raise AirflowException('Exception: There was an unknown Celery SSL Error. '
-                           'Please ensure you want to use '
-                           'SSL and/or have all necessary certs and key ({}).'.format(e))
+    raise AirflowException(
+        'Exception: There was an unknown Celery SSL Error. '
+        'Please ensure you want to use '
+        'SSL and/or have all necessary certs and key ({}).'.format(e)
+    )
 
 result_backend = DEFAULT_CELERY_CONFIG['result_backend']
 if 'amqp://' in result_backend or 'redis://' in result_backend or 'rpc://' in result_backend:
-    log.warning("You have configured a result_backend of %s, it is highly recommended "
-                "to use an alternative result_backend (i.e. a database).", result_backend)
+    log.warning(
+        "You have configured a result_backend of %s, it is highly recommended "
+        "to use an alternative result_backend (i.e. a database).",
+        result_backend,
+    )
diff --git a/airflow/configuration.py b/airflow/configuration.py
index bc4b041..b5d1aa2 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -28,6 +28,7 @@ import sys
 import warnings
 from base64 import b64encode
 from collections import OrderedDict
+
 # Ignored Mypy on configparser because it thinks the configparser module has no _UNSET attribute
 from configparser import _UNSET, ConfigParser, NoOptionError, NoSectionError  # type: ignore
 from json.decoder import JSONDecodeError
diff --git a/airflow/contrib/__init__.py b/airflow/contrib/__init__.py
index e852a59..3a89862 100644
--- a/airflow/contrib/__init__.py
+++ b/airflow/contrib/__init__.py
@@ -19,6 +19,4 @@
 
 import warnings
 
-warnings.warn(
-    "This module is deprecated.", DeprecationWarning, stacklevel=2
-)
+warnings.warn("This module is deprecated.", DeprecationWarning, stacklevel=2)
diff --git a/airflow/contrib/hooks/aws_dynamodb_hook.py b/airflow/contrib/hooks/aws_dynamodb_hook.py
index 9ea6e1d..fc6bd1b 100644
--- a/airflow/contrib/hooks/aws_dynamodb_hook.py
+++ b/airflow/contrib/hooks/aws_dynamodb_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.hooks.dynamodb import AwsDynamoDBHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.dynamodb`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/aws_glue_catalog_hook.py b/airflow/contrib/hooks/aws_glue_catalog_hook.py
index f36820e..59733ea 100644
--- a/airflow/contrib/hooks/aws_glue_catalog_hook.py
+++ b/airflow/contrib/hooks/aws_glue_catalog_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.hooks.glue_catalog import AwsGlueCatalogHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.glue_catalog`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/aws_hook.py b/airflow/contrib/hooks/aws_hook.py
index 55bd951..c185776 100644
--- a/airflow/contrib/hooks/aws_hook.py
+++ b/airflow/contrib/hooks/aws_hook.py
@@ -24,7 +24,8 @@ from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook, _parse_s3_c
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.base_aws`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -34,6 +35,7 @@ class AwsHook(AwsBaseHook):
     def __init__(self, *args, **kwargs):
         warnings.warn(
             "This class is deprecated. Please use `airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/aws_logs_hook.py b/airflow/contrib/hooks/aws_logs_hook.py
index d2b3446..ab27562 100644
--- a/airflow/contrib/hooks/aws_logs_hook.py
+++ b/airflow/contrib/hooks/aws_logs_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.hooks.logs import AwsLogsHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.logs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/azure_container_instance_hook.py b/airflow/contrib/hooks/azure_container_instance_hook.py
index eaa0ff6..eaa9f09 100644
--- a/airflow/contrib/hooks/azure_container_instance_hook.py
+++ b/airflow/contrib/hooks/azure_container_instance_hook.py
@@ -30,5 +30,6 @@ from airflow.providers.microsoft.azure.hooks.azure_container_instance import (
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.microsoft.azure.hooks.azure_container_instance`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/azure_container_registry_hook.py b/airflow/contrib/hooks/azure_container_registry_hook.py
index 22260c4..fe9cfdc 100644
--- a/airflow/contrib/hooks/azure_container_registry_hook.py
+++ b/airflow/contrib/hooks/azure_container_registry_hook.py
@@ -30,5 +30,6 @@ from airflow.providers.microsoft.azure.hooks.azure_container_registry import (
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.microsoft.azure.hooks.azure_container_registry`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/azure_container_volume_hook.py b/airflow/contrib/hooks/azure_container_volume_hook.py
index 2547a5f..4c747ca 100644
--- a/airflow/contrib/hooks/azure_container_volume_hook.py
+++ b/airflow/contrib/hooks/azure_container_volume_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.hooks.azure_container_volume import Azure
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_container_volume`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/azure_cosmos_hook.py b/airflow/contrib/hooks/azure_cosmos_hook.py
index 35ef4ae..d397669 100644
--- a/airflow/contrib/hooks/azure_cosmos_hook.py
+++ b/airflow/contrib/hooks/azure_cosmos_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.hooks.azure_cosmos import AzureCosmosDBHo
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_cosmos`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/azure_data_lake_hook.py b/airflow/contrib/hooks/azure_data_lake_hook.py
index d11836f..0e21185 100644
--- a/airflow/contrib/hooks/azure_data_lake_hook.py
+++ b/airflow/contrib/hooks/azure_data_lake_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.hooks.azure_data_lake import AzureDataLak
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_data_lake`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/azure_fileshare_hook.py b/airflow/contrib/hooks/azure_fileshare_hook.py
index e166aa9..b4a9f99 100644
--- a/airflow/contrib/hooks/azure_fileshare_hook.py
+++ b/airflow/contrib/hooks/azure_fileshare_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.hooks.azure_fileshare import AzureFileSha
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_fileshare`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/bigquery_hook.py b/airflow/contrib/hooks/bigquery_hook.py
index 6c9a95b..6b95898 100644
--- a/airflow/contrib/hooks/bigquery_hook.py
+++ b/airflow/contrib/hooks/bigquery_hook.py
@@ -21,11 +21,16 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.hooks.bigquery import (  # noqa
-    BigQueryBaseCursor, BigQueryConnection, BigQueryCursor, BigQueryHook, BigQueryPandasConnector,
+    BigQueryBaseCursor,
+    BigQueryConnection,
+    BigQueryCursor,
+    BigQueryHook,
+    BigQueryPandasConnector,
     GbqConnector,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.bigquery`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/cassandra_hook.py b/airflow/contrib/hooks/cassandra_hook.py
index c000286..223f15b 100644
--- a/airflow/contrib/hooks/cassandra_hook.py
+++ b/airflow/contrib/hooks/cassandra_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.cassandra.hooks.cassandra import CassandraHook  #
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.cassandra.hooks.cassandra`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/cloudant_hook.py b/airflow/contrib/hooks/cloudant_hook.py
index 453dd36..4d1da6c 100644
--- a/airflow/contrib/hooks/cloudant_hook.py
+++ b/airflow/contrib/hooks/cloudant_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.cloudant.hooks.cloudant import CloudantHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.cloudant.hooks.cloudant`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/databricks_hook.py b/airflow/contrib/hooks/databricks_hook.py
index 3c610e3..b2f1779 100644
--- a/airflow/contrib/hooks/databricks_hook.py
+++ b/airflow/contrib/hooks/databricks_hook.py
@@ -21,12 +21,21 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.databricks.hooks.databricks import (  # noqa
-    CANCEL_RUN_ENDPOINT, GET_RUN_ENDPOINT, RESTART_CLUSTER_ENDPOINT, RUN_LIFE_CYCLE_STATES, RUN_NOW_ENDPOINT,
-    START_CLUSTER_ENDPOINT, SUBMIT_RUN_ENDPOINT, TERMINATE_CLUSTER_ENDPOINT, USER_AGENT_HEADER,
-    DatabricksHook, RunState,
+    CANCEL_RUN_ENDPOINT,
+    GET_RUN_ENDPOINT,
+    RESTART_CLUSTER_ENDPOINT,
+    RUN_LIFE_CYCLE_STATES,
+    RUN_NOW_ENDPOINT,
+    START_CLUSTER_ENDPOINT,
+    SUBMIT_RUN_ENDPOINT,
+    TERMINATE_CLUSTER_ENDPOINT,
+    USER_AGENT_HEADER,
+    DatabricksHook,
+    RunState,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.databricks.hooks.databricks`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/datadog_hook.py b/airflow/contrib/hooks/datadog_hook.py
index 4746724..3751127 100644
--- a/airflow/contrib/hooks/datadog_hook.py
+++ b/airflow/contrib/hooks/datadog_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.datadog.hooks.datadog import DatadogHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.datadog.hooks.datadog`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/datastore_hook.py b/airflow/contrib/hooks/datastore_hook.py
index 2d395e1..3a072ec 100644
--- a/airflow/contrib/hooks/datastore_hook.py
+++ b/airflow/contrib/hooks/datastore_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.datastore import DatastoreHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.datastore`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/dingding_hook.py b/airflow/contrib/hooks/dingding_hook.py
index 5a4aaf7..66f9c29 100644
--- a/airflow/contrib/hooks/dingding_hook.py
+++ b/airflow/contrib/hooks/dingding_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.dingding.hooks.dingding import DingdingHook, requests  #
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.dingding.hooks.dingding`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/discord_webhook_hook.py b/airflow/contrib/hooks/discord_webhook_hook.py
index 8de11e0..e6c3cd0 100644
--- a/airflow/contrib/hooks/discord_webhook_hook.py
+++ b/airflow/contrib/hooks/discord_webhook_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.discord.hooks.discord_webhook import DiscordWebhookHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.discord.hooks.discord_webhook`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/emr_hook.py b/airflow/contrib/hooks/emr_hook.py
index a8cadcb..0ff71d4 100644
--- a/airflow/contrib/hooks/emr_hook.py
+++ b/airflow/contrib/hooks/emr_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.hooks.emr import EmrHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.emr`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/fs_hook.py b/airflow/contrib/hooks/fs_hook.py
index 93adafd..73d4091 100644
--- a/airflow/contrib/hooks/fs_hook.py
+++ b/airflow/contrib/hooks/fs_hook.py
@@ -23,6 +23,5 @@ import warnings
 from airflow.hooks.filesystem import FSHook  # noqa
 
 warnings.warn(
-    "This module is deprecated. Please use `airflow.hooks.filesystem`.",
-    DeprecationWarning, stacklevel=2
+    "This module is deprecated. Please use `airflow.hooks.filesystem`.", DeprecationWarning, stacklevel=2
 )
diff --git a/airflow/contrib/hooks/ftp_hook.py b/airflow/contrib/hooks/ftp_hook.py
index afe236b..bdb47b6 100644
--- a/airflow/contrib/hooks/ftp_hook.py
+++ b/airflow/contrib/hooks/ftp_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.ftp.hooks.ftp import FTPHook, FTPSHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.ftp.hooks.ftp`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_api_base_hook.py b/airflow/contrib/hooks/gcp_api_base_hook.py
index ca173f4..468d7a3 100644
--- a/airflow/contrib/hooks/gcp_api_base_hook.py
+++ b/airflow/contrib/hooks/gcp_api_base_hook.py
@@ -22,7 +22,8 @@ from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.common.hooks.base_google`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -36,6 +37,7 @@ class GoogleCloudBaseHook(GoogleBaseHook):
         warnings.warn(
             "This class is deprecated. Please use "
             "`airflow.providers.google.common.hooks.base_google.GoogleBaseHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_bigtable_hook.py b/airflow/contrib/hooks/gcp_bigtable_hook.py
index 2926f5f..3722930 100644
--- a/airflow/contrib/hooks/gcp_bigtable_hook.py
+++ b/airflow/contrib/hooks/gcp_bigtable_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.bigtable import BigtableHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.bigtable`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_cloud_build_hook.py b/airflow/contrib/hooks/gcp_cloud_build_hook.py
index 79009cd..3453562 100644
--- a/airflow/contrib/hooks/gcp_cloud_build_hook.py
+++ b/airflow/contrib/hooks/gcp_cloud_build_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.cloud_build import CloudBuildHook  # n
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.cloud_build`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_compute_hook.py b/airflow/contrib/hooks/gcp_compute_hook.py
index 84e2e4f..f24f0bd 100644
--- a/airflow/contrib/hooks/gcp_compute_hook.py
+++ b/airflow/contrib/hooks/gcp_compute_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.compute import ComputeEngineHook
 
 warnings.warn(
     "This module is deprecated. Please use airflow.providers.google.cloud.hooks.compute`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -36,7 +37,8 @@ class GceHook(ComputeEngineHook):
     def __init__(self, *args, **kwargs):
         warnings.warn(
             "This class is deprecated. Please use `airflow.providers.google.cloud.hooks.compute`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
 
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_container_hook.py b/airflow/contrib/hooks/gcp_container_hook.py
index 5d8d900..d014a44 100644
--- a/airflow/contrib/hooks/gcp_container_hook.py
+++ b/airflow/contrib/hooks/gcp_container_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.kubernetes_engine import GKEHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.kubernetes_engine`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -33,6 +34,7 @@ class GKEClusterHook(GKEHook):
     def __init__(self, *args, **kwargs):
         warnings.warn(
             "This class is deprecated. Please use `airflow.providers.google.cloud.hooks.container.GKEHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_dataflow_hook.py b/airflow/contrib/hooks/gcp_dataflow_hook.py
index 54080c5..8e15023 100644
--- a/airflow/contrib/hooks/gcp_dataflow_hook.py
+++ b/airflow/contrib/hooks/gcp_dataflow_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.dataflow import DataflowHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.dataflow`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -34,6 +35,7 @@ class DataFlowHook(DataflowHook):
         warnings.warn(
             "This class is deprecated. "
             "Please use `airflow.providers.google.cloud.hooks.dataflow.DataflowHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_dataproc_hook.py b/airflow/contrib/hooks/gcp_dataproc_hook.py
index 75c6df8..54f618e 100644
--- a/airflow/contrib/hooks/gcp_dataproc_hook.py
+++ b/airflow/contrib/hooks/gcp_dataproc_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.dataproc import DataprocHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.dataproc`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,7 +38,8 @@ class DataProcHook(DataprocHook):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.hooks.dataproc.DataprocHook`.""",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
 
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_dlp_hook.py b/airflow/contrib/hooks/gcp_dlp_hook.py
index cb1fbfc..bf496e4 100644
--- a/airflow/contrib/hooks/gcp_dlp_hook.py
+++ b/airflow/contrib/hooks/gcp_dlp_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.dlp import CloudDLPHook, DlpJob  # noq
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.dlp`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_function_hook.py b/airflow/contrib/hooks/gcp_function_hook.py
index d684d8d..d728fc9 100644
--- a/airflow/contrib/hooks/gcp_function_hook.py
+++ b/airflow/contrib/hooks/gcp_function_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.functions import CloudFunctionsHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.functions`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,7 +38,8 @@ class GcfHook(CloudFunctionsHook):
         warnings.warn(
             "This class is deprecated. "
             "Please use `airflow.providers.google.cloud.hooks.functions.CloudFunctionsHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
 
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_kms_hook.py b/airflow/contrib/hooks/gcp_kms_hook.py
index 6bd5739..7fce040 100644
--- a/airflow/contrib/hooks/gcp_kms_hook.py
+++ b/airflow/contrib/hooks/gcp_kms_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.kms import CloudKMSHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.kms`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -33,6 +34,7 @@ class GoogleCloudKMSHook(CloudKMSHook):
     def __init__(self, *args, **kwargs):
         warnings.warn(
             "This class is deprecated. Please use `airflow.providers.google.cloud.hooks.kms.CloudKMSHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_mlengine_hook.py b/airflow/contrib/hooks/gcp_mlengine_hook.py
index 07687c0..cec3f31 100644
--- a/airflow/contrib/hooks/gcp_mlengine_hook.py
+++ b/airflow/contrib/hooks/gcp_mlengine_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.mlengine import MLEngineHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.mlengine`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_natural_language_hook.py b/airflow/contrib/hooks/gcp_natural_language_hook.py
index 70f9405..0243ff6 100644
--- a/airflow/contrib/hooks/gcp_natural_language_hook.py
+++ b/airflow/contrib/hooks/gcp_natural_language_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.natural_language import CloudNaturalLa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.natural_language`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_pubsub_hook.py b/airflow/contrib/hooks/gcp_pubsub_hook.py
index e04f3cd..23f7ab0 100644
--- a/airflow/contrib/hooks/gcp_pubsub_hook.py
+++ b/airflow/contrib/hooks/gcp_pubsub_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.pubsub import PubSubException, PubSubH
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.pubsub`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_speech_to_text_hook.py b/airflow/contrib/hooks/gcp_speech_to_text_hook.py
index dedece2..5b27c77 100644
--- a/airflow/contrib/hooks/gcp_speech_to_text_hook.py
+++ b/airflow/contrib/hooks/gcp_speech_to_text_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.speech_to_text import CloudSpeechToTex
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.speech_to_text`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,7 +38,8 @@ class GCPSpeechToTextHook(CloudSpeechToTextHook):
         warnings.warn(
             "This class is deprecated. "
             "Please use `airflow.providers.google.cloud.hooks.speech_to_text.CloudSpeechToTextHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
 
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_tasks_hook.py b/airflow/contrib/hooks/gcp_tasks_hook.py
index e577de6..837c210 100644
--- a/airflow/contrib/hooks/gcp_tasks_hook.py
+++ b/airflow/contrib/hooks/gcp_tasks_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.tasks import CloudTasksHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.tasks`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_text_to_speech_hook.py b/airflow/contrib/hooks/gcp_text_to_speech_hook.py
index 593502f..8a7c8fb 100644
--- a/airflow/contrib/hooks/gcp_text_to_speech_hook.py
+++ b/airflow/contrib/hooks/gcp_text_to_speech_hook.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.hooks.text_to_speech import CloudTextToSpeec
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.text_to_speech`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,7 +38,8 @@ class GCPTextToSpeechHook(CloudTextToSpeechHook):
         warnings.warn(
             "This class is deprecated. "
             "Please use `airflow.providers.google.cloud.hooks.text_to_speech.CloudTextToSpeechHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
 
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_transfer_hook.py b/airflow/contrib/hooks/gcp_transfer_hook.py
index 535c24f..57c098d 100644
--- a/airflow/contrib/hooks/gcp_transfer_hook.py
+++ b/airflow/contrib/hooks/gcp_transfer_hook.py
@@ -27,7 +27,8 @@ from airflow.providers.google.cloud.hooks.cloud_storage_transfer_service import
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.google.cloud.hooks.cloud_storage_transfer_service`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -43,6 +44,7 @@ class GCPTransferServiceHook(CloudDataTransferServiceHook):
             Please use
             `airflow.providers.google.cloud.hooks.cloud_storage_transfer_service
             .CloudDataTransferServiceHook`.""",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gcp_translate_hook.py b/airflow/contrib/hooks/gcp_translate_hook.py
index 016f8ef..a0b1788 100644
--- a/airflow/contrib/hooks/gcp_translate_hook.py
+++ b/airflow/contrib/hooks/gcp_translate_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.translate import CloudTranslateHook  #
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.translate`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_video_intelligence_hook.py b/airflow/contrib/hooks/gcp_video_intelligence_hook.py
index 76ad51e..9a99748 100644
--- a/airflow/contrib/hooks/gcp_video_intelligence_hook.py
+++ b/airflow/contrib/hooks/gcp_video_intelligence_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.video_intelligence import CloudVideoIn
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.video_intelligence`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcp_vision_hook.py b/airflow/contrib/hooks/gcp_vision_hook.py
index 05ac86a..98ac270 100644
--- a/airflow/contrib/hooks/gcp_vision_hook.py
+++ b/airflow/contrib/hooks/gcp_vision_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.hooks.vision import CloudVisionHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.vision`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/gcs_hook.py b/airflow/contrib/hooks/gcs_hook.py
index 625e1aa..7134f32 100644
--- a/airflow/contrib/hooks/gcs_hook.py
+++ b/airflow/contrib/hooks/gcs_hook.py
@@ -22,7 +22,8 @@ from airflow.providers.google.cloud.hooks.gcs import GCSHook
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.hooks.gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -32,6 +33,7 @@ class GoogleCloudStorageHook(GCSHook):
     def __init__(self, *args, **kwargs):
         warnings.warn(
             "This class is deprecated. Please use `airflow.providers.google.cloud.hooks.gcs.GCSHook`.",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/hooks/gdrive_hook.py b/airflow/contrib/hooks/gdrive_hook.py
index b2deb96..c6d8172 100644
--- a/airflow/contrib/hooks/gdrive_hook.py
+++ b/airflow/contrib/hooks/gdrive_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.google.suite.hooks.drive import GoogleDriveHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.suite.hooks.drive`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/grpc_hook.py b/airflow/contrib/hooks/grpc_hook.py
index 7f89d40..631b47d 100644
--- a/airflow/contrib/hooks/grpc_hook.py
+++ b/airflow/contrib/hooks/grpc_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.grpc.hooks.grpc import GrpcHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.grpc.hooks.grpc`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/imap_hook.py b/airflow/contrib/hooks/imap_hook.py
index 12f0ab1..c868dfa 100644
--- a/airflow/contrib/hooks/imap_hook.py
+++ b/airflow/contrib/hooks/imap_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.imap.hooks.imap import ImapHook, Mail, MailPart  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.imap.hooks.imap`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/jenkins_hook.py b/airflow/contrib/hooks/jenkins_hook.py
index 72dabb6..1e260e4 100644
--- a/airflow/contrib/hooks/jenkins_hook.py
+++ b/airflow/contrib/hooks/jenkins_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.jenkins.hooks.jenkins import JenkinsHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.jenkins.hooks.jenkins`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/mongo_hook.py b/airflow/contrib/hooks/mongo_hook.py
index db25b11..ac5a3a0 100644
--- a/airflow/contrib/hooks/mongo_hook.py
+++ b/airflow/contrib/hooks/mongo_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.mongo.hooks.mongo import MongoHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.mongo.hooks.mongo`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/openfaas_hook.py b/airflow/contrib/hooks/openfaas_hook.py
index 4ea8748..32ab77c 100644
--- a/airflow/contrib/hooks/openfaas_hook.py
+++ b/airflow/contrib/hooks/openfaas_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.openfaas.hooks.openfaas import OK_STATUS_CODE, OpenFaasHo
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.openfaas.hooks.openfaas`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/opsgenie_alert_hook.py b/airflow/contrib/hooks/opsgenie_alert_hook.py
index 5a6b338..9bf4605 100644
--- a/airflow/contrib/hooks/opsgenie_alert_hook.py
+++ b/airflow/contrib/hooks/opsgenie_alert_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.opsgenie.hooks.opsgenie_alert import OpsgenieAlertHook  #
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.opsgenie.hooks.opsgenie_alert`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/pagerduty_hook.py b/airflow/contrib/hooks/pagerduty_hook.py
index cfce5e8..0f1bbdd 100644
--- a/airflow/contrib/hooks/pagerduty_hook.py
+++ b/airflow/contrib/hooks/pagerduty_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.pagerduty.hooks.pagerduty import PagerdutyHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.pagerduty.hooks.pagerduty`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/pinot_hook.py b/airflow/contrib/hooks/pinot_hook.py
index 5ecfbfa..d3b9816 100644
--- a/airflow/contrib/hooks/pinot_hook.py
+++ b/airflow/contrib/hooks/pinot_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.pinot.hooks.pinot import PinotAdminHook, PinotDbAp
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.pinot.hooks.pinot`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/qubole_check_hook.py b/airflow/contrib/hooks/qubole_check_hook.py
index 03fed8c..8df277d 100644
--- a/airflow/contrib/hooks/qubole_check_hook.py
+++ b/airflow/contrib/hooks/qubole_check_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.qubole.hooks.qubole_check import QuboleCheckHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.qubole.hooks.qubole_check`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/qubole_hook.py b/airflow/contrib/hooks/qubole_hook.py
index ab2e6cd..aee57ba 100644
--- a/airflow/contrib/hooks/qubole_hook.py
+++ b/airflow/contrib/hooks/qubole_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.qubole.hooks.qubole import QuboleHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.qubole.hooks.qubole`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/redis_hook.py b/airflow/contrib/hooks/redis_hook.py
index 7938f57..d2bd8ab 100644
--- a/airflow/contrib/hooks/redis_hook.py
+++ b/airflow/contrib/hooks/redis_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.redis.hooks.redis import RedisHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.redis.hooks.redis`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/sagemaker_hook.py b/airflow/contrib/hooks/sagemaker_hook.py
index c2f6012..8d33c27 100644
--- a/airflow/contrib/hooks/sagemaker_hook.py
+++ b/airflow/contrib/hooks/sagemaker_hook.py
@@ -21,11 +21,16 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.amazon.aws.hooks.sagemaker import (  # noqa
-    LogState, Position, SageMakerHook, argmin, secondary_training_status_changed,
+    LogState,
+    Position,
+    SageMakerHook,
+    argmin,
+    secondary_training_status_changed,
     secondary_training_status_message,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.sagemaker`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/salesforce_hook.py b/airflow/contrib/hooks/salesforce_hook.py
index 5ea627a..d1462e1 100644
--- a/airflow/contrib/hooks/salesforce_hook.py
+++ b/airflow/contrib/hooks/salesforce_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.salesforce.hooks.salesforce import SalesforceHook, pd  #
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.salesforce.hooks.salesforce`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/segment_hook.py b/airflow/contrib/hooks/segment_hook.py
index c286fbe..7e3247c 100644
--- a/airflow/contrib/hooks/segment_hook.py
+++ b/airflow/contrib/hooks/segment_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.segment.hooks.segment import SegmentHook, analytics  # no
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.segment.hooks.segment`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/slack_webhook_hook.py b/airflow/contrib/hooks/slack_webhook_hook.py
index 420a34b..7e4ec92 100644
--- a/airflow/contrib/hooks/slack_webhook_hook.py
+++ b/airflow/contrib/hooks/slack_webhook_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.slack.hooks.slack_webhook import SlackWebhookHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.slack.hooks.slack_webhook`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/spark_jdbc_hook.py b/airflow/contrib/hooks/spark_jdbc_hook.py
index af3ed2c..189e5bf 100644
--- a/airflow/contrib/hooks/spark_jdbc_hook.py
+++ b/airflow/contrib/hooks/spark_jdbc_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.spark.hooks.spark_jdbc import SparkJDBCHook  # noq
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.spark.hooks.spark_jdbc`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/spark_sql_hook.py b/airflow/contrib/hooks/spark_sql_hook.py
index 760c0e7..639fae1 100644
--- a/airflow/contrib/hooks/spark_sql_hook.py
+++ b/airflow/contrib/hooks/spark_sql_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.spark.hooks.spark_sql import SparkSqlHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.spark.hooks.spark_sql`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/spark_submit_hook.py b/airflow/contrib/hooks/spark_submit_hook.py
index d067ba7..5c69e48 100644
--- a/airflow/contrib/hooks/spark_submit_hook.py
+++ b/airflow/contrib/hooks/spark_submit_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.spark.hooks.spark_submit import SparkSubmitHook  #
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.spark.hooks.spark_submit`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/sqoop_hook.py b/airflow/contrib/hooks/sqoop_hook.py
index ccf1df3..ce5c737 100644
--- a/airflow/contrib/hooks/sqoop_hook.py
+++ b/airflow/contrib/hooks/sqoop_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.sqoop.hooks.sqoop import SqoopHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.sqoop.hooks.sqoop`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/ssh_hook.py b/airflow/contrib/hooks/ssh_hook.py
index 2f1b02e..d374339 100644
--- a/airflow/contrib/hooks/ssh_hook.py
+++ b/airflow/contrib/hooks/ssh_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.ssh.hooks.ssh import SSHHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.ssh.hooks.ssh`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/vertica_hook.py b/airflow/contrib/hooks/vertica_hook.py
index 9a38a49..592fccc 100644
--- a/airflow/contrib/hooks/vertica_hook.py
+++ b/airflow/contrib/hooks/vertica_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.vertica.hooks.vertica import VerticaHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.vertica.hooks.vertica`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/wasb_hook.py b/airflow/contrib/hooks/wasb_hook.py
index 6cb1f66..a1b62ad 100644
--- a/airflow/contrib/hooks/wasb_hook.py
+++ b/airflow/contrib/hooks/wasb_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.hooks.wasb import WasbHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.wasb`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/hooks/winrm_hook.py b/airflow/contrib/hooks/winrm_hook.py
index c45c825..24e5abe 100644
--- a/airflow/contrib/hooks/winrm_hook.py
+++ b/airflow/contrib/hooks/winrm_hook.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.winrm.hooks.winrm import WinRMHook  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.winrm.hooks.winrm`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/adls_list_operator.py b/airflow/contrib/operators/adls_list_operator.py
index f6643ec..1572a22 100644
--- a/airflow/contrib/operators/adls_list_operator.py
+++ b/airflow/contrib/operators/adls_list_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.operators.adls_list import AzureDataLakeS
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.operators.adls_list`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/adls_to_gcs.py b/airflow/contrib/operators/adls_to_gcs.py
index 0b273ca..7839b47 100644
--- a/airflow/contrib/operators/adls_to_gcs.py
+++ b/airflow/contrib/operators/adls_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.adls_to_gcs import ADLSToGCSOperat
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.adls_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class AdlsToGoogleCloudStorageOperator(ADLSToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.adls_to_gcs.ADLSToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/azure_container_instances_operator.py b/airflow/contrib/operators/azure_container_instances_operator.py
index 56ea84f..7efd008 100644
--- a/airflow/contrib/operators/azure_container_instances_operator.py
+++ b/airflow/contrib/operators/azure_container_instances_operator.py
@@ -29,5 +29,6 @@ from airflow.providers.microsoft.azure.operators.azure_container_instances impor
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.microsoft.azure.operators.azure_container_instances`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/azure_cosmos_operator.py b/airflow/contrib/operators/azure_cosmos_operator.py
index 48eb2c2..f08b8dd 100644
--- a/airflow/contrib/operators/azure_cosmos_operator.py
+++ b/airflow/contrib/operators/azure_cosmos_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.operators.azure_cosmos import AzureCosmos
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.operators.azure_cosmos`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/bigquery_check_operator.py b/airflow/contrib/operators/bigquery_check_operator.py
index 29069fd..c681394 100644
--- a/airflow/contrib/operators/bigquery_check_operator.py
+++ b/airflow/contrib/operators/bigquery_check_operator.py
@@ -21,10 +21,13 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.operators.bigquery import (  # noqa
-    BigQueryCheckOperator, BigQueryIntervalCheckOperator, BigQueryValueCheckOperator,
+    BigQueryCheckOperator,
+    BigQueryIntervalCheckOperator,
+    BigQueryValueCheckOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.bigquery`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/bigquery_get_data.py b/airflow/contrib/operators/bigquery_get_data.py
index 9fe6be3..0a5a176 100644
--- a/airflow/contrib/operators/bigquery_get_data.py
+++ b/airflow/contrib/operators/bigquery_get_data.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.operators.bigquery import BigQueryGetDataOpe
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.bigquery`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/bigquery_operator.py b/airflow/contrib/operators/bigquery_operator.py
index c01c103..3274626 100644
--- a/airflow/contrib/operators/bigquery_operator.py
+++ b/airflow/contrib/operators/bigquery_operator.py
@@ -21,9 +21,15 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.operators.bigquery import (  # noqa; noqa; noqa; noqa; noqa
-    BigQueryCreateEmptyDatasetOperator, BigQueryCreateEmptyTableOperator, BigQueryCreateExternalTableOperator,
-    BigQueryDeleteDatasetOperator, BigQueryExecuteQueryOperator, BigQueryGetDatasetOperator,
-    BigQueryGetDatasetTablesOperator, BigQueryPatchDatasetOperator, BigQueryUpdateDatasetOperator,
+    BigQueryCreateEmptyDatasetOperator,
+    BigQueryCreateEmptyTableOperator,
+    BigQueryCreateExternalTableOperator,
+    BigQueryDeleteDatasetOperator,
+    BigQueryExecuteQueryOperator,
+    BigQueryGetDatasetOperator,
+    BigQueryGetDatasetTablesOperator,
+    BigQueryPatchDatasetOperator,
+    BigQueryUpdateDatasetOperator,
     BigQueryUpsertTableOperator,
 )
 
diff --git a/airflow/contrib/operators/bigquery_to_bigquery.py b/airflow/contrib/operators/bigquery_to_bigquery.py
index e585ccd..74df81e 100644
--- a/airflow/contrib/operators/bigquery_to_bigquery.py
+++ b/airflow/contrib/operators/bigquery_to_bigquery.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.transfers.bigquery_to_bigquery import BigQue
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.bigquery_to_bigquery`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/bigquery_to_gcs.py b/airflow/contrib/operators/bigquery_to_gcs.py
index d51397d..243bc43 100644
--- a/airflow/contrib/operators/bigquery_to_gcs.py
+++ b/airflow/contrib/operators/bigquery_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.bigquery_to_gcs import BigQueryToG
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.bigquery_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class BigQueryToCloudStorageOperator(BigQueryToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.bigquery_to_gcs.BigQueryToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/bigquery_to_mysql_operator.py b/airflow/contrib/operators/bigquery_to_mysql_operator.py
index 37fec73..bebb8ed 100644
--- a/airflow/contrib/operators/bigquery_to_mysql_operator.py
+++ b/airflow/contrib/operators/bigquery_to_mysql_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.transfers.bigquery_to_mysql import BigQueryT
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.bigquery_to_mysql`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/cassandra_to_gcs.py b/airflow/contrib/operators/cassandra_to_gcs.py
index 9ac70f8..3d889e6 100644
--- a/airflow/contrib/operators/cassandra_to_gcs.py
+++ b/airflow/contrib/operators/cassandra_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.cassandra_to_gcs import CassandraT
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.cassandra_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class CassandraToGoogleCloudStorageOperator(CassandraToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.cassandra_to_gcs.CassandraToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/databricks_operator.py b/airflow/contrib/operators/databricks_operator.py
index a0b8e49..6f7c950 100644
--- a/airflow/contrib/operators/databricks_operator.py
+++ b/airflow/contrib/operators/databricks_operator.py
@@ -21,10 +21,12 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.databricks.operators.databricks import (  # noqa
-    DatabricksRunNowOperator, DatabricksSubmitRunOperator,
+    DatabricksRunNowOperator,
+    DatabricksSubmitRunOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.databricks.operators.databricks`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/dataflow_operator.py b/airflow/contrib/operators/dataflow_operator.py
index 1f1f794..3d03a8b 100644
--- a/airflow/contrib/operators/dataflow_operator.py
+++ b/airflow/contrib/operators/dataflow_operator.py
@@ -20,12 +20,15 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.dataflow import (
-    DataflowCreateJavaJobOperator, DataflowCreatePythonJobOperator, DataflowTemplatedJobStartOperator,
+    DataflowCreateJavaJobOperator,
+    DataflowCreatePythonJobOperator,
+    DataflowTemplatedJobStartOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.dataflow`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -39,7 +42,8 @@ class DataFlowJavaOperator(DataflowCreateJavaJobOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dataflow.DataflowCreateJavaJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -55,7 +59,8 @@ class DataFlowPythonOperator(DataflowCreatePythonJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.dataflow.DataflowCreatePythonJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -71,6 +76,7 @@ class DataflowTemplateOperator(DataflowTemplatedJobStartOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.dataflow.DataflowTemplatedJobStartOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/dataproc_operator.py b/airflow/contrib/operators/dataproc_operator.py
index 0337b58..feac627 100644
--- a/airflow/contrib/operators/dataproc_operator.py
+++ b/airflow/contrib/operators/dataproc_operator.py
@@ -20,11 +20,18 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.dataproc import (
-    DataprocCreateClusterOperator, DataprocDeleteClusterOperator,
-    DataprocInstantiateInlineWorkflowTemplateOperator, DataprocInstantiateWorkflowTemplateOperator,
-    DataprocJobBaseOperator, DataprocScaleClusterOperator, DataprocSubmitHadoopJobOperator,
-    DataprocSubmitHiveJobOperator, DataprocSubmitPigJobOperator, DataprocSubmitPySparkJobOperator,
-    DataprocSubmitSparkJobOperator, DataprocSubmitSparkSqlJobOperator,
+    DataprocCreateClusterOperator,
+    DataprocDeleteClusterOperator,
+    DataprocInstantiateInlineWorkflowTemplateOperator,
+    DataprocInstantiateWorkflowTemplateOperator,
+    DataprocJobBaseOperator,
+    DataprocScaleClusterOperator,
+    DataprocSubmitHadoopJobOperator,
+    DataprocSubmitHiveJobOperator,
+    DataprocSubmitPigJobOperator,
+    DataprocSubmitPySparkJobOperator,
+    DataprocSubmitSparkJobOperator,
+    DataprocSubmitSparkSqlJobOperator,
 )
 
 warnings.warn(
@@ -44,7 +51,8 @@ class DataprocClusterCreateOperator(DataprocCreateClusterOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dataproc.DataprocCreateClusterOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -59,7 +67,8 @@ class DataprocClusterDeleteOperator(DataprocDeleteClusterOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dataproc.DataprocDeleteClusterOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -74,7 +83,8 @@ class DataprocClusterScaleOperator(DataprocScaleClusterOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dataproc.DataprocScaleClusterOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -90,7 +100,8 @@ class DataProcHadoopOperator(DataprocSubmitHadoopJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.dataproc.DataprocSubmitHadoopJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -106,7 +117,8 @@ class DataProcHiveOperator(DataprocSubmitHiveJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.dataproc.DataprocSubmitHiveJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -121,7 +133,8 @@ class DataProcJobBaseOperator(DataprocJobBaseOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dataproc.DataprocJobBaseOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -136,7 +149,8 @@ class DataProcPigOperator(DataprocSubmitPigJobOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dataproc.DataprocSubmitPigJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -152,7 +166,8 @@ class DataProcPySparkOperator(DataprocSubmitPySparkJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.dataproc.DataprocSubmitPySparkJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -168,7 +183,8 @@ class DataProcSparkOperator(DataprocSubmitSparkJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.dataproc.DataprocSubmitSparkJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -184,7 +200,8 @@ class DataProcSparkSqlOperator(DataprocSubmitSparkSqlJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.dataproc.DataprocSubmitSparkSqlJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -202,7 +219,8 @@ class DataprocWorkflowTemplateInstantiateInlineOperator(DataprocInstantiateInlin
             Please use
             `airflow.providers.google.cloud.operators.dataproc
             .DataprocInstantiateInlineWorkflowTemplateOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -220,6 +238,7 @@ class DataprocWorkflowTemplateInstantiateOperator(DataprocInstantiateWorkflowTem
             Please use
             `airflow.providers.google.cloud.operators.dataproc
             .DataprocInstantiateWorkflowTemplateOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/datastore_export_operator.py b/airflow/contrib/operators/datastore_export_operator.py
index e2aca08..bc88e6e 100644
--- a/airflow/contrib/operators/datastore_export_operator.py
+++ b/airflow/contrib/operators/datastore_export_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.operators.datastore import CloudDatastoreExp
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.datastore`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -38,6 +39,7 @@ class DatastoreExportOperator(CloudDatastoreExportEntitiesOperator):
             """This class is deprecated.l
             Please use
             `airflow.providers.google.cloud.operators.datastore.CloudDatastoreExportEntitiesOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/datastore_import_operator.py b/airflow/contrib/operators/datastore_import_operator.py
index 2bd8b24..4375336 100644
--- a/airflow/contrib/operators/datastore_import_operator.py
+++ b/airflow/contrib/operators/datastore_import_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.operators.datastore import CloudDatastoreImp
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.datastore`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -38,6 +39,7 @@ class DatastoreImportOperator(CloudDatastoreImportEntitiesOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.datastore.CloudDatastoreImportEntitiesOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/dingding_operator.py b/airflow/contrib/operators/dingding_operator.py
index 7f911d4..0fb52aa 100644
--- a/airflow/contrib/operators/dingding_operator.py
+++ b/airflow/contrib/operators/dingding_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.dingding.operators.dingding import DingdingOperator  # no
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.dingding.operators.dingding`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/discord_webhook_operator.py b/airflow/contrib/operators/discord_webhook_operator.py
index 51c12b8..d6392bc 100644
--- a/airflow/contrib/operators/discord_webhook_operator.py
+++ b/airflow/contrib/operators/discord_webhook_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.discord.operators.discord_webhook import DiscordWebhookOp
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.discord.operators.discord_webhook`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/docker_swarm_operator.py b/airflow/contrib/operators/docker_swarm_operator.py
index 3ac517f..796a60d 100644
--- a/airflow/contrib/operators/docker_swarm_operator.py
+++ b/airflow/contrib/operators/docker_swarm_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.docker.operators.docker_swarm import DockerSwarmOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.docker.operators.docker_swarm`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/druid_operator.py b/airflow/contrib/operators/druid_operator.py
index 912aea9..ea3d1fb 100644
--- a/airflow/contrib/operators/druid_operator.py
+++ b/airflow/contrib/operators/druid_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.druid.operators.druid import DruidOperator  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.druid.operators.druid`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/dynamodb_to_s3.py b/airflow/contrib/operators/dynamodb_to_s3.py
index 748a69d..28ade7e 100644
--- a/airflow/contrib/operators/dynamodb_to_s3.py
+++ b/airflow/contrib/operators/dynamodb_to_s3.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.transfers.dynamodb_to_s3 import DynamoDBToS3Op
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.transfers.dynamodb_to_s3`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/ecs_operator.py b/airflow/contrib/operators/ecs_operator.py
index 37fc32d..8c85738 100644
--- a/airflow/contrib/operators/ecs_operator.py
+++ b/airflow/contrib/operators/ecs_operator.py
@@ -25,7 +25,8 @@ from airflow.typing_compat import Protocol, runtime_checkable
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.ecs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
diff --git a/airflow/contrib/operators/emr_add_steps_operator.py b/airflow/contrib/operators/emr_add_steps_operator.py
index 19f2db0..421d4dc 100644
--- a/airflow/contrib/operators/emr_add_steps_operator.py
+++ b/airflow/contrib/operators/emr_add_steps_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.emr_add_steps import EmrAddStepsOper
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.emr_add_steps`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/emr_create_job_flow_operator.py b/airflow/contrib/operators/emr_create_job_flow_operator.py
index eafa311..bf59df5 100644
--- a/airflow/contrib/operators/emr_create_job_flow_operator.py
+++ b/airflow/contrib/operators/emr_create_job_flow_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.emr_create_job_flow import EmrCreate
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.emr_create_job_flow`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/emr_terminate_job_flow_operator.py b/airflow/contrib/operators/emr_terminate_job_flow_operator.py
index 281f64c..0158399 100644
--- a/airflow/contrib/operators/emr_terminate_job_flow_operator.py
+++ b/airflow/contrib/operators/emr_terminate_job_flow_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.emr_terminate_job_flow import EmrTer
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.emr_terminate_job_flow`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/file_to_gcs.py b/airflow/contrib/operators/file_to_gcs.py
index 7b7b259..4e696a5 100644
--- a/airflow/contrib/operators/file_to_gcs.py
+++ b/airflow/contrib/operators/file_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.local_to_gcs import LocalFilesyste
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.local_to_gcs`,",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -38,6 +39,7 @@ class FileToGoogleCloudStorageOperator(LocalFilesystemToGCSOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.transfers.local_to_gcs.LocalFilesystemToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/file_to_wasb.py b/airflow/contrib/operators/file_to_wasb.py
index 8ed0da7..3c9866c 100644
--- a/airflow/contrib/operators/file_to_wasb.py
+++ b/airflow/contrib/operators/file_to_wasb.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.transfers.file_to_wasb import FileToWasbO
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.transfers.file_to_wasb`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/gcp_bigtable_operator.py b/airflow/contrib/operators/gcp_bigtable_operator.py
index 507a55f..7256d64 100644
--- a/airflow/contrib/operators/gcp_bigtable_operator.py
+++ b/airflow/contrib/operators/gcp_bigtable_operator.py
@@ -23,15 +23,19 @@ or `airflow.providers.google.cloud.sensors.bigtable`.
 import warnings
 
 from airflow.providers.google.cloud.operators.bigtable import (
-    BigtableCreateInstanceOperator, BigtableCreateTableOperator, BigtableDeleteInstanceOperator,
-    BigtableDeleteTableOperator, BigtableUpdateClusterOperator,
+    BigtableCreateInstanceOperator,
+    BigtableCreateTableOperator,
+    BigtableDeleteInstanceOperator,
+    BigtableDeleteTableOperator,
+    BigtableUpdateClusterOperator,
 )
 from airflow.providers.google.cloud.sensors.bigtable import BigtableTableReplicationCompletedSensor
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.bigtable`"
     " or `airflow.providers.google.cloud.sensors.bigtable`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -45,7 +49,8 @@ class BigtableClusterUpdateOperator(BigtableUpdateClusterOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.bigtable.BigtableUpdateClusterOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -60,7 +65,8 @@ class BigtableInstanceCreateOperator(BigtableCreateInstanceOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.bigtable.BigtableCreateInstanceOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -75,7 +81,8 @@ class BigtableInstanceDeleteOperator(BigtableDeleteInstanceOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.bigtable.BigtableDeleteInstanceOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -90,7 +97,8 @@ class BigtableTableCreateOperator(BigtableCreateTableOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.bigtable.BigtableCreateTableOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -105,7 +113,8 @@ class BigtableTableDeleteOperator(BigtableDeleteTableOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.bigtable.BigtableDeleteTableOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -122,6 +131,7 @@ class BigtableTableWaitForReplicationSensor(BigtableTableReplicationCompletedSen
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.sensors.bigtable.BigtableTableReplicationCompletedSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_cloud_build_operator.py b/airflow/contrib/operators/gcp_cloud_build_operator.py
index 318ca76..ea58508 100644
--- a/airflow/contrib/operators/gcp_cloud_build_operator.py
+++ b/airflow/contrib/operators/gcp_cloud_build_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.operators.cloud_build import CloudBuildCreat
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.cloud_build`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/gcp_compute_operator.py b/airflow/contrib/operators/gcp_compute_operator.py
index 968b4b2..efd513e 100644
--- a/airflow/contrib/operators/gcp_compute_operator.py
+++ b/airflow/contrib/operators/gcp_compute_operator.py
@@ -20,14 +20,18 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.compute import (
-    ComputeEngineBaseOperator, ComputeEngineCopyInstanceTemplateOperator,
-    ComputeEngineInstanceGroupUpdateManagerTemplateOperator, ComputeEngineSetMachineTypeOperator,
-    ComputeEngineStartInstanceOperator, ComputeEngineStopInstanceOperator,
+    ComputeEngineBaseOperator,
+    ComputeEngineCopyInstanceTemplateOperator,
+    ComputeEngineInstanceGroupUpdateManagerTemplateOperator,
+    ComputeEngineSetMachineTypeOperator,
+    ComputeEngineStartInstanceOperator,
+    ComputeEngineStopInstanceOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.compute`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -41,7 +45,8 @@ class GceBaseOperator(ComputeEngineBaseOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.compute.ComputeEngineBaseOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -58,7 +63,8 @@ class GceInstanceGroupManagerUpdateTemplateOperator(ComputeEngineInstanceGroupUp
             """This class is deprecated. Please use
             `airflow.providers.google.cloud.operators.compute
             .ComputeEngineInstanceGroupUpdateManagerTemplateOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -75,7 +81,8 @@ class GceInstanceStartOperator(ComputeEngineStartInstanceOperator):
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.compute
             .ComputeEngineStartInstanceOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -91,7 +98,8 @@ class GceInstanceStopOperator(ComputeEngineStopInstanceOperator):
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.compute
             .ComputeEngineStopInstanceOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -107,7 +115,8 @@ class GceInstanceTemplateCopyOperator(ComputeEngineCopyInstanceTemplateOperator)
             """"This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.compute
             .ComputeEngineCopyInstanceTemplateOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -123,6 +132,7 @@ class GceSetMachineTypeOperator(ComputeEngineSetMachineTypeOperator):
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.compute
             .ComputeEngineSetMachineTypeOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_container_operator.py b/airflow/contrib/operators/gcp_container_operator.py
index 886571d..449bfbe 100644
--- a/airflow/contrib/operators/gcp_container_operator.py
+++ b/airflow/contrib/operators/gcp_container_operator.py
@@ -20,12 +20,15 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.kubernetes_engine import (
-    GKECreateClusterOperator, GKEDeleteClusterOperator, GKEStartPodOperator,
+    GKECreateClusterOperator,
+    GKEDeleteClusterOperator,
+    GKEStartPodOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.kubernetes_engine`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -39,7 +42,8 @@ class GKEClusterCreateOperator(GKECreateClusterOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.container.GKECreateClusterOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -54,7 +58,8 @@ class GKEClusterDeleteOperator(GKEDeleteClusterOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.container.GKEDeleteClusterOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -69,6 +74,7 @@ class GKEPodOperator(GKEStartPodOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.container.GKEStartPodOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_dlp_operator.py b/airflow/contrib/operators/gcp_dlp_operator.py
index cbf5194..99d373f 100644
--- a/airflow/contrib/operators/gcp_dlp_operator.py
+++ b/airflow/contrib/operators/gcp_dlp_operator.py
@@ -21,23 +21,42 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.operators.dlp import (  # noqa
-    CloudDLPCancelDLPJobOperator, CloudDLPCreateDeidentifyTemplateOperator, CloudDLPCreateDLPJobOperator,
-    CloudDLPCreateInspectTemplateOperator, CloudDLPCreateJobTriggerOperator,
-    CloudDLPCreateStoredInfoTypeOperator, CloudDLPDeidentifyContentOperator,
-    CloudDLPDeleteDeidentifyTemplateOperator, CloudDLPDeleteDLPJobOperator,
-    CloudDLPDeleteInspectTemplateOperator, CloudDLPDeleteJobTriggerOperator,
-    CloudDLPDeleteStoredInfoTypeOperator, CloudDLPGetDeidentifyTemplateOperator, CloudDLPGetDLPJobOperator,
-    CloudDLPGetDLPJobTriggerOperator, CloudDLPGetInspectTemplateOperator, CloudDLPGetStoredInfoTypeOperator,
-    CloudDLPInspectContentOperator, CloudDLPListDeidentifyTemplatesOperator, CloudDLPListDLPJobsOperator,
-    CloudDLPListInfoTypesOperator, CloudDLPListInspectTemplatesOperator, CloudDLPListJobTriggersOperator,
-    CloudDLPListStoredInfoTypesOperator, CloudDLPRedactImageOperator, CloudDLPReidentifyContentOperator,
-    CloudDLPUpdateDeidentifyTemplateOperator, CloudDLPUpdateInspectTemplateOperator,
-    CloudDLPUpdateJobTriggerOperator, CloudDLPUpdateStoredInfoTypeOperator,
+    CloudDLPCancelDLPJobOperator,
+    CloudDLPCreateDeidentifyTemplateOperator,
+    CloudDLPCreateDLPJobOperator,
+    CloudDLPCreateInspectTemplateOperator,
+    CloudDLPCreateJobTriggerOperator,
+    CloudDLPCreateStoredInfoTypeOperator,
+    CloudDLPDeidentifyContentOperator,
+    CloudDLPDeleteDeidentifyTemplateOperator,
+    CloudDLPDeleteDLPJobOperator,
+    CloudDLPDeleteInspectTemplateOperator,
+    CloudDLPDeleteJobTriggerOperator,
+    CloudDLPDeleteStoredInfoTypeOperator,
+    CloudDLPGetDeidentifyTemplateOperator,
+    CloudDLPGetDLPJobOperator,
+    CloudDLPGetDLPJobTriggerOperator,
+    CloudDLPGetInspectTemplateOperator,
+    CloudDLPGetStoredInfoTypeOperator,
+    CloudDLPInspectContentOperator,
+    CloudDLPListDeidentifyTemplatesOperator,
+    CloudDLPListDLPJobsOperator,
+    CloudDLPListInfoTypesOperator,
+    CloudDLPListInspectTemplatesOperator,
+    CloudDLPListJobTriggersOperator,
+    CloudDLPListStoredInfoTypesOperator,
+    CloudDLPRedactImageOperator,
+    CloudDLPReidentifyContentOperator,
+    CloudDLPUpdateDeidentifyTemplateOperator,
+    CloudDLPUpdateInspectTemplateOperator,
+    CloudDLPUpdateJobTriggerOperator,
+    CloudDLPUpdateStoredInfoTypeOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.dlp`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -51,8 +70,8 @@ class CloudDLPDeleteDlpJobOperator(CloudDLPDeleteDLPJobOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dlp.CloudDLPDeleteDLPJobOperator`.""",
-
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -67,7 +86,8 @@ class CloudDLPGetDlpJobOperator(CloudDLPGetDLPJobOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dlp.CloudDLPGetDLPJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -82,7 +102,8 @@ class CloudDLPGetJobTripperOperator(CloudDLPGetDLPJobTriggerOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dlp.CloudDLPGetDLPJobTriggerOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -97,6 +118,7 @@ class CloudDLPListDlpJobsOperator(CloudDLPListDLPJobsOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.dlp.CloudDLPListDLPJobsOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_function_operator.py b/airflow/contrib/operators/gcp_function_operator.py
index 664f5e5..cebf4e7 100644
--- a/airflow/contrib/operators/gcp_function_operator.py
+++ b/airflow/contrib/operators/gcp_function_operator.py
@@ -20,12 +20,14 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.functions import (
-    CloudFunctionDeleteFunctionOperator, CloudFunctionDeployFunctionOperator,
+    CloudFunctionDeleteFunctionOperator,
+    CloudFunctionDeployFunctionOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.functions`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -40,7 +42,8 @@ class GcfFunctionDeleteOperator(CloudFunctionDeleteFunctionOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.function.CloudFunctionDeleteFunctionOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -56,6 +59,7 @@ class GcfFunctionDeployOperator(CloudFunctionDeployFunctionOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.function.CloudFunctionDeployFunctionOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_natural_language_operator.py b/airflow/contrib/operators/gcp_natural_language_operator.py
index daac37e..e9ec096 100644
--- a/airflow/contrib/operators/gcp_natural_language_operator.py
+++ b/airflow/contrib/operators/gcp_natural_language_operator.py
@@ -20,15 +20,18 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.natural_language import (
-    CloudNaturalLanguageAnalyzeEntitiesOperator, CloudNaturalLanguageAnalyzeEntitySentimentOperator,
-    CloudNaturalLanguageAnalyzeSentimentOperator, CloudNaturalLanguageClassifyTextOperator,
+    CloudNaturalLanguageAnalyzeEntitiesOperator,
+    CloudNaturalLanguageAnalyzeEntitySentimentOperator,
+    CloudNaturalLanguageAnalyzeSentimentOperator,
+    CloudNaturalLanguageClassifyTextOperator,
 )
 
 warnings.warn(
     """This module is deprecated.
     Please use `airflow.providers.google.cloud.operators.natural_language`
     """,
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -46,7 +49,8 @@ class CloudLanguageAnalyzeEntitiesOperator(CloudNaturalLanguageAnalyzeEntitiesOp
             `airflow.providers.google.cloud.operators.natural_language
             .CloudNaturalLanguageAnalyzeEntitiesOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -66,7 +70,8 @@ class CloudLanguageAnalyzeEntitySentimentOperator(CloudNaturalLanguageAnalyzeEnt
             `airflow.providers.google.cloud.operators.natural_language
             .CloudNaturalLanguageAnalyzeEntitySentimentOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -84,7 +89,8 @@ class CloudLanguageAnalyzeSentimentOperator(CloudNaturalLanguageAnalyzeSentiment
             Please use `airflow.providers.google.cloud.operators.natural_language
             .CloudNaturalLanguageAnalyzeSentimentOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -102,6 +108,7 @@ class CloudLanguageClassifyTextOperator(CloudNaturalLanguageClassifyTextOperator
             Please use `airflow.providers.google.cloud.operators.natural_language
             .CloudNaturalLanguageClassifyTextOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_spanner_operator.py b/airflow/contrib/operators/gcp_spanner_operator.py
index bd5f4fa..d15c7c0 100644
--- a/airflow/contrib/operators/gcp_spanner_operator.py
+++ b/airflow/contrib/operators/gcp_spanner_operator.py
@@ -20,9 +20,12 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.spanner import (
-    SpannerDeleteDatabaseInstanceOperator, SpannerDeleteInstanceOperator,
-    SpannerDeployDatabaseInstanceOperator, SpannerDeployInstanceOperator,
-    SpannerQueryDatabaseInstanceOperator, SpannerUpdateDatabaseInstanceOperator,
+    SpannerDeleteDatabaseInstanceOperator,
+    SpannerDeleteInstanceOperator,
+    SpannerDeployDatabaseInstanceOperator,
+    SpannerDeployInstanceOperator,
+    SpannerQueryDatabaseInstanceOperator,
+    SpannerUpdateDatabaseInstanceOperator,
 )
 
 warnings.warn(
@@ -40,7 +43,9 @@ class CloudSpannerInstanceDatabaseDeleteOperator(SpannerDeleteDatabaseInstanceOp
 
     def __init__(self, *args, **kwargs):
         warnings.warn(
-            self.__doc__, DeprecationWarning, stacklevel=3,
+            self.__doc__,
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -53,7 +58,9 @@ class CloudSpannerInstanceDatabaseDeployOperator(SpannerDeployDatabaseInstanceOp
 
     def __init__(self, *args, **kwargs):
         warnings.warn(
-            self.__doc__, DeprecationWarning, stacklevel=3,
+            self.__doc__,
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -66,7 +73,9 @@ class CloudSpannerInstanceDatabaseQueryOperator(SpannerQueryDatabaseInstanceOper
 
     def __init__(self, *args, **kwargs):
         warnings.warn(
-            self.__doc__, DeprecationWarning, stacklevel=3,
+            self.__doc__,
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -79,7 +88,9 @@ class CloudSpannerInstanceDatabaseUpdateOperator(SpannerUpdateDatabaseInstanceOp
 
     def __init__(self, *args, **kwargs):
         warnings.warn(
-            self.__doc__, DeprecationWarning, stacklevel=3,
+            self.__doc__,
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -92,7 +103,9 @@ class CloudSpannerInstanceDeleteOperator(SpannerDeleteInstanceOperator):
 
     def __init__(self, *args, **kwargs):
         warnings.warn(
-            self.__doc__, DeprecationWarning, stacklevel=3,
+            self.__doc__,
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -105,6 +118,8 @@ class CloudSpannerInstanceDeployOperator(SpannerDeployInstanceOperator):
 
     def __init__(self, *args, **kwargs):
         warnings.warn(
-            self.__doc__, DeprecationWarning, stacklevel=3,
+            self.__doc__,
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_speech_to_text_operator.py b/airflow/contrib/operators/gcp_speech_to_text_operator.py
index 4d2c644..c24a027 100644
--- a/airflow/contrib/operators/gcp_speech_to_text_operator.py
+++ b/airflow/contrib/operators/gcp_speech_to_text_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.operators.speech_to_text import CloudSpeechT
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.speech_to_text`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -40,6 +41,7 @@ class GcpSpeechToTextRecognizeSpeechOperator(CloudSpeechToTextRecognizeSpeechOpe
             Please use
             `airflow.providers.google.cloud.operators.speech_to_text
             .CloudSpeechToTextRecognizeSpeechOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_sql_operator.py b/airflow/contrib/operators/gcp_sql_operator.py
index 00a5b6e..9ec00f8 100644
--- a/airflow/contrib/operators/gcp_sql_operator.py
+++ b/airflow/contrib/operators/gcp_sql_operator.py
@@ -20,15 +20,22 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.cloud_sql import (
-    CloudSQLBaseOperator, CloudSQLCreateInstanceDatabaseOperator, CloudSQLCreateInstanceOperator,
-    CloudSQLDeleteInstanceDatabaseOperator, CloudSQLDeleteInstanceOperator, CloudSQLExecuteQueryOperator,
-    CloudSQLExportInstanceOperator, CloudSQLImportInstanceOperator, CloudSQLInstancePatchOperator,
+    CloudSQLBaseOperator,
+    CloudSQLCreateInstanceDatabaseOperator,
+    CloudSQLCreateInstanceOperator,
+    CloudSQLDeleteInstanceDatabaseOperator,
+    CloudSQLDeleteInstanceOperator,
+    CloudSQLExecuteQueryOperator,
+    CloudSQLExportInstanceOperator,
+    CloudSQLImportInstanceOperator,
+    CloudSQLInstancePatchOperator,
     CloudSQLPatchInstanceDatabaseOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.cloud_sql`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
diff --git a/airflow/contrib/operators/gcp_tasks_operator.py b/airflow/contrib/operators/gcp_tasks_operator.py
index 1e39bdd..e1a5324 100644
--- a/airflow/contrib/operators/gcp_tasks_operator.py
+++ b/airflow/contrib/operators/gcp_tasks_operator.py
@@ -21,14 +21,23 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.operators.tasks import (  # noqa
-    CloudTasksQueueCreateOperator, CloudTasksQueueDeleteOperator, CloudTasksQueueGetOperator,
-    CloudTasksQueuePauseOperator, CloudTasksQueuePurgeOperator, CloudTasksQueueResumeOperator,
-    CloudTasksQueuesListOperator, CloudTasksQueueUpdateOperator, CloudTasksTaskCreateOperator,
-    CloudTasksTaskDeleteOperator, CloudTasksTaskGetOperator, CloudTasksTaskRunOperator,
+    CloudTasksQueueCreateOperator,
+    CloudTasksQueueDeleteOperator,
+    CloudTasksQueueGetOperator,
+    CloudTasksQueuePauseOperator,
+    CloudTasksQueuePurgeOperator,
+    CloudTasksQueueResumeOperator,
+    CloudTasksQueuesListOperator,
+    CloudTasksQueueUpdateOperator,
+    CloudTasksTaskCreateOperator,
+    CloudTasksTaskDeleteOperator,
+    CloudTasksTaskGetOperator,
+    CloudTasksTaskRunOperator,
     CloudTasksTasksListOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.tasks`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/gcp_text_to_speech_operator.py b/airflow/contrib/operators/gcp_text_to_speech_operator.py
index 9a43b7c..03c2bcd 100644
--- a/airflow/contrib/operators/gcp_text_to_speech_operator.py
+++ b/airflow/contrib/operators/gcp_text_to_speech_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.operators.text_to_speech import CloudTextToS
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.text_to_speech`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -38,6 +39,7 @@ class GcpTextToSpeechSynthesizeOperator(CloudTextToSpeechSynthesizeOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.text_to_speech.CloudTextToSpeechSynthesizeOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_transfer_operator.py b/airflow/contrib/operators/gcp_transfer_operator.py
index 2f5f0a1..a939fdc 100644
--- a/airflow/contrib/operators/gcp_transfer_operator.py
+++ b/airflow/contrib/operators/gcp_transfer_operator.py
@@ -23,17 +23,23 @@ Please use `airflow.providers.google.cloud.operators.cloud_storage_transfer_serv
 import warnings
 
 from airflow.providers.google.cloud.operators.cloud_storage_transfer_service import (
-    CloudDataTransferServiceCancelOperationOperator, CloudDataTransferServiceCreateJobOperator,
-    CloudDataTransferServiceDeleteJobOperator, CloudDataTransferServiceGCSToGCSOperator,
-    CloudDataTransferServiceGetOperationOperator, CloudDataTransferServiceListOperationsOperator,
-    CloudDataTransferServicePauseOperationOperator, CloudDataTransferServiceResumeOperationOperator,
-    CloudDataTransferServiceS3ToGCSOperator, CloudDataTransferServiceUpdateJobOperator,
+    CloudDataTransferServiceCancelOperationOperator,
+    CloudDataTransferServiceCreateJobOperator,
+    CloudDataTransferServiceDeleteJobOperator,
+    CloudDataTransferServiceGCSToGCSOperator,
+    CloudDataTransferServiceGetOperationOperator,
+    CloudDataTransferServiceListOperationsOperator,
+    CloudDataTransferServicePauseOperationOperator,
+    CloudDataTransferServiceResumeOperationOperator,
+    CloudDataTransferServiceS3ToGCSOperator,
+    CloudDataTransferServiceUpdateJobOperator,
 )
 
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.google.cloud.operators.cloud_storage_transfer_service`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -49,7 +55,8 @@ class GcpTransferServiceJobCreateOperator(CloudDataTransferServiceCreateJobOpera
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceCreateJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -66,7 +73,8 @@ class GcpTransferServiceJobDeleteOperator(CloudDataTransferServiceDeleteJobOpera
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceDeleteJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -83,7 +91,8 @@ class GcpTransferServiceJobUpdateOperator(CloudDataTransferServiceUpdateJobOpera
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceUpdateJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -101,7 +110,8 @@ class GcpTransferServiceOperationCancelOperator(CloudDataTransferServiceCancelOp
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceCancelOperationOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -118,7 +128,8 @@ class GcpTransferServiceOperationGetOperator(CloudDataTransferServiceGetOperatio
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceGetOperationOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -136,7 +147,8 @@ class GcpTransferServiceOperationPauseOperator(CloudDataTransferServicePauseOper
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServicePauseOperationOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -154,7 +166,8 @@ class GcpTransferServiceOperationResumeOperator(CloudDataTransferServiceResumeOp
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceResumeOperationOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -172,7 +185,8 @@ class GcpTransferServiceOperationsListOperator(CloudDataTransferServiceListOpera
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceListOperationsOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -190,7 +204,8 @@ class GoogleCloudStorageToGoogleCloudStorageTransferOperator(CloudDataTransferSe
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceGCSToGCSOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -208,6 +223,7 @@ class S3ToGoogleCloudStorageTransferOperator(CloudDataTransferServiceS3ToGCSOper
             Please use `airflow.providers.google.cloud.operators.data_transfer
             .CloudDataTransferServiceS3ToGCSOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_translate_operator.py b/airflow/contrib/operators/gcp_translate_operator.py
index 8b1c939..22f302d 100644
--- a/airflow/contrib/operators/gcp_translate_operator.py
+++ b/airflow/contrib/operators/gcp_translate_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.operators.translate import CloudTranslateTex
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.translate`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/gcp_translate_speech_operator.py b/airflow/contrib/operators/gcp_translate_speech_operator.py
index 121158d..7246978 100644
--- a/airflow/contrib/operators/gcp_translate_speech_operator.py
+++ b/airflow/contrib/operators/gcp_translate_speech_operator.py
@@ -24,7 +24,8 @@ from airflow.providers.google.cloud.operators.translate_speech import CloudTrans
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.translate_speech`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -40,6 +41,7 @@ class GcpTranslateSpeechOperator(CloudTranslateSpeechOperator):
             Please use
             `airflow.providers.google.cloud.operators.translate_speech.CloudTranslateSpeechOperator`.
             """,
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcp_video_intelligence_operator.py b/airflow/contrib/operators/gcp_video_intelligence_operator.py
index 401c70d..3e08eb6 100644
--- a/airflow/contrib/operators/gcp_video_intelligence_operator.py
+++ b/airflow/contrib/operators/gcp_video_intelligence_operator.py
@@ -21,11 +21,13 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.operators.video_intelligence import (  # noqa
-    CloudVideoIntelligenceDetectVideoExplicitContentOperator, CloudVideoIntelligenceDetectVideoLabelsOperator,
+    CloudVideoIntelligenceDetectVideoExplicitContentOperator,
+    CloudVideoIntelligenceDetectVideoLabelsOperator,
     CloudVideoIntelligenceDetectVideoShotsOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.video_intelligence`",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/gcp_vision_operator.py b/airflow/contrib/operators/gcp_vision_operator.py
index 99f8973..3975f77 100644
--- a/airflow/contrib/operators/gcp_vision_operator.py
+++ b/airflow/contrib/operators/gcp_vision_operator.py
@@ -20,18 +20,28 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.vision import (  # noqa # pylint: disable=unused-import
-    CloudVisionAddProductToProductSetOperator, CloudVisionCreateProductOperator,
-    CloudVisionCreateProductSetOperator, CloudVisionCreateReferenceImageOperator,
-    CloudVisionDeleteProductOperator, CloudVisionDeleteProductSetOperator,
-    CloudVisionDetectImageLabelsOperator, CloudVisionDetectImageSafeSearchOperator,
-    CloudVisionDetectTextOperator, CloudVisionGetProductOperator, CloudVisionGetProductSetOperator,
-    CloudVisionImageAnnotateOperator, CloudVisionRemoveProductFromProductSetOperator,
-    CloudVisionTextDetectOperator, CloudVisionUpdateProductOperator, CloudVisionUpdateProductSetOperator,
+    CloudVisionAddProductToProductSetOperator,
+    CloudVisionCreateProductOperator,
+    CloudVisionCreateProductSetOperator,
+    CloudVisionCreateReferenceImageOperator,
+    CloudVisionDeleteProductOperator,
+    CloudVisionDeleteProductSetOperator,
+    CloudVisionDetectImageLabelsOperator,
+    CloudVisionDetectImageSafeSearchOperator,
+    CloudVisionDetectTextOperator,
+    CloudVisionGetProductOperator,
+    CloudVisionGetProductSetOperator,
+    CloudVisionImageAnnotateOperator,
+    CloudVisionRemoveProductFromProductSetOperator,
+    CloudVisionTextDetectOperator,
+    CloudVisionUpdateProductOperator,
+    CloudVisionUpdateProductSetOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.vision`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -45,7 +55,8 @@ class CloudVisionAnnotateImageOperator(CloudVisionImageAnnotateOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.vision.CloudVisionImageAnnotateOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -60,7 +71,8 @@ class CloudVisionDetectDocumentTextOperator(CloudVisionTextDetectOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.vision.CloudVisionTextDetectOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -75,7 +87,8 @@ class CloudVisionProductCreateOperator(CloudVisionCreateProductOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.vision.CloudVisionCreateProductOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -90,7 +103,8 @@ class CloudVisionProductDeleteOperator(CloudVisionDeleteProductOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.vision.CloudVisionDeleteProductOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -105,7 +119,8 @@ class CloudVisionProductGetOperator(CloudVisionGetProductOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.vision.CloudVisionGetProductOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -121,7 +136,8 @@ class CloudVisionProductSetCreateOperator(CloudVisionCreateProductSetOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.vision.CloudVisionCreateProductSetOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -137,7 +153,8 @@ class CloudVisionProductSetDeleteOperator(CloudVisionDeleteProductSetOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.vision.CloudVisionDeleteProductSetOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -153,7 +170,8 @@ class CloudVisionProductSetGetOperator(CloudVisionGetProductSetOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.vision.CloudVisionGetProductSetOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -169,7 +187,8 @@ class CloudVisionProductSetUpdateOperator(CloudVisionUpdateProductSetOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.vision.CloudVisionUpdateProductSetOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -185,7 +204,8 @@ class CloudVisionProductUpdateOperator(CloudVisionUpdateProductOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.vision.CloudVisionUpdateProductOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -201,6 +221,7 @@ class CloudVisionReferenceImageCreateOperator(CloudVisionCreateReferenceImageOpe
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.vision.CloudVisionCreateReferenceImageOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_acl_operator.py b/airflow/contrib/operators/gcs_acl_operator.py
index 4803c99..efd81d9 100644
--- a/airflow/contrib/operators/gcs_acl_operator.py
+++ b/airflow/contrib/operators/gcs_acl_operator.py
@@ -20,12 +20,14 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.gcs import (
-    GCSBucketCreateAclEntryOperator, GCSObjectCreateAclEntryOperator,
+    GCSBucketCreateAclEntryOperator,
+    GCSObjectCreateAclEntryOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -39,7 +41,8 @@ class GoogleCloudStorageBucketCreateAclEntryOperator(GCSBucketCreateAclEntryOper
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.gcs.GCSBucketCreateAclEntryOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -54,6 +57,7 @@ class GoogleCloudStorageObjectCreateAclEntryOperator(GCSObjectCreateAclEntryOper
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.gcs.GCSObjectCreateAclEntryOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_delete_operator.py b/airflow/contrib/operators/gcs_delete_operator.py
index e02926f..4ea63fe 100644
--- a/airflow/contrib/operators/gcs_delete_operator.py
+++ b/airflow/contrib/operators/gcs_delete_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.operators.gcs import GCSDeleteObjectsOperato
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class GoogleCloudStorageDeleteOperator(GCSDeleteObjectsOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.gcs.GCSDeleteObjectsOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_download_operator.py b/airflow/contrib/operators/gcs_download_operator.py
index 43f959d..bfc421a 100644
--- a/airflow/contrib/operators/gcs_download_operator.py
+++ b/airflow/contrib/operators/gcs_download_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.gcs_to_local import GCSToLocalFile
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class GoogleCloudStorageDownloadOperator(GCSToLocalFilesystemOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.gcs.GCSToLocalFilesystemOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_list_operator.py b/airflow/contrib/operators/gcs_list_operator.py
index de17ce6..5ac4a95 100644
--- a/airflow/contrib/operators/gcs_list_operator.py
+++ b/airflow/contrib/operators/gcs_list_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.operators.gcs import GCSListObjectsOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class GoogleCloudStorageListOperator(GCSListObjectsOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.gcs.GCSListObjectsOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_operator.py b/airflow/contrib/operators/gcs_operator.py
index bef41c5..72975bc 100644
--- a/airflow/contrib/operators/gcs_operator.py
+++ b/airflow/contrib/operators/gcs_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.operators.gcs import GCSCreateBucketOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class GoogleCloudStorageCreateBucketOperator(GCSCreateBucketOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.gcs.GCSCreateBucketOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_to_bq.py b/airflow/contrib/operators/gcs_to_bq.py
index 27af7b7..5a9c454 100644
--- a/airflow/contrib/operators/gcs_to_bq.py
+++ b/airflow/contrib/operators/gcs_to_bq.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.gcs_to_bigquery import GCSToBigQue
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.gcs_to_bigquery`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class GoogleCloudStorageToBigQueryOperator(GCSToBigQueryOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.gcs_to_bq.GCSToBigQueryOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_to_gcs.py b/airflow/contrib/operators/gcs_to_gcs.py
index 4737fa0..ca02151 100644
--- a/airflow/contrib/operators/gcs_to_gcs.py
+++ b/airflow/contrib/operators/gcs_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.gcs_to_gcs import GCSToGCSOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.gcs_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class GoogleCloudStorageToGoogleCloudStorageOperator(GCSToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.gcs_to_gcs.GCSToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/gcs_to_gcs_transfer_operator.py b/airflow/contrib/operators/gcs_to_gcs_transfer_operator.py
index fa1ec22..99d7ca2 100644
--- a/airflow/contrib/operators/gcs_to_gcs_transfer_operator.py
+++ b/airflow/contrib/operators/gcs_to_gcs_transfer_operator.py
@@ -27,5 +27,6 @@ import warnings
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.google.cloud.operators.cloud_storage_transfer_service`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/gcs_to_gdrive_operator.py b/airflow/contrib/operators/gcs_to_gdrive_operator.py
index 6ec7462..67f312d 100644
--- a/airflow/contrib/operators/gcs_to_gdrive_operator.py
+++ b/airflow/contrib/operators/gcs_to_gdrive_operator.py
@@ -23,7 +23,7 @@ import warnings
 from airflow.providers.google.suite.transfers.gcs_to_gdrive import GCSToGoogleDriveOperator  # noqa
 
 warnings.warn(
-    "This module is deprecated. "
-    "Please use `airflow.providers.google.suite.transfers.gcs_to_gdrive.",
-    DeprecationWarning, stacklevel=2
+    "This module is deprecated. " "Please use `airflow.providers.google.suite.transfers.gcs_to_gdrive.",
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/gcs_to_s3.py b/airflow/contrib/operators/gcs_to_s3.py
index dd358ee..ed7fef6 100644
--- a/airflow/contrib/operators/gcs_to_s3.py
+++ b/airflow/contrib/operators/gcs_to_s3.py
@@ -23,7 +23,8 @@ from airflow.providers.amazon.aws.transfers.gcs_to_s3 import GCSToS3Operator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.transfers.gcs_to_s3`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class GoogleCloudStorageToS3Operator(GCSToS3Operator):
         warnings.warn(
             "This class is deprecated. "
             "Please use `airflow.providers.amazon.aws.transfers.gcs_to_s3.GCSToS3Operator`.",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/grpc_operator.py b/airflow/contrib/operators/grpc_operator.py
index 03a9b6e..abda120 100644
--- a/airflow/contrib/operators/grpc_operator.py
+++ b/airflow/contrib/operators/grpc_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.grpc.operators.grpc import GrpcOperator  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.grpc.operators.grpc`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/hive_to_dynamodb.py b/airflow/contrib/operators/hive_to_dynamodb.py
index 6784680..4895960 100644
--- a/airflow/contrib/operators/hive_to_dynamodb.py
+++ b/airflow/contrib/operators/hive_to_dynamodb.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.transfers.hive_to_dynamodb import HiveToDynamo
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.transfers.hive_to_dynamodb`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/imap_attachment_to_s3_operator.py b/airflow/contrib/operators/imap_attachment_to_s3_operator.py
index 597d6be..316da8a 100644
--- a/airflow/contrib/operators/imap_attachment_to_s3_operator.py
+++ b/airflow/contrib/operators/imap_attachment_to_s3_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.transfers.imap_attachment_to_s3 import ImapAtt
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.transfers.imap_attachment_to_s3`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/jenkins_job_trigger_operator.py b/airflow/contrib/operators/jenkins_job_trigger_operator.py
index 13f68ae..538a0a2 100644
--- a/airflow/contrib/operators/jenkins_job_trigger_operator.py
+++ b/airflow/contrib/operators/jenkins_job_trigger_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.jenkins.operators.jenkins_job_trigger import JenkinsJobTr
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.jenkins.operators.jenkins_job_trigger`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/jira_operator.py b/airflow/contrib/operators/jira_operator.py
index d7e977f..d846629 100644
--- a/airflow/contrib/operators/jira_operator.py
+++ b/airflow/contrib/operators/jira_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.jira.operators.jira import JiraOperator  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.jira.operators.jira`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/kubernetes_pod_operator.py b/airflow/contrib/operators/kubernetes_pod_operator.py
index 2663ced..a658735 100644
--- a/airflow/contrib/operators/kubernetes_pod_operator.py
+++ b/airflow/contrib/operators/kubernetes_pod_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.cncf.kubernetes.operators.kubernetes_pod import Kubernete
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.cncf.kubernetes.operators.kubernetes_pod`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/mlengine_operator.py b/airflow/contrib/operators/mlengine_operator.py
index fd6b530..149ff82 100644
--- a/airflow/contrib/operators/mlengine_operator.py
+++ b/airflow/contrib/operators/mlengine_operator.py
@@ -20,13 +20,16 @@
 import warnings
 
 from airflow.providers.google.cloud.operators.mlengine import (
-    MLEngineManageModelOperator, MLEngineManageVersionOperator, MLEngineStartBatchPredictionJobOperator,
+    MLEngineManageModelOperator,
+    MLEngineManageVersionOperator,
+    MLEngineStartBatchPredictionJobOperator,
     MLEngineStartTrainingJobOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.operators.mlengine`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -41,7 +44,8 @@ class MLEngineBatchPredictionOperator(MLEngineStartBatchPredictionJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.mlengine.MLEngineStartBatchPredictionJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -56,7 +60,8 @@ class MLEngineModelOperator(MLEngineManageModelOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.operators.mlengine.MLEngineManageModelOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -72,7 +77,8 @@ class MLEngineTrainingOperator(MLEngineStartTrainingJobOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.mlengine.MLEngineStartTrainingJobOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -88,6 +94,7 @@ class MLEngineVersionOperator(MLEngineManageVersionOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.operators.mlengine.MLEngineManageVersionOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/mongo_to_s3.py b/airflow/contrib/operators/mongo_to_s3.py
index 82449ee..fe8bd1d 100644
--- a/airflow/contrib/operators/mongo_to_s3.py
+++ b/airflow/contrib/operators/mongo_to_s3.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.transfers.mongo_to_s3 import MongoToS3Operator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.transfers.mongo_to_s3`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/mssql_to_gcs.py b/airflow/contrib/operators/mssql_to_gcs.py
index b094c27..3527327 100644
--- a/airflow/contrib/operators/mssql_to_gcs.py
+++ b/airflow/contrib/operators/mssql_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.mssql_to_gcs import MSSQLToGCSOper
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.mssql_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class MsSqlToGoogleCloudStorageOperator(MSSQLToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.mssql_to_gcs.MSSQLToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/mysql_to_gcs.py b/airflow/contrib/operators/mysql_to_gcs.py
index dbb5cdf..73a1375 100644
--- a/airflow/contrib/operators/mysql_to_gcs.py
+++ b/airflow/contrib/operators/mysql_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.mysql_to_gcs import MySQLToGCSOper
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.mysql_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class MySqlToGoogleCloudStorageOperator(MySQLToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.mysql_to_gcs.MySQLToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/opsgenie_alert_operator.py b/airflow/contrib/operators/opsgenie_alert_operator.py
index 877b87a..acf036a 100644
--- a/airflow/contrib/operators/opsgenie_alert_operator.py
+++ b/airflow/contrib/operators/opsgenie_alert_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.opsgenie.operators.opsgenie_alert import OpsgenieAlertOpe
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.opsgenie.operators.opsgenie_alert`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/oracle_to_azure_data_lake_transfer.py b/airflow/contrib/operators/oracle_to_azure_data_lake_transfer.py
index 2cdca43..c27d948 100644
--- a/airflow/contrib/operators/oracle_to_azure_data_lake_transfer.py
+++ b/airflow/contrib/operators/oracle_to_azure_data_lake_transfer.py
@@ -30,5 +30,6 @@ from airflow.providers.microsoft.azure.transfers.oracle_to_azure_data_lake impor
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.microsoft.azure.transfers.oracle_to_azure_data_lake`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/oracle_to_oracle_transfer.py b/airflow/contrib/operators/oracle_to_oracle_transfer.py
index e522951..28a39c6 100644
--- a/airflow/contrib/operators/oracle_to_oracle_transfer.py
+++ b/airflow/contrib/operators/oracle_to_oracle_transfer.py
@@ -27,7 +27,8 @@ from airflow.providers.oracle.transfers.oracle_to_oracle import OracleToOracleOp
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.oracle.transfers.oracle_to_oracle`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -43,6 +44,7 @@ class OracleToOracleTransfer(OracleToOracleOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.oracle.transfers.oracle_to_oracle.OracleToOracleOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/postgres_to_gcs_operator.py b/airflow/contrib/operators/postgres_to_gcs_operator.py
index 0cbdca3..62f2d06 100644
--- a/airflow/contrib/operators/postgres_to_gcs_operator.py
+++ b/airflow/contrib/operators/postgres_to_gcs_operator.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.postgres_to_gcs import PostgresToG
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.postgres_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class PostgresToGoogleCloudStorageOperator(PostgresToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.postgres_to_gcs.PostgresToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/pubsub_operator.py b/airflow/contrib/operators/pubsub_operator.py
index d2bab4f..6527c8f 100644
--- a/airflow/contrib/operators/pubsub_operator.py
+++ b/airflow/contrib/operators/pubsub_operator.py
@@ -23,8 +23,11 @@ Please use `airflow.providers.google.cloud.operators.pubsub`.
 import warnings
 
 from airflow.providers.google.cloud.operators.pubsub import (
-    PubSubCreateSubscriptionOperator, PubSubCreateTopicOperator, PubSubDeleteSubscriptionOperator,
-    PubSubDeleteTopicOperator, PubSubPublishMessageOperator,
+    PubSubCreateSubscriptionOperator,
+    PubSubCreateTopicOperator,
+    PubSubDeleteSubscriptionOperator,
+    PubSubDeleteTopicOperator,
+    PubSubPublishMessageOperator,
 )
 
 warnings.warn(
diff --git a/airflow/contrib/operators/qubole_check_operator.py b/airflow/contrib/operators/qubole_check_operator.py
index 7436d67..6eefe0b 100644
--- a/airflow/contrib/operators/qubole_check_operator.py
+++ b/airflow/contrib/operators/qubole_check_operator.py
@@ -21,10 +21,12 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.qubole.operators.qubole_check import (  # noqa
-    QuboleCheckOperator, QuboleValueCheckOperator,
+    QuboleCheckOperator,
+    QuboleValueCheckOperator,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.qubole.operators.qubole_check`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/qubole_operator.py b/airflow/contrib/operators/qubole_operator.py
index 86cc465..521c1dd 100644
--- a/airflow/contrib/operators/qubole_operator.py
+++ b/airflow/contrib/operators/qubole_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.qubole.operators.qubole import QuboleOperator  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.qubole.operators.qubole`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/redis_publish_operator.py b/airflow/contrib/operators/redis_publish_operator.py
index f84aaed..adee8f1 100644
--- a/airflow/contrib/operators/redis_publish_operator.py
+++ b/airflow/contrib/operators/redis_publish_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.redis.operators.redis_publish import RedisPublishOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.redis.operators.redis_publish`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/s3_copy_object_operator.py b/airflow/contrib/operators/s3_copy_object_operator.py
index 44d34c3..81a9215 100644
--- a/airflow/contrib/operators/s3_copy_object_operator.py
+++ b/airflow/contrib/operators/s3_copy_object_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.s3_copy_object import S3CopyObjectOp
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.s3_copy_object`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/s3_delete_objects_operator.py b/airflow/contrib/operators/s3_delete_objects_operator.py
index 211524e..39ab997 100644
--- a/airflow/contrib/operators/s3_delete_objects_operator.py
+++ b/airflow/contrib/operators/s3_delete_objects_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.s3_delete_objects import S3DeleteObj
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.s3_delete_objects`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/s3_list_operator.py b/airflow/contrib/operators/s3_list_operator.py
index 56a1d9f..e6ae59a 100644
--- a/airflow/contrib/operators/s3_list_operator.py
+++ b/airflow/contrib/operators/s3_list_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.s3_list import S3ListOperator  # noq
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.s3_list`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/s3_to_gcs_operator.py b/airflow/contrib/operators/s3_to_gcs_operator.py
index 7a43f76..d6c1f04 100644
--- a/airflow/contrib/operators/s3_to_gcs_operator.py
+++ b/airflow/contrib/operators/s3_to_gcs_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.transfers.s3_to_gcs import S3ToGCSOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.s3_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/s3_to_gcs_transfer_operator.py b/airflow/contrib/operators/s3_to_gcs_transfer_operator.py
index 84915a8..d82657b 100644
--- a/airflow/contrib/operators/s3_to_gcs_transfer_operator.py
+++ b/airflow/contrib/operators/s3_to_gcs_transfer_operator.py
@@ -22,10 +22,13 @@ Please use `airflow.providers.google.cloud.operators.cloud_storage_transfer_serv
 import warnings
 
 # pylint: disable=unused-import,line-too-long
-from airflow.providers.google.cloud.operators.cloud_storage_transfer_service import CloudDataTransferServiceS3ToGCSOperator  # noqa isort:skip
+from airflow.providers.google.cloud.operators.cloud_storage_transfer_service import (  # noqa isort:skip
+    CloudDataTransferServiceS3ToGCSOperator,
+)
 
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.google.cloud.operators.cloud_storage_transfer_service`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/s3_to_sftp_operator.py b/airflow/contrib/operators/s3_to_sftp_operator.py
index b247ce5..1e5a934 100644
--- a/airflow/contrib/operators/s3_to_sftp_operator.py
+++ b/airflow/contrib/operators/s3_to_sftp_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.transfers.s3_to_sftp import S3ToSFTPOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.transfers.s3_to_sftp`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sagemaker_base_operator.py b/airflow/contrib/operators/sagemaker_base_operator.py
index c44a1cd..006424a 100644
--- a/airflow/contrib/operators/sagemaker_base_operator.py
+++ b/airflow/contrib/operators/sagemaker_base_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.sagemaker_base import SageMakerBaseO
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.sagemaker_base`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sagemaker_endpoint_config_operator.py b/airflow/contrib/operators/sagemaker_endpoint_config_operator.py
index cd8b8c8..cf828d4 100644
--- a/airflow/contrib/operators/sagemaker_endpoint_config_operator.py
+++ b/airflow/contrib/operators/sagemaker_endpoint_config_operator.py
@@ -30,5 +30,6 @@ from airflow.providers.amazon.aws.operators.sagemaker_endpoint_config import (
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.amazon.aws.operators.sagemaker_endpoint_config`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sagemaker_endpoint_operator.py b/airflow/contrib/operators/sagemaker_endpoint_operator.py
index 6cc6abb..cb1de3f 100644
--- a/airflow/contrib/operators/sagemaker_endpoint_operator.py
+++ b/airflow/contrib/operators/sagemaker_endpoint_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.sagemaker_endpoint import SageMakerE
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.sagemaker_endpoint`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sagemaker_model_operator.py b/airflow/contrib/operators/sagemaker_model_operator.py
index 174e638..c03799d 100644
--- a/airflow/contrib/operators/sagemaker_model_operator.py
+++ b/airflow/contrib/operators/sagemaker_model_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.sagemaker_model import SageMakerMode
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.sagemaker_model`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sagemaker_training_operator.py b/airflow/contrib/operators/sagemaker_training_operator.py
index 17f2b13..f6b1a0e 100644
--- a/airflow/contrib/operators/sagemaker_training_operator.py
+++ b/airflow/contrib/operators/sagemaker_training_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.sagemaker_training import SageMakerT
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.sagemaker_training`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sagemaker_transform_operator.py b/airflow/contrib/operators/sagemaker_transform_operator.py
index 490a0c2..e4f8460 100644
--- a/airflow/contrib/operators/sagemaker_transform_operator.py
+++ b/airflow/contrib/operators/sagemaker_transform_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.sagemaker_transform import SageMaker
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.sagemaker_transform`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sagemaker_tuning_operator.py b/airflow/contrib/operators/sagemaker_tuning_operator.py
index 24cde0f..2113eab 100644
--- a/airflow/contrib/operators/sagemaker_tuning_operator.py
+++ b/airflow/contrib/operators/sagemaker_tuning_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.operators.sagemaker_tuning import SageMakerTun
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.operators.sagemaker_tuning`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/segment_track_event_operator.py b/airflow/contrib/operators/segment_track_event_operator.py
index e1a17f3..49fc35e 100644
--- a/airflow/contrib/operators/segment_track_event_operator.py
+++ b/airflow/contrib/operators/segment_track_event_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.segment.operators.segment_track_event import SegmentTrack
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.segment.operators.segment_track_event`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sftp_to_s3_operator.py b/airflow/contrib/operators/sftp_to_s3_operator.py
index 817880c..d52fab2 100644
--- a/airflow/contrib/operators/sftp_to_s3_operator.py
+++ b/airflow/contrib/operators/sftp_to_s3_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.transfers.sftp_to_s3 import SFTPToS3Operator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.transfers.sftp_to_s3`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/slack_webhook_operator.py b/airflow/contrib/operators/slack_webhook_operator.py
index bdf5174..627ca14 100644
--- a/airflow/contrib/operators/slack_webhook_operator.py
+++ b/airflow/contrib/operators/slack_webhook_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.slack.operators.slack_webhook import SlackWebhookOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.slack.operators.slack_webhook`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/snowflake_operator.py b/airflow/contrib/operators/snowflake_operator.py
index de14627..41fe2d0 100644
--- a/airflow/contrib/operators/snowflake_operator.py
+++ b/airflow/contrib/operators/snowflake_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.snowflake.operators.snowflake import SnowflakeOperator  #
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.snowflake.operators.snowflake`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/spark_jdbc_operator.py b/airflow/contrib/operators/spark_jdbc_operator.py
index 178663e..55c0fc1 100644
--- a/airflow/contrib/operators/spark_jdbc_operator.py
+++ b/airflow/contrib/operators/spark_jdbc_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.spark.operators.spark_jdbc import SparkJDBCOperato
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.spark.operators.spark_jdbc`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/spark_sql_operator.py b/airflow/contrib/operators/spark_sql_operator.py
index 37dfda9..b6d6a5f 100644
--- a/airflow/contrib/operators/spark_sql_operator.py
+++ b/airflow/contrib/operators/spark_sql_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.spark.operators.spark_sql import SparkSqlOperator
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.spark.operators.spark_sql`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/spark_submit_operator.py b/airflow/contrib/operators/spark_submit_operator.py
index 4b0c469..5c3253b 100644
--- a/airflow/contrib/operators/spark_submit_operator.py
+++ b/airflow/contrib/operators/spark_submit_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.spark.operators.spark_submit import SparkSubmitOpe
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.spark.operators.spark_submit`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/sql_to_gcs.py b/airflow/contrib/operators/sql_to_gcs.py
index cfeaa9b..01ba7df 100644
--- a/airflow/contrib/operators/sql_to_gcs.py
+++ b/airflow/contrib/operators/sql_to_gcs.py
@@ -23,7 +23,8 @@ from airflow.providers.google.cloud.transfers.sql_to_gcs import BaseSQLToGCSOper
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.transfers.sql_to_gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -37,6 +38,7 @@ class BaseSQLToGoogleCloudStorageOperator(BaseSQLToGCSOperator):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.transfers.sql_to_gcs.BaseSQLToGCSOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/sqoop_operator.py b/airflow/contrib/operators/sqoop_operator.py
index d0daa2b..7464a8c 100644
--- a/airflow/contrib/operators/sqoop_operator.py
+++ b/airflow/contrib/operators/sqoop_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.apache.sqoop.operators.sqoop import SqoopOperator  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.sqoop.operators.sqoop`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/ssh_operator.py b/airflow/contrib/operators/ssh_operator.py
index cc29431..82e88e2 100644
--- a/airflow/contrib/operators/ssh_operator.py
+++ b/airflow/contrib/operators/ssh_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.ssh.operators.ssh import SSHOperator  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.ssh.operators.ssh`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/vertica_operator.py b/airflow/contrib/operators/vertica_operator.py
index 2504516..71ef3d1 100644
--- a/airflow/contrib/operators/vertica_operator.py
+++ b/airflow/contrib/operators/vertica_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.vertica.operators.vertica import VerticaOperator  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.vertica.operators.vertica`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/vertica_to_hive.py b/airflow/contrib/operators/vertica_to_hive.py
index 84484ee..a1ed0f6 100644
--- a/airflow/contrib/operators/vertica_to_hive.py
+++ b/airflow/contrib/operators/vertica_to_hive.py
@@ -26,7 +26,8 @@ from airflow.providers.apache.hive.transfers.vertica_to_hive import VerticaToHiv
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.hive.transfers.vertica_to_hive`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -42,6 +43,7 @@ class VerticaToHiveTransfer(VerticaToHiveOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.apache.hive.transfers.vertica_to_hive.VerticaToHiveOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/vertica_to_mysql.py b/airflow/contrib/operators/vertica_to_mysql.py
index 7a1d174..acef39e 100644
--- a/airflow/contrib/operators/vertica_to_mysql.py
+++ b/airflow/contrib/operators/vertica_to_mysql.py
@@ -27,7 +27,8 @@ from airflow.providers.mysql.transfers.vertica_to_mysql import VerticaToMySqlOpe
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.mysql.transfers.vertica_to_mysql`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -43,6 +44,7 @@ class VerticaToMySqlTransfer(VerticaToMySqlOperator):
             """This class is deprecated.
             Please use
             `airflow.providers.mysql.transfers.vertica_to_mysql.VerticaToMySqlOperator`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/operators/wasb_delete_blob_operator.py b/airflow/contrib/operators/wasb_delete_blob_operator.py
index 44fff26..f204e8b 100644
--- a/airflow/contrib/operators/wasb_delete_blob_operator.py
+++ b/airflow/contrib/operators/wasb_delete_blob_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.operators.wasb_delete_blob import WasbDel
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.operators.wasb_delete_blob`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/operators/winrm_operator.py b/airflow/contrib/operators/winrm_operator.py
index 9d24e77..593ae63 100644
--- a/airflow/contrib/operators/winrm_operator.py
+++ b/airflow/contrib/operators/winrm_operator.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.winrm.operators.winrm import WinRMOperator  # n
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.winrm.operators.winrm`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/secrets/gcp_secrets_manager.py b/airflow/contrib/secrets/gcp_secrets_manager.py
index 6142a7f..0adcbbd 100644
--- a/airflow/contrib/secrets/gcp_secrets_manager.py
+++ b/airflow/contrib/secrets/gcp_secrets_manager.py
@@ -40,6 +40,7 @@ class CloudSecretsManagerBackend(CloudSecretManagerBackend):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.secrets.secret_manager.CloudSecretManagerBackend`.""",
-            DeprecationWarning, stacklevel=2
+            DeprecationWarning,
+            stacklevel=2,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/sensors/aws_glue_catalog_partition_sensor.py b/airflow/contrib/sensors/aws_glue_catalog_partition_sensor.py
index 99698a7..97bff99 100644
--- a/airflow/contrib/sensors/aws_glue_catalog_partition_sensor.py
+++ b/airflow/contrib/sensors/aws_glue_catalog_partition_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.glue_catalog_partition import AwsGlueC
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.glue_catalog_partition`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/azure_cosmos_sensor.py b/airflow/contrib/sensors/azure_cosmos_sensor.py
index beae4a9..3fdce37 100644
--- a/airflow/contrib/sensors/azure_cosmos_sensor.py
+++ b/airflow/contrib/sensors/azure_cosmos_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.sensors.azure_cosmos import AzureCosmosDo
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.sensors.azure_cosmos`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/bash_sensor.py b/airflow/contrib/sensors/bash_sensor.py
index 136f78a..c294fb1 100644
--- a/airflow/contrib/sensors/bash_sensor.py
+++ b/airflow/contrib/sensors/bash_sensor.py
@@ -23,6 +23,5 @@ import warnings
 from airflow.sensors.bash import STDOUT, BashSensor, Popen, TemporaryDirectory, gettempdir  # noqa
 
 warnings.warn(
-    "This module is deprecated. Please use `airflow.sensors.bash`.",
-    DeprecationWarning, stacklevel=2
+    "This module is deprecated. Please use `airflow.sensors.bash`.", DeprecationWarning, stacklevel=2
 )
diff --git a/airflow/contrib/sensors/celery_queue_sensor.py b/airflow/contrib/sensors/celery_queue_sensor.py
index 61b2ea6..5516eb4 100644
--- a/airflow/contrib/sensors/celery_queue_sensor.py
+++ b/airflow/contrib/sensors/celery_queue_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.celery.sensors.celery_queue import CeleryQueueSensor  # n
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.celery.sensors.celery_queue`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/datadog_sensor.py b/airflow/contrib/sensors/datadog_sensor.py
index d324450..d4bdaf4 100644
--- a/airflow/contrib/sensors/datadog_sensor.py
+++ b/airflow/contrib/sensors/datadog_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.datadog.sensors.datadog import DatadogSensor  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.datadog.sensors.datadog`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/emr_base_sensor.py b/airflow/contrib/sensors/emr_base_sensor.py
index 2519440..595f847 100644
--- a/airflow/contrib/sensors/emr_base_sensor.py
+++ b/airflow/contrib/sensors/emr_base_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.emr_base import EmrBaseSensor  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.emr_base`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/emr_job_flow_sensor.py b/airflow/contrib/sensors/emr_job_flow_sensor.py
index dc2a098..1e8f62a 100644
--- a/airflow/contrib/sensors/emr_job_flow_sensor.py
+++ b/airflow/contrib/sensors/emr_job_flow_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.emr_job_flow import EmrJobFlowSensor
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.emr_job_flow`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/emr_step_sensor.py b/airflow/contrib/sensors/emr_step_sensor.py
index 5989198..d64b20e 100644
--- a/airflow/contrib/sensors/emr_step_sensor.py
+++ b/airflow/contrib/sensors/emr_step_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.emr_step import EmrStepSensor  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.emr_step`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/file_sensor.py b/airflow/contrib/sensors/file_sensor.py
index eced61c..97d3c45 100644
--- a/airflow/contrib/sensors/file_sensor.py
+++ b/airflow/contrib/sensors/file_sensor.py
@@ -23,6 +23,5 @@ import warnings
 from airflow.sensors.filesystem import FileSensor  # noqa
 
 warnings.warn(
-    "This module is deprecated. Please use `airflow.sensors.filesystem`.",
-    DeprecationWarning, stacklevel=2
+    "This module is deprecated. Please use `airflow.sensors.filesystem`.", DeprecationWarning, stacklevel=2
 )
diff --git a/airflow/contrib/sensors/ftp_sensor.py b/airflow/contrib/sensors/ftp_sensor.py
index 548efe90..b8f3f6d 100644
--- a/airflow/contrib/sensors/ftp_sensor.py
+++ b/airflow/contrib/sensors/ftp_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.ftp.sensors.ftp import FTPSensor, FTPSSensor  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.ftp.sensors.ftp`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/gcp_transfer_sensor.py b/airflow/contrib/sensors/gcp_transfer_sensor.py
index 7aa9ec6..6adb234 100644
--- a/airflow/contrib/sensors/gcp_transfer_sensor.py
+++ b/airflow/contrib/sensors/gcp_transfer_sensor.py
@@ -29,7 +29,8 @@ from airflow.providers.google.cloud.sensors.cloud_storage_transfer_service impor
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.google.cloud.sensors.cloud_storage_transfer_service`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -44,6 +45,7 @@ class GCPTransferServiceWaitForJobStatusSensor(CloudDataTransferServiceJobStatus
             """This class is deprecated.
             Please use
             `airflow.providers.google.cloud.sensors.transfer.CloudDataTransferServiceJobStatusSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/sensors/gcs_sensor.py b/airflow/contrib/sensors/gcs_sensor.py
index 42182c7..2198886 100644
--- a/airflow/contrib/sensors/gcs_sensor.py
+++ b/airflow/contrib/sensors/gcs_sensor.py
@@ -20,13 +20,16 @@
 import warnings
 
 from airflow.providers.google.cloud.sensors.gcs import (
-    GCSObjectExistenceSensor, GCSObjectsWtihPrefixExistenceSensor, GCSObjectUpdateSensor,
+    GCSObjectExistenceSensor,
+    GCSObjectsWtihPrefixExistenceSensor,
+    GCSObjectUpdateSensor,
     GCSUploadSessionCompleteSensor,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.sensors.gcs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -40,7 +43,8 @@ class GoogleCloudStorageObjectSensor(GCSObjectExistenceSensor):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.sensors.gcs.GCSObjectExistenceSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -55,7 +59,8 @@ class GoogleCloudStorageObjectUpdatedSensor(GCSObjectUpdateSensor):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.sensors.gcs.GCSObjectUpdateSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -70,7 +75,8 @@ class GoogleCloudStoragePrefixSensor(GCSObjectsWtihPrefixExistenceSensor):
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.sensors.gcs.GCSObjectsWtihPrefixExistenceSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -85,6 +91,7 @@ class GoogleCloudStorageUploadSessionCompleteSensor(GCSUploadSessionCompleteSens
         warnings.warn(
             """This class is deprecated.
             Please use `airflow.providers.google.cloud.sensors.gcs.GCSUploadSessionCompleteSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/sensors/hdfs_sensor.py b/airflow/contrib/sensors/hdfs_sensor.py
index 744c1af..1923146 100644
--- a/airflow/contrib/sensors/hdfs_sensor.py
+++ b/airflow/contrib/sensors/hdfs_sensor.py
@@ -27,7 +27,8 @@ from airflow.providers.apache.hdfs.sensors.hdfs import HdfsFolderSensor, HdfsReg
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.apache.hdfs.sensors.hdfs`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
 
 
@@ -44,7 +45,8 @@ class HdfsSensorFolder(HdfsFolderSensor):
             """This class is deprecated.
             Please use
             `airflow.providers.apache.hdfs.sensors.hdfs.HdfsFolderSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
 
@@ -62,6 +64,7 @@ class HdfsSensorRegex(HdfsRegexSensor):
             """This class is deprecated.
             Please use
             `airflow.providers.apache.hdfs.sensors.hdfs.HdfsRegexSensor`.""",
-            DeprecationWarning, stacklevel=3
+            DeprecationWarning,
+            stacklevel=3,
         )
         super().__init__(*args, **kwargs)
diff --git a/airflow/contrib/sensors/imap_attachment_sensor.py b/airflow/contrib/sensors/imap_attachment_sensor.py
index 3c1fc67..03d0dfe 100644
--- a/airflow/contrib/sensors/imap_attachment_sensor.py
+++ b/airflow/contrib/sensors/imap_attachment_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.imap.sensors.imap_attachment import ImapAttachmentSensor
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.imap.sensors.imap_attachment`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/mongo_sensor.py b/airflow/contrib/sensors/mongo_sensor.py
index d817dee..28e1586 100644
--- a/airflow/contrib/sensors/mongo_sensor.py
+++ b/airflow/contrib/sensors/mongo_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.mongo.sensors.mongo import MongoSensor  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.mongo.sensors.mongo`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/pubsub_sensor.py b/airflow/contrib/sensors/pubsub_sensor.py
index 9fe3354..2a9cb52 100644
--- a/airflow/contrib/sensors/pubsub_sensor.py
+++ b/airflow/contrib/sensors/pubsub_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.sensors.pubsub import PubSubPullSensor  # no
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.sensors.pubsub`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/python_sensor.py b/airflow/contrib/sensors/python_sensor.py
index 6d9f745..7e39a2a 100644
--- a/airflow/contrib/sensors/python_sensor.py
+++ b/airflow/contrib/sensors/python_sensor.py
@@ -23,6 +23,5 @@ import warnings
 from airflow.sensors.python import PythonSensor  # noqa
 
 warnings.warn(
-    "This module is deprecated. Please use `airflow.sensors.python`.",
-    DeprecationWarning, stacklevel=2
+    "This module is deprecated. Please use `airflow.sensors.python`.", DeprecationWarning, stacklevel=2
 )
diff --git a/airflow/contrib/sensors/qubole_sensor.py b/airflow/contrib/sensors/qubole_sensor.py
index a503c3e..ec39a40 100644
--- a/airflow/contrib/sensors/qubole_sensor.py
+++ b/airflow/contrib/sensors/qubole_sensor.py
@@ -21,10 +21,13 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.qubole.sensors.qubole import (  # noqa
-    QuboleFileSensor, QubolePartitionSensor, QuboleSensor,
+    QuboleFileSensor,
+    QubolePartitionSensor,
+    QuboleSensor,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.qubole.sensors.qubole`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/redis_key_sensor.py b/airflow/contrib/sensors/redis_key_sensor.py
index 77dd1a4..f9762de 100644
--- a/airflow/contrib/sensors/redis_key_sensor.py
+++ b/airflow/contrib/sensors/redis_key_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.redis.sensors.redis_key import RedisKeySensor  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.redis.sensors.redis_key`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/redis_pub_sub_sensor.py b/airflow/contrib/sensors/redis_pub_sub_sensor.py
index 121a465..3b541de 100644
--- a/airflow/contrib/sensors/redis_pub_sub_sensor.py
+++ b/airflow/contrib/sensors/redis_pub_sub_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.redis.sensors.redis_pub_sub import RedisPubSubSensor  # n
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.redis.sensors.redis_pub_sub`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/sagemaker_base_sensor.py b/airflow/contrib/sensors/sagemaker_base_sensor.py
index 1e5e60a..54b8323 100644
--- a/airflow/contrib/sensors/sagemaker_base_sensor.py
+++ b/airflow/contrib/sensors/sagemaker_base_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.sagemaker_base import SageMakerBaseSen
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.sagemaker_base`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/sagemaker_endpoint_sensor.py b/airflow/contrib/sensors/sagemaker_endpoint_sensor.py
index afda91a..f6ebe81 100644
--- a/airflow/contrib/sensors/sagemaker_endpoint_sensor.py
+++ b/airflow/contrib/sensors/sagemaker_endpoint_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.sagemaker_endpoint import SageMakerEnd
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.sagemaker_endpoint`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/sagemaker_training_sensor.py b/airflow/contrib/sensors/sagemaker_training_sensor.py
index 6c1ce75..61f8d43 100644
--- a/airflow/contrib/sensors/sagemaker_training_sensor.py
+++ b/airflow/contrib/sensors/sagemaker_training_sensor.py
@@ -21,10 +21,12 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.amazon.aws.sensors.sagemaker_training import (  # noqa
-    SageMakerHook, SageMakerTrainingSensor,
+    SageMakerHook,
+    SageMakerTrainingSensor,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.sagemaker_training`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/sagemaker_transform_sensor.py b/airflow/contrib/sensors/sagemaker_transform_sensor.py
index f2bdc73..daf06ad 100644
--- a/airflow/contrib/sensors/sagemaker_transform_sensor.py
+++ b/airflow/contrib/sensors/sagemaker_transform_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.sagemaker_transform import SageMakerTr
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.sagemaker_transform`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/sagemaker_tuning_sensor.py b/airflow/contrib/sensors/sagemaker_tuning_sensor.py
index 3cbbf1d..a188651 100644
--- a/airflow/contrib/sensors/sagemaker_tuning_sensor.py
+++ b/airflow/contrib/sensors/sagemaker_tuning_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.amazon.aws.sensors.sagemaker_tuning import SageMakerTunin
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.amazon.aws.sensors.sagemaker_tuning`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/wasb_sensor.py b/airflow/contrib/sensors/wasb_sensor.py
index bfe0ec1..2258447 100644
--- a/airflow/contrib/sensors/wasb_sensor.py
+++ b/airflow/contrib/sensors/wasb_sensor.py
@@ -24,5 +24,6 @@ from airflow.providers.microsoft.azure.sensors.wasb import WasbBlobSensor, WasbP
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.microsoft.azure.sensors.wasb`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/sensors/weekday_sensor.py b/airflow/contrib/sensors/weekday_sensor.py
index 890d073..8f462bb 100644
--- a/airflow/contrib/sensors/weekday_sensor.py
+++ b/airflow/contrib/sensors/weekday_sensor.py
@@ -24,5 +24,6 @@ from airflow.sensors.weekday_sensor import DayOfWeekSensor  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.sensors.weekday_sensor`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/task_runner/cgroup_task_runner.py b/airflow/contrib/task_runner/cgroup_task_runner.py
index 0f03fed..9970da6 100644
--- a/airflow/contrib/task_runner/cgroup_task_runner.py
+++ b/airflow/contrib/task_runner/cgroup_task_runner.py
@@ -24,5 +24,6 @@ from airflow.task.task_runner.cgroup_task_runner import CgroupTaskRunner  # noqa
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.task.task_runner.cgroup_task_runner`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/utils/__init__.py b/airflow/contrib/utils/__init__.py
index 9404bc6..4e6cbb7 100644
--- a/airflow/contrib/utils/__init__.py
+++ b/airflow/contrib/utils/__init__.py
@@ -19,7 +19,4 @@
 
 import warnings
 
-warnings.warn(
-    "This module is deprecated. Please use `airflow.utils`.",
-    DeprecationWarning, stacklevel=2
-)
+warnings.warn("This module is deprecated. Please use `airflow.utils`.", DeprecationWarning, stacklevel=2)
diff --git a/airflow/contrib/utils/gcp_field_sanitizer.py b/airflow/contrib/utils/gcp_field_sanitizer.py
index 1e39bb2..a7dca19 100644
--- a/airflow/contrib/utils/gcp_field_sanitizer.py
+++ b/airflow/contrib/utils/gcp_field_sanitizer.py
@@ -21,10 +21,12 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.utils.field_sanitizer import (  # noqa
-    GcpBodyFieldSanitizer, GcpFieldSanitizerException,
+    GcpBodyFieldSanitizer,
+    GcpFieldSanitizerException,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.utils.field_sanitizer`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/utils/gcp_field_validator.py b/airflow/contrib/utils/gcp_field_validator.py
index 08d677c..e623d37 100644
--- a/airflow/contrib/utils/gcp_field_validator.py
+++ b/airflow/contrib/utils/gcp_field_validator.py
@@ -21,10 +21,13 @@ import warnings
 
 # pylint: disable=unused-import
 from airflow.providers.google.cloud.utils.field_validator import (  # noqa
-    GcpBodyFieldValidator, GcpFieldValidationException, GcpValidationSpecificationException,
+    GcpBodyFieldValidator,
+    GcpFieldValidationException,
+    GcpValidationSpecificationException,
 )
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.utils.field_validator`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/utils/log/__init__.py b/airflow/contrib/utils/log/__init__.py
index aecb6b8..ecc47d3 100644
--- a/airflow/contrib/utils/log/__init__.py
+++ b/airflow/contrib/utils/log/__init__.py
@@ -18,7 +18,4 @@
 
 import warnings
 
-warnings.warn(
-    "This module is deprecated. Please use `airflow.utils.log`.",
-    DeprecationWarning, stacklevel=2
-)
+warnings.warn("This module is deprecated. Please use `airflow.utils.log`.", DeprecationWarning, stacklevel=2)
diff --git a/airflow/contrib/utils/log/task_handler_with_custom_formatter.py b/airflow/contrib/utils/log/task_handler_with_custom_formatter.py
index a6ebd66..5045c90 100644
--- a/airflow/contrib/utils/log/task_handler_with_custom_formatter.py
+++ b/airflow/contrib/utils/log/task_handler_with_custom_formatter.py
@@ -23,5 +23,6 @@ from airflow.utils.log.task_handler_with_custom_formatter import TaskHandlerWith
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.utils.log.task_handler_with_custom_formatter`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/utils/mlengine_operator_utils.py b/airflow/contrib/utils/mlengine_operator_utils.py
index 80db88d..0c94398 100644
--- a/airflow/contrib/utils/mlengine_operator_utils.py
+++ b/airflow/contrib/utils/mlengine_operator_utils.py
@@ -24,5 +24,6 @@ from airflow.providers.google.cloud.utils.mlengine_operator_utils import create_
 
 warnings.warn(
     "This module is deprecated. Please use `airflow.providers.google.cloud.utils.mlengine_operator_utils`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/utils/mlengine_prediction_summary.py b/airflow/contrib/utils/mlengine_prediction_summary.py
index c245d4a..2ac126f 100644
--- a/airflow/contrib/utils/mlengine_prediction_summary.py
+++ b/airflow/contrib/utils/mlengine_prediction_summary.py
@@ -28,5 +28,6 @@ from airflow.providers.google.cloud.utils.mlengine_prediction_summary import Jso
 warnings.warn(
     "This module is deprecated. "
     "Please use `airflow.providers.google.cloud.utils.mlengine_prediction_summary`.",
-    DeprecationWarning, stacklevel=2
+    DeprecationWarning,
+    stacklevel=2,
 )
diff --git a/airflow/contrib/utils/sendgrid.py b/airflow/contrib/utils/sendgrid.py
index 8801e76..16408f9 100644
--- a/airflow/contrib/utils/sendgrid.py
+++ b/airflow/contrib/utils/sendgrid.py
@@ -30,6 +30,7 @@ def send_email(*args, **kwargs):
     """This function is deprecated. Please use `airflow.providers.sendgrid.utils.emailer.send_email`."""
     warnings.warn(
         "This function is deprecated. Please use `airflow.providers.sendgrid.utils.emailer.send_email`.",
-        DeprecationWarning, stacklevel=2
+        DeprecationWarning,
+        stacklevel=2,
     )
     return import_string('airflow.providers.sendgrid.utils.emailer.send_email')(*args, **kwargs)
diff --git a/airflow/contrib/utils/weekday.py b/airflow/contrib/utils/weekday.py
index 85e85cc..d2548aa 100644
--- a/airflow/contrib/utils/weekday.py
+++ b/airflow/contrib/utils/weekday.py
@@ -21,6 +21,5 @@ import warnings
 from airflow.utils.weekday import WeekDay  # noqa
 
 warnings.warn(
-    "This module is deprecated. Please use `airflow.utils.weekday`.",
-    DeprecationWarning, stacklevel=2
+    "This module is deprecated. Please use `airflow.utils.weekday`.", DeprecationWarning, stacklevel=2
 )
diff --git a/airflow/example_dags/example_bash_operator.py b/airflow/example_dags/example_bash_operator.py
index 0bda87a..aa3004f 100644
--- a/airflow/example_dags/example_bash_operator.py
+++ b/airflow/example_dags/example_bash_operator.py
@@ -36,7 +36,7 @@ dag = DAG(
     start_date=days_ago(2),
     dagrun_timeout=timedelta(minutes=60),
     tags=['example', 'example2'],
-    params={"example_key": "example_value"}
+    params={"example_key": "example_value"},
 )
 
 run_this_last = DummyOperator(
diff --git a/airflow/example_dags/example_branch_operator.py b/airflow/example_dags/example_branch_operator.py
index 6efacc8..97256c6 100644
--- a/airflow/example_dags/example_branch_operator.py
+++ b/airflow/example_dags/example_branch_operator.py
@@ -34,7 +34,7 @@ dag = DAG(
     default_args=args,
     start_date=days_ago(2),
     schedule_interval="@daily",
-    tags=['example', 'example2']
+    tags=['example', 'example2'],
 )
 
 run_this_first = DummyOperator(
diff --git a/airflow/example_dags/example_branch_python_dop_operator_3.py b/airflow/example_dags/example_branch_python_dop_operator_3.py
index 0a45e60..9d60fa3 100644
--- a/airflow/example_dags/example_branch_python_dop_operator_3.py
+++ b/airflow/example_dags/example_branch_python_dop_operator_3.py
@@ -36,7 +36,7 @@ dag = DAG(
     schedule_interval='*/1 * * * *',
     start_date=days_ago(2),
     default_args=args,
-    tags=['example']
+    tags=['example'],
 )
 
 
@@ -48,8 +48,11 @@ def should_run(**kwargs):
     :return: Id of the task to run
     :rtype: str
     """
-    print('------------- exec dttm = {} and minute = {}'.
-          format(kwargs['execution_date'], kwargs['execution_date'].minute))
+    print(
+        '------------- exec dttm = {} and minute = {}'.format(
+            kwargs['execution_date'], kwargs['execution_date'].minute
+        )
+    )
     if kwargs['execution_date'].minute % 2 == 0:
         return "dummy_task_1"
     else:
diff --git a/airflow/example_dags/example_dag_decorator.py b/airflow/example_dags/example_dag_decorator.py
index 6f8f382..04c87ac 100644
--- a/airflow/example_dags/example_dag_decorator.py
+++ b/airflow/example_dags/example_dag_decorator.py
@@ -40,25 +40,20 @@ def example_dag_decorator(email: str = 'example@example.com'):
     :type email: str
     """
     # Using default connection as it's set to httpbin.org by default
-    get_ip = SimpleHttpOperator(
-        task_id='get_ip', endpoint='get', method='GET'
-    )
+    get_ip = SimpleHttpOperator(task_id='get_ip', endpoint='get', method='GET')
 
     @task(multiple_outputs=True)
     def prepare_email(raw_json: str) -> Dict[str, str]:
         external_ip = json.loads(raw_json)['origin']
         return {
             'subject': f'Server connected from {external_ip}',
-            'body': f'Seems like today your server executing Airflow is connected from IP {external_ip}<br>'
+            'body': f'Seems like today your server executing Airflow is connected from IP {external_ip}<br>',
         }
 
     email_info = prepare_email(get_ip.output)
 
     EmailOperator(
-        task_id='send_email',
-        to=email,
-        subject=email_info['subject'],
-        html_content=email_info['body']
+        task_id='send_email', to=email, subject=email_info['subject'], html_content=email_info['body']
     )
 
 
diff --git a/airflow/example_dags/example_external_task_marker_dag.py b/airflow/example_dags/example_external_task_marker_dag.py
index 13dab0d..b31240f 100644
--- a/airflow/example_dags/example_external_task_marker_dag.py
+++ b/airflow/example_dags/example_external_task_marker_dag.py
@@ -52,9 +52,11 @@ with DAG(
     tags=['example2'],
 ) as parent_dag:
     # [START howto_operator_external_task_marker]
-    parent_task = ExternalTaskMarker(task_id="parent_task",
-                                     external_dag_id="example_external_task_marker_child",
-                                     external_task_id="child_task1")
+    parent_task = ExternalTaskMarker(
+        task_id="parent_task",
+        external_dag_id="example_external_task_marker_child",
+        external_task_id="child_task1",
+    )
     # [END howto_operator_external_task_marker]
 
 with DAG(
@@ -64,13 +66,15 @@ with DAG(
     tags=['example2'],
 ) as child_dag:
     # [START howto_operator_external_task_sensor]
-    child_task1 = ExternalTaskSensor(task_id="child_task1",
-                                     external_dag_id=parent_dag.dag_id,
-                                     external_task_id=parent_task.task_id,
-                                     timeout=600,
-                                     allowed_states=['success'],
-                                     failed_states=['failed', 'skipped'],
-                                     mode="reschedule")
+    child_task1 = ExternalTaskSensor(
+        task_id="child_task1",
+        external_dag_id=parent_dag.dag_id,
+        external_task_id=parent_task.task_id,
+        timeout=600,
+        allowed_states=['success'],
+        failed_states=['failed', 'skipped'],
+        mode="reschedule",
+    )
     # [END howto_operator_external_task_sensor]
     child_task2 = DummyOperator(task_id="child_task2")
     child_task1 >> child_task2
diff --git a/airflow/example_dags/example_kubernetes_executor.py b/airflow/example_dags/example_kubernetes_executor.py
index aa4fc32..a782efc 100644
--- a/airflow/example_dags/example_kubernetes_executor.py
+++ b/airflow/example_dags/example_kubernetes_executor.py
@@ -43,24 +43,14 @@ with DAG(
                 {
                     'topologyKey': 'kubernetes.io/hostname',
                     'labelSelector': {
-                        'matchExpressions': [
-                            {
-                                'key': 'app',
-                                'operator': 'In',
-                                'values': ['airflow']
-                            }
-                        ]
-                    }
+                        'matchExpressions': [{'key': 'app', 'operator': 'In', 'values': ['airflow']}]
+                    },
                 }
             ]
         }
     }
 
-    tolerations = [{
-        'key': 'dedicated',
-        'operator': 'Equal',
-        'value': 'airflow'
-    }]
+    tolerations = [{'key': 'dedicated', 'operator': 'Equal', 'value': 'airflow'}]
 
     def use_zip_binary():
         """
@@ -74,23 +64,20 @@ with DAG(
             raise SystemError("The zip binary is missing")
 
     # You don't have to use any special KubernetesExecutor configuration if you don't want to
-    start_task = PythonOperator(
-        task_id="start_task",
-        python_callable=print_stuff
-    )
+    start_task = PythonOperator(task_id="start_task", python_callable=print_stuff)
 
     # But you can if you want to
     one_task = PythonOperator(
         task_id="one_task",
         python_callable=print_stuff,
-        executor_config={"KubernetesExecutor": {"image": "airflow/ci:latest"}}
+        executor_config={"KubernetesExecutor": {"image": "airflow/ci:latest"}},
     )
 
     # Use the zip binary, which is only found in this special docker image
     two_task = PythonOperator(
         task_id="two_task",
         python_callable=use_zip_binary,
-        executor_config={"KubernetesExecutor": {"image": "airflow/ci_zip:latest"}}
+        executor_config={"KubernetesExecutor": {"image": "airflow/ci_zip:latest"}},
     )
 
     # Limit resources on this operator/task with node affinity & tolerations
@@ -98,17 +85,20 @@ with DAG(
         task_id="three_task",
         python_callable=print_stuff,
         executor_config={
-            "KubernetesExecutor": {"request_memory": "128Mi",
-                                   "limit_memory": "128Mi",
-                                   "tolerations": tolerations,
-                                   "affinity": affinity}}
+            "KubernetesExecutor": {
+                "request_memory": "128Mi",
+                "limit_memory": "128Mi",
+                "tolerations": tolerations,
+                "affinity": affinity,
+            }
+        },
     )
 
     # Add arbitrary labels to worker pods
     four_task = PythonOperator(
         task_id="four_task",
         python_callable=print_stuff,
-        executor_config={"KubernetesExecutor": {"labels": {"foo": "bar"}}}
+        executor_config={"KubernetesExecutor": {"labels": {"foo": "bar"}}},
     )
 
     start_task >> [one_task, two_task, three_task, four_task]
diff --git a/airflow/example_dags/example_kubernetes_executor_config.py b/airflow/example_dags/example_kubernetes_executor_config.py
index d361227..57b2c4a 100644
--- a/airflow/example_dags/example_kubernetes_executor_config.py
+++ b/airflow/example_dags/example_kubernetes_executor_config.py
@@ -67,12 +67,9 @@ with DAG(
     start_task = PythonOperator(
         task_id="start_task",
         python_callable=print_stuff,
-        executor_config={"pod_override": k8s.V1Pod(
-            metadata=k8s.V1ObjectMeta(
-                annotations={"test": "annotation"}
-            )
-        )
-        }
+        executor_config={
+            "pod_override": k8s.V1Pod(metadata=k8s.V1ObjectMeta(annotations={"test": "annotation"}))
+        },
     )
 
     # [START task_with_volume]
@@ -86,24 +83,19 @@ with DAG(
                         k8s.V1Container(
                             name="base",
                             volume_mounts=[
-                                k8s.V1VolumeMount(
-                                    mount_path="/foo/",
-                                    name="example-kubernetes-test-volume"
-                                )
-                            ]
+                                k8s.V1VolumeMount(mount_path="/foo/", name="example-kubernetes-test-volume")
+                            ],
                         )
                     ],
                     volumes=[
                         k8s.V1Volume(
                             name="example-kubernetes-test-volume",
-                            host_path=k8s.V1HostPathVolumeSource(
-                                path="/tmp/"
-                            )
+                            host_path=k8s.V1HostPathVolumeSource(path="/tmp/"),
                         )
-                    ]
+                    ],
                 )
             ),
-        }
+        },
     )
     # [END task_with_volume]
 
@@ -117,31 +109,22 @@ with DAG(
                     containers=[
                         k8s.V1Container(
                             name="base",
-                            volume_mounts=[k8s.V1VolumeMount(
-                                mount_path="/shared/",
-                                name="shared-empty-dir"
-                            )]
+                            volume_mounts=[k8s.V1VolumeMount(mount_path="/shared/", name="shared-empty-dir")],
                         ),
                         k8s.V1Container(
                             name="sidecar",
                             image="ubuntu",
                             args=["echo \"retrieved from mount\" > /shared/test.txt"],
                             command=["bash", "-cx"],
-                            volume_mounts=[k8s.V1VolumeMount(
-                                mount_path="/shared/",
-                                name="shared-empty-dir"
-                            )]
-                        )
+                            volume_mounts=[k8s.V1VolumeMount(mount_path="/shared/", name="shared-empty-dir")],
+                        ),
                     ],
                     volumes=[
-                        k8s.V1Volume(
-                            name="shared-empty-dir",
-                            empty_dir=k8s.V1EmptyDirVolumeSource()
-                        ),
-                    ]
+                        k8s.V1Volume(name="shared-empty-dir", empty_dir=k8s.V1EmptyDirVolumeSource()),
+                    ],
                 )
             ),
-        }
+        },
     )
     # [END task_with_sidecar]
 
@@ -149,27 +132,15 @@ with DAG(
     third_task = PythonOperator(
         task_id="non_root_task",
         python_callable=print_stuff,
-        executor_config={"pod_override": k8s.V1Pod(
-            metadata=k8s.V1ObjectMeta(
-                labels={
-                    "release": "stable"
-                }
-            )
-        )
-        }
+        executor_config={"pod_override": k8s.V1Pod(metadata=k8s.V1ObjectMeta(labels={"release": "stable"}))},
     )
 
     other_ns_task = PythonOperator(
         task_id="other_namespace_task",
         python_callable=print_stuff,
         executor_config={
-            "KubernetesExecutor": {
-                "namespace": "test-namespace",
-                "labels": {
-                    "release": "stable"
-                }
-            }
-        }
+            "KubernetesExecutor": {"namespace": "test-namespace", "labels": {"release": "stable"}}
+        },
     )
 
     start_task >> volume_task >> third_task
diff --git a/airflow/example_dags/example_latest_only.py b/airflow/example_dags/example_latest_only.py
index fda514b..9be8a82 100644
--- a/airflow/example_dags/example_latest_only.py
+++ b/airflow/example_dags/example_latest_only.py
@@ -29,7 +29,7 @@ dag = DAG(
     dag_id='latest_only',
     schedule_interval=dt.timedelta(hours=4),
     start_date=days_ago(2),
-    tags=['example2', 'example3']
+    tags=['example2', 'example3'],
 )
 
 latest_only = LatestOnlyOperator(task_id='latest_only', dag=dag)
diff --git a/airflow/example_dags/example_latest_only_with_trigger.py b/airflow/example_dags/example_latest_only_with_trigger.py
index 2568139..e9d1360 100644
--- a/airflow/example_dags/example_latest_only_with_trigger.py
+++ b/airflow/example_dags/example_latest_only_with_trigger.py
@@ -32,7 +32,7 @@ dag = DAG(
     dag_id='latest_only_with_trigger',
     schedule_interval=dt.timedelta(hours=4),
     start_date=days_ago(2),
-    tags=['example3']
+    tags=['example3'],
 )
 
 latest_only = LatestOnlyOperator(task_id='latest_only', dag=dag)
diff --git a/airflow/example_dags/example_nested_branch_dag.py b/airflow/example_dags/example_nested_branch_dag.py
index 0050d9a..ffc1ad5 100644
--- a/airflow/example_dags/example_nested_branch_dag.py
+++ b/airflow/example_dags/example_nested_branch_dag.py
@@ -28,10 +28,7 @@ from airflow.operators.python import BranchPythonOperator
 from airflow.utils.dates import days_ago
 
 with DAG(
-    dag_id="example_nested_branch_dag",
-    start_date=days_ago(2),
-    schedule_interval="@daily",
-    tags=["example"]
+    dag_id="example_nested_branch_dag", start_date=days_ago(2), schedule_interval="@daily", tags=["example"]
 ) as dag:
     branch_1 = BranchPythonOperator(task_id="branch_1", python_callable=lambda: "true_1")
     join_1 = DummyOperator(task_id="join_1", trigger_rule="none_failed_or_skipped")
diff --git a/airflow/example_dags/example_passing_params_via_test_command.py b/airflow/example_dags/example_passing_params_via_test_command.py
index bcd5318..8eaadd7 100644
--- a/airflow/example_dags/example_passing_params_via_test_command.py
+++ b/airflow/example_dags/example_passing_params_via_test_command.py
@@ -34,7 +34,7 @@ dag = DAG(
     schedule_interval='*/1 * * * *',
     start_date=days_ago(1),
     dagrun_timeout=timedelta(minutes=4),
-    tags=['example']
+    tags=['example'],
 )
 
 
@@ -45,8 +45,12 @@ def my_py_command(test_mode, params):
     -t '{"foo":"bar"}'`
     """
     if test_mode:
-        print(" 'foo' was passed in via test={} command : kwargs[params][foo] \
-               = {}".format(test_mode, params["foo"]))
+        print(
+            " 'foo' was passed in via test={} command : kwargs[params][foo] \
+               = {}".format(
+                test_mode, params["foo"]
+            )
+        )
     # Print out the value of "miff", passed in below via the Python Operator
     print(" 'miff' was passed in via task params = {}".format(params["miff"]))
     return 1
@@ -83,10 +87,6 @@ def print_env_vars(test_mode):
         print("AIRFLOW_TEST_MODE={}".format(os.environ.get('AIRFLOW_TEST_MODE')))
 
 
-env_var_test_task = PythonOperator(
-    task_id='env_var_test_task',
-    python_callable=print_env_vars,
-    dag=dag
-)
+env_var_test_task = PythonOperator(task_id='env_var_test_task', python_callable=print_env_vars, dag=dag)
 
 run_this >> also_run_this
diff --git a/airflow/example_dags/example_python_operator.py b/airflow/example_dags/example_python_operator.py
index 5b6d7b5..d5e16a5 100644
--- a/airflow/example_dags/example_python_operator.py
+++ b/airflow/example_dags/example_python_operator.py
@@ -33,7 +33,7 @@ dag = DAG(
     default_args=args,
     schedule_interval=None,
     start_date=days_ago(2),
-    tags=['example']
+    tags=['example'],
 )
 
 
@@ -83,6 +83,7 @@ def callable_virtualenv():
     from time import sleep
 
     from colorama import Back, Fore, Style
+
     print(Fore.RED + 'some red text')
     print(Back.GREEN + 'and with a green background')
     print(Style.DIM + 'and in dim text')
@@ -96,9 +97,7 @@ def callable_virtualenv():
 virtualenv_task = PythonVirtualenvOperator(
     task_id="virtualenv_python",
     python_callable=callable_virtualenv,
-    requirements=[
-        "colorama==0.4.0"
-    ],
+    requirements=["colorama==0.4.0"],
     system_site_packages=False,
     dag=dag,
 )
diff --git a/airflow/example_dags/example_subdag_operator.py b/airflow/example_dags/example_subdag_operator.py
index f21e3d4..de2853d 100644
--- a/airflow/example_dags/example_subdag_operator.py
+++ b/airflow/example_dags/example_subdag_operator.py
@@ -32,11 +32,7 @@ args = {
 }
 
 dag = DAG(
-    dag_id=DAG_NAME,
-    default_args=args,
-    start_date=days_ago(2),
-    schedule_interval="@once",
-    tags=['example']
+    dag_id=DAG_NAME, default_args=args, start_date=days_ago(2), schedule_interval="@once", tags=['example']
 )
 
 start = DummyOperator(
diff --git a/airflow/example_dags/example_trigger_controller_dag.py b/airflow/example_dags/example_trigger_controller_dag.py
index f8fd5d6..39bc766 100644
--- a/airflow/example_dags/example_trigger_controller_dag.py
+++ b/airflow/example_dags/example_trigger_controller_dag.py
@@ -30,7 +30,7 @@ dag = DAG(
     default_args={"owner": "airflow"},
     start_date=days_ago(2),
     schedule_interval="@once",
-    tags=['example']
+    tags=['example'],
 )
 
 trigger = TriggerDagRunOperator(
diff --git a/airflow/example_dags/example_trigger_target_dag.py b/airflow/example_dags/example_trigger_target_dag.py
index 3f4cfd0..0355275 100644
--- a/airflow/example_dags/example_trigger_target_dag.py
+++ b/airflow/example_dags/example_trigger_target_dag.py
@@ -32,7 +32,7 @@ dag = DAG(
     default_args={"owner": "airflow"},
     start_date=days_ago(2),
     schedule_interval=None,
-    tags=['example']
+    tags=['example'],
 )
 
 
diff --git a/airflow/example_dags/example_xcom.py b/airflow/example_dags/example_xcom.py
index b395682..779e392 100644
--- a/airflow/example_dags/example_xcom.py
+++ b/airflow/example_dags/example_xcom.py
@@ -26,7 +26,7 @@ dag = DAG(
     schedule_interval="@once",
     start_date=days_ago(2),
     default_args={'owner': 'airflow'},
-    tags=['example']
+    tags=['example'],
 )
 
 value_1 = [1, 2, 3]
diff --git a/airflow/example_dags/subdags/subdag.py b/airflow/example_dags/subdags/subdag.py
index e65a5c9..9815af3 100644
--- a/airflow/example_dags/subdags/subdag.py
+++ b/airflow/example_dags/subdags/subdag.py
@@ -49,4 +49,6 @@ def subdag(parent_dag_name, child_dag_name, args):
         )
 
     return dag_subdag
+
+
 # [END subdag]
diff --git a/airflow/example_dags/tutorial.py b/airflow/example_dags/tutorial.py
index 39f779c..a00051c 100644
--- a/airflow/example_dags/tutorial.py
+++ b/airflow/example_dags/tutorial.py
@@ -27,6 +27,7 @@ from datetime import timedelta
 
 # The DAG object; we'll need this to instantiate a DAG
 from airflow import DAG
+
 # Operators; we need this to operate!
 from airflow.operators.bash import BashOperator
 from airflow.utils.dates import days_ago
diff --git a/airflow/example_dags/tutorial_decorated_etl_dag.py b/airflow/example_dags/tutorial_decorated_etl_dag.py
index 0f78940..b351e73 100644
--- a/airflow/example_dags/tutorial_decorated_etl_dag.py
+++ b/airflow/example_dags/tutorial_decorated_etl_dag.py
@@ -71,6 +71,7 @@ with DAG(
 
         order_data_dict = json.loads(data_string)
         return order_data_dict
+
     # [END extract]
 
     # [START transform]
@@ -87,6 +88,7 @@ with DAG(
             total_order_value += value
 
         return {"total_order_value": total_order_value}
+
     # [END transform]
 
     # [START load]
@@ -99,6 +101,7 @@ with DAG(
         """
 
         print("Total order value is: %.2f" % total_order_value)
+
     # [END load]
 
     # [START main_flow]
diff --git a/airflow/example_dags/tutorial_etl_dag.py b/airflow/example_dags/tutorial_etl_dag.py
index 4a4405e..48b519b 100644
--- a/airflow/example_dags/tutorial_etl_dag.py
+++ b/airflow/example_dags/tutorial_etl_dag.py
@@ -30,6 +30,7 @@ import json
 
 # The DAG object; we'll need this to instantiate a DAG
 from airflow import DAG
+
 # Operators; we need this to operate!
 from airflow.operators.python import PythonOperator
 from airflow.utils.dates import days_ago
@@ -63,6 +64,7 @@ with DAG(
         ti = kwargs['ti']
         data_string = '{"1001": 301.27, "1002": 433.21, "1003": 502.22}'
         ti.xcom_push('order_data', data_string)
+
     # [END extract_function]
 
     # [START transform_function]
@@ -78,6 +80,7 @@ with DAG(
         total_value = {"total_order_value": total_order_value}
         total_value_json_string = json.dumps(total_value)
         ti.xcom_push('total_order_value', total_value_json_string)
+
     # [END transform_function]
 
     # [START load_function]
@@ -87,6 +90,7 @@ with DAG(
         total_order_value = json.loads(total_value_string)
 
         print(total_order_value)
+
     # [END load_function]
 
     # [START main_flow]
diff --git a/airflow/executors/base_executor.py b/airflow/executors/base_executor.py
index 8477019..8ae4c32 100644
--- a/airflow/executors/base_executor.py
+++ b/airflow/executors/base_executor.py
@@ -60,19 +60,20 @@ class BaseExecutor(LoggingMixin):
     def __init__(self, parallelism: int = PARALLELISM):
         super().__init__()
         self.parallelism: int = parallelism
-        self.queued_tasks: OrderedDict[TaskInstanceKey, QueuedTaskInstanceType] \
-            = OrderedDict()
+        self.queued_tasks: OrderedDict[TaskInstanceKey, QueuedTaskInstanceType] = OrderedDict()
         self.running: Set[TaskInstanceKey] = set()
         self.event_buffer: Dict[TaskInstanceKey, EventBufferValueType] = {}
 
     def start(self):  # pragma: no cover
         """Executors may need to get things started."""
 
-    def queue_command(self,
-                      task_instance: TaskInstance,
-                      command: CommandType,
-                      priority: int = 1,
-                      queue: Optional[str] = None):
+    def queue_command(
+        self,
+        task_instance: TaskInstance,
+        command: CommandType,
+        priority: int = 1,
+        queue: Optional[str] = None,
+    ):
         """Queues command to task"""
         if task_instance.key not in self.queued_tasks and task_instance.key not in self.running:
             self.log.info("Adding to queue: %s", command)
@@ -81,16 +82,17 @@ class BaseExecutor(LoggingMixin):
             self.log.error("could not queue task %s", task_instance.key)
 
     def queue_task_instance(
-            self,
-            task_instance: TaskInstance,
-            mark_success: bool = False,
-            pickle_id: Optional[str] = None,
-            ignore_all_deps: bool = False,
-            ignore_depends_on_past: bool = False,
-            ignore_task_deps: bool = False,
-            ignore_ti_state: bool = False,
-            pool: Optional[str] = None,
-            cfg_path: Optional[str] = None) -> None:
+        self,
+        task_instance: TaskInstance,
+        mark_success: bool = False,
+        pickle_id: Optional[str] = None,
+        ignore_all_deps: bool = False,
+        ignore_depends_on_past: bool = False,
+        ignore_task_deps: bool = False,
+        ignore_ti_state: bool = False,
+        pool: Optional[str] = None,
+        cfg_path: Optional[str] = None,
+    ) -> None:
         """Queues task instance."""
         pool = pool or task_instance.pool
 
@@ -107,13 +109,15 @@ class BaseExecutor(LoggingMixin):
             ignore_ti_state=ignore_ti_state,
             pool=pool,
             pickle_id=pickle_id,
-            cfg_path=cfg_path)
+            cfg_path=cfg_path,
+        )
         self.log.debug("created command %s", command_list_to_run)
         self.queue_command(
             task_instance,
             command_list_to_run,
             priority=task_instance.task.priority_weight_total,
-            queue=task_instance.task.queue)
+            queue=task_instance.task.queue,
+        )
 
     def has_task(self, task_instance: TaskInstance) -> bool:
         """
@@ -163,7 +167,8 @@ class BaseExecutor(LoggingMixin):
         return sorted(
             [(k, v) for k, v in self.queued_tasks.items()],  # pylint: disable=unnecessary-comprehension
             key=lambda x: x[1][1],
-            reverse=True)
+            reverse=True,
+        )
 
     def trigger_tasks(self, open_slots: int) -> None:
         """
@@ -177,10 +182,7 @@ class BaseExecutor(LoggingMixin):
             key, (command, _, _, ti) = sorted_queue.pop(0)
             self.queued_tasks.pop(key)
             self.running.add(key)
-            self.execute_async(key=key,
-                               command=command,
-                               queue=None,
-                               executor_config=ti.executor_config)
+            self.execute_async(key=key, command=command, queue=None, executor_config=ti.executor_config)
 
     def change_state(self, key: TaskInstanceKey, state: str, info=None) -> None:
         """
@@ -235,11 +237,13 @@ class BaseExecutor(LoggingMixin):
 
         return cleared_events
 
-    def execute_async(self,
-                      key: TaskInstanceKey,
-                      command: CommandType,
-                      queue: Optional[str] = None,
-                      executor_config: Optional[Any] = None) -> None:  # pragma: no cover
+    def execute_async(
+        self,
+        key: TaskInstanceKey,
+        command: CommandType,
+        queue: Optional[str] = None,
+        executor_config: Optional[Any] = None,
+    ) -> None:  # pragma: no cover
         """
         This method will execute the command asynchronously.
 
diff --git a/airflow/executors/celery_executor.py b/airflow/executors/celery_executor.py
index 716d1ed..86d76d8 100644
--- a/airflow/executors/celery_executor.py
+++ b/airflow/executors/celery_executor.py
@@ -71,9 +71,7 @@ if conf.has_option('celery', 'celery_config_options'):
 else:
     celery_configuration = DEFAULT_CELERY_CONFIG
 
-app = Celery(
-    conf.get('celery', 'CELERY_APP_NAME'),
-    config_source=celery_configuration)
+app = Celery(conf.get('celery', 'CELERY_APP_NAME'), config_source=celery_configuration)
 
 
 @app.task
@@ -103,6 +101,7 @@ def _execute_in_fork(command_to_exec: CommandType) -> None:
     ret = 1
     try:
         from airflow.cli.cli_parser import get_parser
+
         parser = get_parser()
         # [1:] - remove "airflow" from the start of the command
         args = parser.parse_args(command_to_exec[1:])
@@ -123,8 +122,7 @@ def _execute_in_subprocess(command_to_exec: CommandType) -> None:
     env = os.environ.copy()
     try:
         # pylint: disable=unexpected-keyword-arg
-        subprocess.check_output(command_to_exec, stderr=subprocess.STDOUT,
-                                close_fds=True, env=env)
+        subprocess.check_output(command_to_exec, stderr=subprocess.STDOUT, close_fds=True, env=env)
         # pylint: disable=unexpected-keyword-arg
     except subprocess.CalledProcessError as e:
         log.exception('execute_command encountered a CalledProcessError')
@@ -153,8 +151,9 @@ class ExceptionWithTraceback:
 TaskInstanceInCelery = Tuple[TaskInstanceKey, SimpleTaskInstance, CommandType, Optional[str], Task]
 
 
-def send_task_to_executor(task_tuple: TaskInstanceInCelery) \
-        -> Tuple[TaskInstanceKey, CommandType, Union[AsyncResult, ExceptionWithTraceback]]:
+def send_task_to_executor(
+    task_tuple: TaskInstanceInCelery,
+) -> Tuple[TaskInstanceKey, CommandType, Union[AsyncResult, ExceptionWithTraceback]]:
     """Sends task to executor."""
     key, _, command, queue, task_to_run = task_tuple
     try:
@@ -185,10 +184,13 @@ def on_celery_import_modules(*args, **kwargs):
     import airflow.operators.bash
     import airflow.operators.python
     import airflow.operators.subdag_operator  # noqa: F401
+
     try:
         import kubernetes.client  # noqa: F401
     except ImportError:
         pass
+
+
 # pylint: enable=unused-import
 
 
@@ -220,10 +222,7 @@ class CeleryExecutor(BaseExecutor):
         )
 
     def start(self) -> None:
-        self.log.debug(
-            'Starting Celery Executor using %s processes for syncing',
-            self._sync_parallelism
-        )
+        self.log.debug('Starting Celery Executor using %s processes for syncing', self._sync_parallelism)
 
     def _num_tasks_per_send_process(self, to_send_count: int) -> int:
         """
@@ -232,8 +231,7 @@ class CeleryExecutor(BaseExecutor):
         :return: Number of tasks that should be sent per process
         :rtype: int
         """
-        return max(1,
-                   int(math.ceil(1.0 * to_send_count / self._sync_parallelism)))
+        return max(1, int(math.ceil(1.0 * to_send_count / self._sync_parallelism)))
 
     def trigger_tasks(self, open_slots: int) -> None:
         """
@@ -297,14 +295,14 @@ class CeleryExecutor(BaseExecutor):
             # Since we are run from inside the SchedulerJob, we don't to
             # inherit the signal handlers that we registered there.
             import signal
+
             signal.signal(signal.SIGINT, signal.SIG_DFL)
             signal.signal(signal.SIGTERM, signal.SIG_DFL)
 
         with Pool(processes=num_processes, initializer=reset_signals) as send_pool:
             key_and_async_results = send_pool.map(
-                send_task_to_executor,
-                task_tuples_to_send,
-                chunksize=chunksize)
+                send_task_to_executor, task_tuples_to_send, chunksize=chunksize
+            )
         return key_and_async_results
 
     def sync(self) -> None:
@@ -348,7 +346,7 @@ class CeleryExecutor(BaseExecutor):
                 "Adopted tasks were still pending after %s, assuming they never made it to celery and "
                 "clearing:\n\t%s",
                 self.task_adoption_timeout,
-                "\n\t".join([repr(x) for x in timedout_keys])
+                "\n\t".join([repr(x) for x in timedout_keys]),
             )
             for key in timedout_keys:
                 self.event_buffer[key] = (State.FAILED, None)
@@ -394,11 +392,13 @@ class CeleryExecutor(BaseExecutor):
                 time.sleep(5)
         self.sync()
 
-    def execute_async(self,
-                      key: TaskInstanceKey,
-                      command: CommandType,
-                      queue: Optional[str] = None,
-                      executor_config: Optional[Any] = None):
+    def execute_async(
+        self,
+        key: TaskInstanceKey,
+        command: CommandType,
+        queue: Optional[str] = None,
+        executor_config: Optional[Any] = None,
+    ):
         """Do not allow async execution for Celery executor."""
         raise AirflowException("No Async execution for Celery executor.")
 
@@ -456,14 +456,14 @@ class CeleryExecutor(BaseExecutor):
 
         if adopted:
             task_instance_str = '\n\t'.join(adopted)
-            self.log.info("Adopted the following %d tasks from a dead executor\n\t%s",
-                          len(adopted), task_instance_str)
+            self.log.info(
+                "Adopted the following %d tasks from a dead executor\n\t%s", len(adopted), task_instance_str
+            )
 
         return not_adopted_tis
 
 
-def fetch_celery_task_state(async_result: AsyncResult) -> \
-        Tuple[str, Union[str, ExceptionWithTraceback], Any]:
+def fetch_celery_task_state(async_result: AsyncResult) -> Tuple[str, Union[str, ExceptionWithTraceback], Any]:
     """
     Fetch and return the state of the given celery task. The scope of this function is
     global so that it can be called by subprocesses in the pool.
@@ -535,8 +535,9 @@ class BulkStateFetcher(LoggingMixin):
         return self._prepare_state_and_info_by_task_dict(task_ids, task_results_by_task_id)
 
     @staticmethod
-    def _prepare_state_and_info_by_task_dict(task_ids,
-                                             task_results_by_task_id) -> Mapping[str, EventBufferValueType]:
+    def _prepare_state_and_info_by_task_dict(
+        task_ids, task_results_by_task_id
+    ) -> Mapping[str, EventBufferValueType]:
         state_info: MutableMapping[str, EventBufferValueType] = {}
         for task_id in task_ids:
             task_result = task_results_by_task_id.get(task_id)
@@ -556,16 +557,16 @@ class BulkStateFetcher(LoggingMixin):
             chunksize = max(1, math.floor(math.ceil(1.0 * len(async_results) / self._sync_parallelism)))
 
             task_id_to_states_and_info = sync_pool.map(
-                fetch_celery_task_state,
-                async_results,
-                chunksize=chunksize)
+                fetch_celery_task_state, async_results, chunksize=chunksize
+            )
 
             states_and_info_by_task_id: MutableMapping[str, EventBufferValueType] = {}
             for task_id, state_or_exception, info in task_id_to_states_and_info:
                 if isinstance(state_or_exception, ExceptionWithTraceback):
                     self.log.error(  # pylint: disable=logging-not-lazy
                         CELERY_FETCH_ERR_MSG_HEADER + ":%s\n%s\n",
-                        state_or_exception.exception, state_or_exception.traceback
+                        state_or_exception.exception,
+                        state_or_exception.traceback,
                     )
                 else:
                     states_and_info_by_task_id[task_id] = state_or_exception, info
diff --git a/airflow/executors/celery_kubernetes_executor.py b/airflow/executors/celery_kubernetes_executor.py
index 0c400f0..b58d579 100644
--- a/airflow/executors/celery_kubernetes_executor.py
+++ b/airflow/executors/celery_kubernetes_executor.py
@@ -63,31 +63,30 @@ class CeleryKubernetesExecutor(LoggingMixin):
         task_instance: TaskInstance,
         command: CommandType,
         priority: int = 1,
-        queue: Optional[str] = None
+        queue: Optional[str] = None,
     ):
         """Queues command via celery or kubernetes executor"""
         executor = self._router(task_instance)
-        self.log.debug(
-            "Using executor: %s for %s", executor.__class__.__name__, task_instance.key
-        )
+        self.log.debug("Using executor: %s for %s", executor.__class__.__name__, task_instance.key)
         executor.queue_command(task_instance, command, priority, queue)
 
     def queue_task_instance(
-            self,
-            task_instance: TaskInstance,
-            mark_success: bool = False,
-            pickle_id: Optional[str] = None,
-            ignore_all_deps: bool = False,
-            ignore_depends_on_past: bool = False,
-            ignore_task_deps: bool = False,
-            ignore_ti_state: bool = False,
-            pool: Optional[str] = None,
-            cfg_path: Optional[str] = None) -> None:
+        self,
+        task_instance: TaskInstance,
+        mark_success: bool = False,
+        pickle_id: Optional[str] = None,
+        ignore_all_deps: bool = False,
+        ignore_depends_on_past: bool = False,
+        ignore_task_deps: bool = False,
+        ignore_ti_state: bool = False,
+        pool: Optional[str] = None,
+        cfg_path: Optional[str] = None,
+    ) -> None:
         """Queues task instance via celery or kubernetes executor"""
         executor = self._router(SimpleTaskInstance(task_instance))
-        self.log.debug("Using executor: %s to queue_task_instance for %s",
-                       executor.__class__.__name__, task_instance.key
-                       )
+        self.log.debug(
+            "Using executor: %s to queue_task_instance for %s", executor.__class__.__name__, task_instance.key
+        )
         executor.queue_task_instance(
             task_instance,
             mark_success,
@@ -97,7 +96,7 @@ class CeleryKubernetesExecutor(LoggingMixin):
             ignore_task_deps,
             ignore_ti_state,
             pool,
-            cfg_path
+            cfg_path,
         )
 
     def has_task(self, task_instance: TaskInstance) -> bool:
@@ -107,8 +106,9 @@ class CeleryKubernetesExecutor(LoggingMixin):
         :param task_instance: TaskInstance
         :return: True if the task is known to this executor
         """
-        return self.celery_executor.has_task(task_instance) \
-            or self.kubernetes_executor.has_task(task_instance)
+        return self.celery_executor.has_task(task_instance) or self.kubernetes_executor.has_task(
+            task_instance
+        )
 
     def heartbeat(self) -> None:
         """Heartbeat sent to trigger new jobs in celery and kubernetes executor"""
diff --git a/airflow/executors/dask_executor.py b/airflow/executors/dask_executor.py
index e2cb64f..f26ad0e 100644
--- a/airflow/executors/dask_executor.py
+++ b/airflow/executors/dask_executor.py
@@ -65,11 +65,13 @@ class DaskExecutor(BaseExecutor):
         self.client = Client(self.cluster_address, security=security)
         self.futures = {}
 
-    def execute_async(self,
-                      key: TaskInstanceKey,
-                      command: CommandType,
-                      queue: Optional[str] = None,
-                      executor_config: Optional[Any] = None) -> None:
+    def execute_async(
+        self,
+        key: TaskInstanceKey,
+        command: CommandType,
+        queue: Optional[str] = None,
+        executor_config: Optional[Any] = None,
+    ) -> None:
 
         self.validate_command(command)
 
diff --git a/airflow/executors/debug_executor.py b/airflow/executors/debug_executor.py
index 391b7c7..580dc65 100644
--- a/airflow/executors/debug_executor.py
+++ b/airflow/executors/debug_executor.py
@@ -49,7 +49,7 @@ class DebugExecutor(BaseExecutor):
         self.tasks_params: Dict[TaskInstanceKey, Dict[str, Any]] = {}
         self.fail_fast = conf.getboolean("debug", "fail_fast")
 
-    def execute_async(self, *args, **kwargs) -> None:   # pylint: disable=signature-differs
+    def execute_async(self, *args, **kwargs) -> None:  # pylint: disable=signature-differs
         """The method is replaced by custom trigger_task implementation."""
 
     def sync(self) -> None:
@@ -63,9 +63,7 @@ class DebugExecutor(BaseExecutor):
                 continue
 
             if self._terminated.is_set():
-                self.log.info(
-                    "Executor is terminated! Stopping %s to %s", ti.key, State.FAILED
-                )
+                self.log.info("Executor is terminated! Stopping %s to %s", ti.key, State.FAILED)
                 ti.set_state(State.FAILED)
                 self.change_state(ti.key, State.FAILED)
                 continue
@@ -77,9 +75,7 @@ class DebugExecutor(BaseExecutor):
         key = ti.key
         try:
             params = self.tasks_params.pop(ti.key, {})
-            ti._run_raw_task(  # pylint: disable=protected-access
-                job_id=ti.job_id, **params
-            )
+            ti._run_raw_task(job_id=ti.job_id, **params)  # pylint: disable=protected-access
             self.change_state(key, State.SUCCESS)
             return True
         except Exception as e:  # pylint: disable=broad-except
diff --git a/airflow/executors/executor_loader.py b/airflow/executors/executor_loader.py
index 6039a7a..5ae3e66 100644
--- a/airflow/executors/executor_loader.py
+++ b/airflow/executors/executor_loader.py
@@ -45,7 +45,7 @@ class ExecutorLoader:
         CELERY_KUBERNETES_EXECUTOR: 'airflow.executors.celery_kubernetes_executor.CeleryKubernetesExecutor',
         DASK_EXECUTOR: 'airflow.executors.dask_executor.DaskExecutor',
         KUBERNETES_EXECUTOR: 'airflow.executors.kubernetes_executor.KubernetesExecutor',
-        DEBUG_EXECUTOR: 'airflow.executors.debug_executor.DebugExecutor'
+        DEBUG_EXECUTOR: 'airflow.executors.debug_executor.DebugExecutor',
     }
 
     @classmethod
@@ -55,6 +55,7 @@ class ExecutorLoader:
             return cls._default_executor
 
         from airflow.configuration import conf
+
         executor_name = conf.get('core', 'EXECUTOR')
 
         cls._default_executor = cls.load_executor(executor_name)
@@ -83,12 +84,14 @@ class ExecutorLoader:
         if executor_name.count(".") == 1:
             log.debug(
                 "The executor name looks like the plugin path (executor_name=%s). Trying to load a "
-                "executor from a plugin", executor_name
+                "executor from a plugin",
+                executor_name,
             )
             with suppress(ImportError), suppress(AttributeError):
                 # Load plugins here for executors as at that time the plugins might not have been
                 # initialized yet
                 from airflow import plugins_manager
+
                 plugins_manager.integrate_executor_plugins()
                 return import_string(f"airflow.executors.{executor_name}")()
 
@@ -118,5 +121,5 @@ class ExecutorLoader:
 UNPICKLEABLE_EXECUTORS = (
     ExecutorLoader.LOCAL_EXECUTOR,
     ExecutorLoader.SEQUENTIAL_EXECUTOR,
-    ExecutorLoader.DASK_EXECUTOR
+    ExecutorLoader.DASK_EXECUTOR,
 )
diff --git a/airflow/executors/kubernetes_executor.py b/airflow/executors/kubernetes_executor.py
index 79b75b3..44d42a7 100644
--- a/airflow/executors/kubernetes_executor.py
+++ b/airflow/executors/kubernetes_executor.py
@@ -85,20 +85,18 @@ class KubeConfig:  # pylint: disable=too-many-instance-attributes
         self.airflow_home = settings.AIRFLOW_HOME
         self.dags_folder = conf.get(self.core_section, 'dags_folder')
         self.parallelism = conf.getint(self.core_section, 'parallelism')
-        self.pod_template_file = conf.get(self.kubernetes_section, 'pod_template_file',
-                                          fallback=None)
+        self.pod_template_file = conf.get(self.kubernetes_section, 'pod_template_file', fallback=None)
 
-        self.delete_worker_pods = conf.getboolean(
-            self.kubernetes_section, 'delete_worker_pods')
+        self.delete_worker_pods = conf.getboolean(self.kubernetes_section, 'delete_worker_pods')
         self.delete_worker_pods_on_failure = conf.getboolean(
-            self.kubernetes_section, 'delete_worker_pods_on_failure')
+            self.kubernetes_section, 'delete_worker_pods_on_failure'
+        )
         self.worker_pods_creation_batch_size = conf.getint(
-            self.kubernetes_section, 'worker_pods_creation_batch_size')
+            self.kubernetes_section, 'worker_pods_creation_batch_size'
+        )
 
-        self.worker_container_repository = conf.get(
-            self.kubernetes_section, 'worker_container_repository')
-        self.worker_container_tag = conf.get(
-            self.kubernetes_section, 'worker_container_tag')
+        self.worker_container_repository = conf.get(self.kubernetes_section, 'worker_container_repository')
+        self.worker_container_tag = conf.get(self.kubernetes_section, 'worker_container_tag')
         self.kube_image = f'{self.worker_container_repository}:{self.worker_container_tag}'
 
         # The Kubernetes Namespace in which the Scheduler and Webserver reside. Note
@@ -116,10 +114,12 @@ class KubeConfig:  # pylint: disable=too-many-instance-attributes
         kube_client_request_args = conf.get(self.kubernetes_section, 'kube_client_request_args')
         if kube_client_request_args:
             self.kube_client_request_args = json.loads(kube_client_request_args)
-            if self.kube_client_request_args['_request_timeout'] and \
-                    isinstance(self.kube_client_request_args['_request_timeout'], list):
-                self.kube_client_request_args['_request_timeout'] = \
-                    tuple(self.kube_client_request_args['_request_timeout'])
+            if self.kube_client_request_args['_request_timeout'] and isinstance(
+                self.kube_client_request_args['_request_timeout'], list
+            ):
+                self.kube_client_request_args['_request_timeout'] = tuple(
+                    self.kube_client_request_args['_request_timeout']
+                )
         else:
             self.kube_client_request_args = {}
         delete_option_kwargs = conf.get(self.kubernetes_section, 'delete_option_kwargs')
@@ -141,13 +141,15 @@ class KubeConfig:  # pylint: disable=too-many-instance-attributes
 class KubernetesJobWatcher(multiprocessing.Process, LoggingMixin):
     """Watches for Kubernetes jobs"""
 
-    def __init__(self,
-                 namespace: Optional[str],
-                 multi_namespace_mode: bool,
-                 watcher_queue: 'Queue[KubernetesWatchType]',
-                 resource_version: Optional[str],
-                 scheduler_job_id: Optional[str],
-                 kube_config: Configuration):
+    def __init__(
+        self,
+        namespace: Optional[str],
+        multi_namespace_mode: bool,
+        watcher_queue: 'Queue[KubernetesWatchType]',
+        resource_version: Optional[str],
+        scheduler_job_id: Optional[str],
+        kube_config: Configuration,
+    ):
         super().__init__()
         self.namespace = namespace
         self.multi_namespace_mode = multi_namespace_mode
@@ -163,28 +165,31 @@ class KubernetesJobWatcher(multiprocessing.Process, LoggingMixin):
             raise AirflowException(NOT_STARTED_MESSAGE)
         while True:
             try:
-                self.resource_version = self._run(kube_client, self.resource_version,
-                                                  self.scheduler_job_id, self.kube_config)
+                self.resource_version = self._run(
+                    kube_client, self.resource_version, self.scheduler_job_id, self.kube_config
+                )
             except ReadTimeoutError:
-                self.log.warning("There was a timeout error accessing the Kube API. "
-                                 "Retrying request.", exc_info=True)
+                self.log.warning(
+                    "There was a timeout error accessing the Kube API. " "Retrying request.", exc_info=True
+                )
                 time.sleep(1)
             except Exception:
                 self.log.exception('Unknown error in KubernetesJobWatcher. Failing')
                 raise
             else:
-                self.log.warning('Watch died gracefully, starting back up with: '
-                                 'last resource_version: %s', self.resource_version)
-
-    def _run(self,
-             kube_client: client.CoreV1Api,
-             resource_version: Optional[str],
-             scheduler_job_id: str,
-             kube_config: Any) -> Optional[str]:
-        self.log.info(
-            'Event: and now my watch begins starting at resource_version: %s',
-            resource_version
-        )
+                self.log.warning(
+                    'Watch died gracefully, starting back up with: ' 'last resource_version: %s',
+                    self.resource_version,
+                )
+
+    def _run(
+        self,
+        kube_client: client.CoreV1Api,
+        resource_version: Optional[str],
+        scheduler_job_id: str,
+        kube_config: Any,
+    ) -> Optional[str]:
+        self.log.info('Event: and now my watch begins starting at resource_version: %s', resource_version)
         watcher = watch.Watch()
 
         kwargs = {'label_selector': f'airflow-worker={scheduler_job_id}'}
@@ -196,20 +201,16 @@ class KubernetesJobWatcher(multiprocessing.Process, LoggingMixin):
 
         last_resource_version: Optional[str] = None
         if self.multi_namespace_mode:
-            list_worker_pods = functools.partial(watcher.stream,
-                                                 kube_client.list_pod_for_all_namespaces,
-                                                 **kwargs)
+            list_worker_pods = functools.partial(
+                watcher.stream, kube_client.list_pod_for_all_namespaces, **kwargs
+            )
         else:
-            list_worker_pods = functools.partial(watcher.stream,
-                                                 kube_client.list_namespaced_pod,
-                                                 self.namespace,
-                                                 **kwargs)
+            list_worker_pods = functools.partial(
+                watcher.stream, kube_client.list_namespaced_pod, self.namespace, **kwargs
+            )
         for event in list_worker_pods():
             task = event['object']
-            self.log.info(
-                'Event: %s had an event of type %s',
-                task.metadata.name, event['type']
-            )
+            self.log.info('Event: %s had an event of type %s', task.metadata.name, event['type'])
             if event['type'] == 'ERROR':
                 return self.process_error(event)
             annotations = task.metadata.annotations
@@ -234,29 +235,28 @@ class KubernetesJobWatcher(multiprocessing.Process, LoggingMixin):
 
     def process_error(self, event: Any) -> str:
         """Process error response"""
-        self.log.error(
-            'Encountered Error response from k8s list namespaced pod stream => %s',
-            event
-        )
+        self.log.error('Encountered Error response from k8s list namespaced pod stream => %s', event)
         raw_object = event['raw_object']
         if raw_object['code'] == 410:
             self.log.info(
-                'Kubernetes resource version is too old, must reset to 0 => %s',
-                (raw_object['message'],)
+                'Kubernetes resource version is too old, must reset to 0 => %s', (raw_object['message'],)
             )
             # Return resource version 0
             return '0'
         raise AirflowException(
-            'Kubernetes failure for %s with code %s and message: %s' %
-            (raw_object['reason'], raw_object['code'], raw_object['message'])
+            'Kubernetes failure for %s with code %s and message: %s'
+            % (raw_object['reason'], raw_object['code'], raw_object['message'])
         )
 
-    def process_status(self, pod_id: str,
-                       namespace: str,
-                       status: str,
-                       annotations: Dict[str, str],
-                       resource_version: str,
-                       event: Any) -> None:
+    def process_status(
+        self,
+        pod_id: str,
+        namespace: str,
+        status: str,
+        annotations: Dict[str, str],
+        resource_version: str,
+        event: Any,
+    ) -> None:
         """Process status response"""
         if status == 'Pending':
             if event['type'] == 'DELETED':
@@ -277,19 +277,26 @@ class KubernetesJobWatcher(multiprocessing.Process, LoggingMixin):
         else:
             self.log.warning(
                 'Event: Invalid state: %s on pod: %s in namespace %s with annotations: %s with '
-                'resource_version: %s', status, pod_id, namespace, annotations, resource_version
+                'resource_version: %s',
+                status,
+                pod_id,
+                namespace,
+                annotations,
+                resource_version,
             )
 
 
 class AirflowKubernetesScheduler(LoggingMixin):
     """Airflow Scheduler for Kubernetes"""
 
-    def __init__(self,
-                 kube_config: Any,
-                 task_queue: 'Queue[KubernetesJobType]',
-                 result_queue: 'Queue[KubernetesResultsType]',
-                 kube_client: client.CoreV1Api,
-                 scheduler_job_id: str):
+    def __init__(
+        self,
+        kube_config: Any,
+        task_queue: 'Queue[KubernetesJobType]',
+        result_queue: 'Queue[KubernetesResultsType]',
+        kube_client: client.CoreV1Api,
+        scheduler_job_id: str,
+    ):
         super().__init__()
         self.log.debug("Creating Kubernetes executor")
         self.kube_config = kube_config
@@ -306,12 +313,14 @@ class AirflowKubernetesScheduler(LoggingMixin):
 
     def _make_kube_watcher(self) -> KubernetesJobWatcher:
         resource_version = ResourceVersion().resource_version
-        watcher = KubernetesJobWatcher(watcher_queue=self.watcher_queue,
-                                       namespace=self.kube_config.kube_namespace,
-                                       multi_namespace_mode=self.kube_config.multi_namespace_mode,
-                                       resource_version=resource_version,
-                                       scheduler_job_id=self.scheduler_job_id,
-                                       kube_config=self.kube_config)
+        watcher = KubernetesJobWatcher(
+            watcher_queue=self.watcher_queue,
+            namespace=self.kube_config.kube_namespace,
+            multi_namespace_mode=self.kube_config.multi_namespace_mode,
+            resource_version=resource_version,
+            scheduler_job_id=self.scheduler_job_id,
+            kube_config=self.kube_config,
+        )
         watcher.start()
         return watcher
 
@@ -320,8 +329,8 @@ class AirflowKubernetesScheduler(LoggingMixin):
             self.log.debug("KubeJobWatcher alive, continuing")
         else:
             self.log.error(
-                'Error while health checking kube watcher process. '
-                'Process died for unknown reasons')
+                'Error while health checking kube watcher process. ' 'Process died for unknown reasons'
+            )
             self.kube_watcher = self._make_kube_watcher()
 
     def run_next(self, next_job: KubernetesJobType) -> None:
@@ -340,8 +349,9 @@ class AirflowKubernetesScheduler(LoggingMixin):
 
         base_worker_pod = PodGenerator.deserialize_model_file(self.kube_config.pod_template_file)
         if not base_worker_pod:
-            raise AirflowException("could not find a valid worker template yaml at {}"
-                                   .format(self.kube_config.pod_template_file))
+            raise AirflowException(
+                f"could not find a valid worker template yaml at {self.kube_config.pod_template_file}"
+            )
 
         pod = PodGenerator.construct_pod(
             namespace=self.namespace,
@@ -354,7 +364,7 @@ class AirflowKubernetesScheduler(LoggingMixin):
             date=execution_date,
             command=command,
             pod_override_object=kube_executor_config,
-            base_worker_pod=base_worker_pod
+            base_worker_pod=base_worker_pod,
         )
         # Reconcile the pod generated by the Operator and the Pod
         # generated by the .cfg file
@@ -370,8 +380,11 @@ class AirflowKubernetesScheduler(LoggingMixin):
         try:
             self.log.debug("Deleting pod %s in namespace %s", pod_id, namespace)
             self.kube_client.delete_namespaced_pod(
-                pod_id, namespace, body=client.V1DeleteOptions(**self.kube_config.delete_option_kwargs),
-                **self.kube_config.kube_client_request_args)
+                pod_id,
+                namespace,
+                body=client.V1DeleteOptions(**self.kube_config.delete_option_kwargs),
+                **self.kube_config.kube_client_request_args,
+            )
         except ApiException as e:
             # If the pod is already deleted
             if e.status != 404:
@@ -403,8 +416,7 @@ class AirflowKubernetesScheduler(LoggingMixin):
         """Process the task by watcher."""
         pod_id, namespace, state, annotations, resource_version = task
         self.log.info(
-            'Attempting to finish pod; pod_id: %s; state: %s; annotations: %s',
-            pod_id, state, annotations
+            'Attempting to finish pod; pod_id: %s; state: %s; annotations: %s', pod_id, state, annotations
         )
         key = self._annotations_to_key(annotations=annotations)
         if key:
@@ -434,7 +446,7 @@ class AirflowKubernetesScheduler(LoggingMixin):
         """
         safe_key = safe_dag_id + safe_task_id
 
-        safe_pod_id = safe_key[:MAX_POD_ID_LEN - len(safe_uuid) - 1] + "-" + safe_uuid
+        safe_pod_id = safe_key[: MAX_POD_ID_LEN - len(safe_uuid) - 1] + "-" + safe_uuid
 
         return safe_pod_id
 
@@ -526,67 +538,60 @@ class KubernetesExecutor(BaseExecutor, LoggingMixin):
         self.log.debug("Clearing tasks that have not been launched")
         if not self.kube_client:
             raise AirflowException(NOT_STARTED_MESSAGE)
-        queued_tasks = session \
-            .query(TaskInstance) \
-            .filter(TaskInstance.state == State.QUEUED).all()
-        self.log.info(
-            'When executor started up, found %s queued task instances',
-            len(queued_tasks)
-        )
+        queued_tasks = session.query(TaskInstance).filter(TaskInstance.state == State.QUEUED).all()
+        self.log.info('When executor started up, found %s queued task instances', len(queued_tasks))
 
         for task in queued_tasks:
             # pylint: disable=protected-access
             self.log.debug("Checking task %s", task)
-            dict_string = (
-                "dag_id={},task_id={},execution_date={},airflow-worker={}".format(
-                    pod_generator.make_safe_label_value(task.dag_id),
-                    pod_generator.make_safe_label_value(task.task_id),
-                    pod_generator.datetime_to_label_safe_datestring(
-                        task.execution_date
-                    ),
-                    self.scheduler_job_id
-                )
+            dict_string = "dag_id={},task_id={},execution_date={},airflow-worker={}".format(
+                pod_generator.make_safe_label_value(task.dag_id),
+                pod_generator.make_safe_label_value(task.task_id),
+                pod_generator.datetime_to_label_safe_datestring(task.execution_date),
+                self.scheduler_job_id,
             )
             # pylint: enable=protected-access
             kwargs = dict(label_selector=dict_string)
             if self.kube_config.kube_client_request_args:
                 for key, value in self.kube_config.kube_client_request_args.items():
                     kwargs[key] = value
-            pod_list = self.kube_client.list_namespaced_pod(
-                self.kube_config.kube_namespace, **kwargs)
+            pod_list = self.kube_client.list_namespaced_pod(self.kube_config.kube_namespace, **kwargs)
             if not pod_list.items:
                 self.log.info(
-                    'TaskInstance: %s found in queued state but was not launched, '
-                    'rescheduling', task
+                    'TaskInstance: %s found in queued state but was not launched, ' 'rescheduling', task
                 )
                 session.query(TaskInstance).filter(
                     TaskInstance.dag_id == task.dag_id,
                     TaskInstance.task_id == task.task_id,
-                    TaskInstance.execution_date == task.execution_date
+                    TaskInstance.execution_date == task.execution_date,
                 ).update({TaskInstance.state: State.NONE})
 
     def _inject_secrets(self) -> None:
         def _create_or_update_secret(secret_name, secret_path):
             try:
                 return self.kube_client.create_namespaced_secret(
-                    self.kube_config.executor_namespace, kubernetes.client.V1Secret(
-                        data={
-                            'key.json': base64.b64encode(open(secret_path).read())},
-                        metadata=kubernetes.client.V1ObjectMeta(name=secret_name)),
-                    **self.kube_config.kube_client_request_args)
+                    self.kube_config.executor_namespace,
+                    kubernetes.client.V1Secret(
+                        data={'key.json': base64.b64encode(open(secret_path).read())},
+                        metadata=kubernetes.client.V1ObjectMeta(name=secret_name),
+                    ),
+                    **self.kube_config.kube_client_request_args,
+                )
             except ApiException as e:
                 if e.status == 409:
                     return self.kube_client.replace_namespaced_secret(
-                        secret_name, self.kube_config.executor_namespace,
+                        secret_name,
+                        self.kube_config.executor_namespace,
                         kubernetes.client.V1Secret(
-                            data={'key.json': base64.b64encode(
-                                open(secret_path).read())},
-                            metadata=kubernetes.client.V1ObjectMeta(name=secret_name)),
-                        **self.kube_config.kube_client_request_args)
+                            data={'key.json': base64.b64encode(open(secret_path).read())},
+                            metadata=kubernetes.client.V1ObjectMeta(name=secret_name),
+                        ),
+                        **self.kube_config.kube_client_request_args,
+                    )
                 self.log.exception(
-                    'Exception while trying to inject secret. '
-                    'Secret name: %s, error details: %s',
-                    secret_name, e
+                    'Exception while trying to inject secret. ' 'Secret name: %s, error details: %s',
+                    secret_name,
+                    e,
                 )
                 raise
 
@@ -599,22 +604,20 @@ class KubernetesExecutor(BaseExecutor, LoggingMixin):
         self.log.debug('Start with scheduler_job_id: %s', self.scheduler_job_id)
         self.kube_client = get_kube_client()
         self.kube_scheduler = AirflowKubernetesScheduler(
-            self.kube_config, self.task_queue, self.result_queue,
-            self.kube_client, self.scheduler_job_id
+            self.kube_config, self.task_queue, self.result_queue, self.kube_client, self.scheduler_job_id
         )
         self._inject_secrets()
         self.clear_not_launched_queued_tasks()
 
-    def execute_async(self,
-                      key: TaskInstanceKey,
-                      command: CommandType,
-                      queue: Optional[str] = None,
-                      executor_config: Optional[Any] = None) -> None:
+    def execute_async(
+        self,
+        key: TaskInstanceKey,
+        command: CommandType,
+        queue: Optional[str] = None,
+        executor_config: Optional[Any] = None,
+    ) -> None:
         """Executes task asynchronously"""
-        self.log.info(
-            'Add task %s with command %s with executor_config %s',
-            key, command, executor_config
-        )
+        self.log.info('Add task %s with command %s with executor_config %s', key, command, executor_config)
         kube_executor_config = PodGenerator.from_obj(executor_config)
         if not self.task_queue:
             raise AirflowException(NOT_STARTED_MESSAGE)
@@ -652,7 +655,9 @@ class KubernetesExecutor(BaseExecutor, LoggingMixin):
                     except Exception as e:  # pylint: disable=broad-except
                         self.log.exception(
                             "Exception: %s when attempting to change state of %s to %s, re-queueing.",
-                            e, results, state
+                            e,
+                            results,
+                            state,
                         )
                         self.result_queue.put(results)
                 finally:
@@ -675,8 +680,10 @@ class KubernetesExecutor(BaseExecutor, LoggingMixin):
                         key, _, _ = task
                         self.change_state(key, State.FAILED, e)
                     else:
-                        self.log.warning('ApiException when attempting to run task, re-queueing. '
-                                         'Message: %s', json.loads(e.body)['message'])
+                        self.log.warning(
+                            'ApiException when attempting to run task, re-queueing. ' 'Message: %s',
+                            json.loads(e.body)['message'],
+                        )
                         self.task_queue.put(task)
                 finally:
... 56240 lines suppressed ...