Skip to content

Commit

Permalink
Pre-upgrade ruff==0.0.292 changes in providers (#35053)
Browse files Browse the repository at this point in the history
* Pre-upgrade ruff==0.0.292 changes in providers (autofix)

* Pre-upgrade ruff==0.0.292 changes in providers
  • Loading branch information
Taragolis committed Oct 19, 2023
1 parent 12f4d51 commit dd7ba3c
Show file tree
Hide file tree
Showing 89 changed files with 90 additions and 90 deletions.
2 changes: 1 addition & 1 deletion airflow/providers/airbyte/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-airbyte:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-airbyte:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/alibaba/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-alibaba:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-alibaba:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/amazon/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-amazon:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-amazon:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/beam/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-beam:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-beam:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/drill/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-drill:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-drill:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/druid/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-druid:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-druid:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/flink/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-flink:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-flink:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/hdfs/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-hdfs:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-hdfs:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/hive/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-hive:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-hive:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/impala/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-impala:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-impala:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/kafka/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-kafka:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-kafka:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/kylin/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-kylin:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-kylin:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/livy/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-livy:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-livy:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/pig/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-pig:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-pig:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/pinot/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-pinot:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-pinot:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/spark/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-spark:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-spark:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apache/sqoop/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apache-sqoop:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apache-sqoop:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/apprise/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-apprise:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-apprise:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/arangodb/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-arangodb:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-arangodb:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/asana/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-asana:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-asana:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/atlassian/jira/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-atlassian-jira:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-atlassian-jira:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/celery/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-celery:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-celery:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/cloudant/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-cloudant:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-cloudant:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/cncf/kubernetes/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-cncf-kubernetes:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-cncf-kubernetes:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/common/sql/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-common-sql:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-common-sql:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/daskexecutor/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-daskexecutor:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-daskexecutor:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/databricks/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-databricks:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-databricks:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/datadog/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-datadog:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-datadog:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/dbt/cloud/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-dbt-cloud:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-dbt-cloud:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/dingding/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-dingding:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-dingding:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/discord/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-discord:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-discord:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/docker/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-docker:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-docker:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/elasticsearch/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-elasticsearch:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-elasticsearch:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/exasol/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-exasol:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-exasol:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/facebook/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-facebook:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-facebook:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/ftp/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-ftp:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-ftp:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/github/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-github:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-github:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/google/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-google:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-google:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/grpc/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-grpc:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-grpc:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/hashicorp/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-hashicorp:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-hashicorp:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/http/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-http:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-http:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/imap/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-imap:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-imap:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/influxdb/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-influxdb:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-influxdb:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/jdbc/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-jdbc:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-jdbc:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/jenkins/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-jenkins:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-jenkins:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/azure/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-microsoft-azure:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-microsoft-azure:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/mssql/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-microsoft-mssql:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-microsoft-mssql:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/psrp/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-microsoft-psrp:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-microsoft-psrp:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/winrm/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-microsoft-winrm:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-microsoft-winrm:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/mongo/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-mongo:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-mongo:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/mysql/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-mysql:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-mysql:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/neo4j/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-neo4j:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-neo4j:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/odbc/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-odbc:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-odbc:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/openfaas/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-openfaas:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-openfaas:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/openlineage/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.7.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-openlineage:{__version__}` requires Apache Airflow 2.7.0+" # NOQA: E501
f"The package `apache-airflow-providers-openlineage:{__version__}` requires Apache Airflow 2.7.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/opensearch/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-opensearch:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-opensearch:{__version__}` requires Apache Airflow 2.5.0+"
)
2 changes: 1 addition & 1 deletion airflow/providers/opsgenie/__init__.py
Expand Up @@ -39,5 +39,5 @@
"2.5.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-opsgenie:{__version__}` requires Apache Airflow 2.5.0+" # NOQA: E501
f"The package `apache-airflow-providers-opsgenie:{__version__}` requires Apache Airflow 2.5.0+"
)

0 comments on commit dd7ba3c

Please sign in to comment.