[AIRFLOW-6382] Add reason for pre-commit rule (#7538)
This commit is contained in:
Родитель
3ea3e1a2b5
Коммит
c16181308b
|
@ -250,7 +250,7 @@ repos:
|
|||
^airflow/contrib/.*\.py$
|
||||
- id: provide-create-sessions
|
||||
language: pygrep
|
||||
name: Make sure provide_session and create_session are imported from airflow.utils.session
|
||||
name: To avoid import cycles make sure provide_session and create_session are imported from airflow.utils.session # yamllint disable-line rule:line-length
|
||||
entry: "from airflow\\.utils\\.db import.* (provide_session|create_session)"
|
||||
files: \.py$
|
||||
pass_filenames: true
|
||||
|
|
Загрузка…
Ссылка в новой задаче