This is an automated email from the ASF dual-hosted git repository. dimberman pushed a commit to branch check-sql-hook in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/check-sql-hook by this push: new da82c7c fix plugin da82c7c is described below commit da82c7c8e93cc349d50e5178146d40b63e682791 Author: Daniel Imberman <daniel.imber...@gmail.com> AuthorDate: Tue Dec 1 08:59:47 2020 -0800 fix plugin --- airflow/upgrade/rules/db_api_functions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/airflow/upgrade/rules/db_api_functions.py b/airflow/upgrade/rules/db_api_functions.py index 5ba96dd..3bdd948 100644 --- a/airflow/upgrade/rules/db_api_functions.py +++ b/airflow/upgrade/rules/db_api_functions.py @@ -66,6 +66,12 @@ def return_error_string(cls, method): class DbApiRule(BaseRule): + title = "Hooks that run DB functions must inherit from DBApiHook" + + description = ( + "Hooks that run DB functions must inherit from DBApiHook instead of BaseHook" + ) + def check(self): subclasses = BaseHook.__subclasses__() incorrect_implementations = []