You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ta...@apache.org on 2023/09/21 22:24:25 UTC

[airflow] branch main updated: Ban import AirflowException from airflow (#34512)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new e27325afad Ban import AirflowException from airflow (#34512)
e27325afad is described below

commit e27325afad440b5431306b3a599385a29526a350
Author: Andrey Anshin <An...@taragol.is>
AuthorDate: Fri Sep 22 02:24:14 2023 +0400

    Ban import AirflowException from airflow (#34512)
---
 pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 38d80503b8..f6e84a919a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -63,6 +63,7 @@ extend-select = [
     "D419",
     "TCH001",  # typing-only-first-party-import
     "TCH002",  # typing-only-third-party-import
+    "TID251",
 ]
 extend-ignore = [
     "D203",
@@ -144,6 +145,9 @@ combine-as-imports = true
 "tests/providers/elasticsearch/log/elasticmock/__init__.py" = ["E402"]
 "tests/providers/elasticsearch/log/elasticmock/utilities/__init__.py" = ["E402"]
 
+[tool.ruff.flake8-tidy-imports.banned-api]
+"airflow.AirflowException".msg = "Use airflow.exceptions.AirflowException instead."
+
 [tool.coverage.run]
 branch = true
 relative_files = true