mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[airflow
] Add missing AIR302
attribute check (#17115)
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> attribute check was missing in the previous implementation e.g. ```python from airflow.api.auth.backend import basic_auth basic_auth.auth_current_user ``` This PR adds this kind of check. ## Test Plan <!-- How was it tested? --> The test case has been added to the button of the existing test fixtures, confirmed to be correct and later reorgnaized
This commit is contained in:
parent
781b653511
commit
c87e3ccb2f
3 changed files with 949 additions and 822 deletions
|
@ -198,6 +198,7 @@ from airflow.operators.sql import (
|
|||
from airflow.operators.sqlite_operator import SqliteOperator
|
||||
from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||
from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||
from airflow.sensors import filesystem
|
||||
from airflow.sensors.date_time import DateTimeSensor, DateTimeSensorAsync
|
||||
from airflow.sensors.date_time_sensor import DateTimeSensor
|
||||
from airflow.sensors.external_task import (
|
||||
|
@ -318,13 +319,25 @@ JdbcHook()
|
|||
JdbcOperator()
|
||||
|
||||
# apache-airflow-providers-fab
|
||||
basic_auth, kerberos_auth
|
||||
basic_auth.CLIENT_AUTH
|
||||
basic_auth.init_app
|
||||
basic_auth.auth_current_user
|
||||
basic_auth.requires_authentication
|
||||
|
||||
kerberos_auth.log
|
||||
kerberos_auth.CLIENT_AUTH
|
||||
kerberos_auth.find_user
|
||||
kerberos_auth.init_app
|
||||
kerberos_auth.requires_authentication
|
||||
auth_current_user
|
||||
backend_kerberos_auth
|
||||
fab_override
|
||||
FabAuthManager()
|
||||
FabAirflowSecurityManagerOverride()
|
||||
|
||||
# check whether attribute access
|
||||
basic_auth.auth_current_user
|
||||
|
||||
# apache-airflow-providers-cncf-kubernetes
|
||||
ALL_NAMESPACES
|
||||
POD_EXECUTOR_DONE_KEY
|
||||
|
@ -422,6 +435,11 @@ ZendeskHook()
|
|||
EmailOperator()
|
||||
|
||||
# apache-airflow-providers-standard
|
||||
filesystem.FileSensor()
|
||||
FileSensor()
|
||||
TriggerDagRunOperator()
|
||||
ExternalTaskMarker()
|
||||
ExternalTaskSensor()
|
||||
BranchDateTimeOperator()
|
||||
BranchDayOfWeekOperator()
|
||||
BranchPythonOperator()
|
||||
|
@ -452,7 +470,6 @@ FileTrigger()
|
|||
DateTimeTrigger()
|
||||
TimeDeltaTrigger()
|
||||
SubprocessResult()
|
||||
working_directory()
|
||||
SubprocessHook()
|
||||
TimeDeltaSensor()
|
||||
TimeDeltaSensorAsync()
|
||||
|
@ -460,4 +477,5 @@ WaitSensor()
|
|||
TimeSensor()
|
||||
TimeSensorAsync()
|
||||
BranchDateTimeOperator()
|
||||
working_directory()
|
||||
target_times_as_dates()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue