-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[airflow]: extend removed names (AIR302) #14804
Merged
MichaReiser
merged 10 commits into
astral-sh:main
from
astronomer:extend-air-302-removed-names
Dec 6, 2024
Merged
[airflow]: extend removed names (AIR302) #14804
MichaReiser
merged 10 commits into
astral-sh:main
from
astronomer:extend-air-302-removed-names
Dec 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
AIR302 | 2 | 2 | 0 | 0 | 0 |
…low.utils.helpers"
…nfiguration" * get * getboolean * getfloat * getint * has_option * remove_option * as_dict * set
…d in "airflow.secrets.local_filesystem"
…value_for_key" in "airflow.www.utils" was renamed
* `airflow.operators.bash_operator.BashOperator` → `airflow.operators.bash.BashOperator` * `airflow.operators.branch_operator.BaseBranchOperator` → `airflow.operators.branch.BaseBranchOperator` * `airflow.operators.dummy.EmptyOperator` → `airflow.operators.empty.EmptyOperator` * `airflow.operators.dummy.DummyOperator` → `airflow.operators.empty.EmptyOperator` * `airflow.operators.dummy_operator.EmptyOperator` → `airflow.operators.empty.EmptyOperator` * `airflow.operators.dummy_operator.DummyOperator` → `airflow.operators.empty.EmptyOperator` * `airflow.operators.email_operator.EmailOperator` → `airflow.operators.email.EmailOperator` * `airflow.sensors.base_sensor_operator.BaseSensorOperator` → `airflow.sensors.base.BaseSensorOperator` * `airflow.sensors.date_time_sensor.DateTimeSensor` → `airflow.sensors.date_time.DateTimeSensor` * `airflow.sensors.external_task.ExternalTaskSensorLink` → `airflow.sensors.external_task.ExternalDagLin` * `airflow.sensors.external_task_sensor.ExternalTaskMarker` → `airflow.sensors.external_task.ExternalTaskMarker` * `airflow.sensors.external_task_sensor.ExternalTaskSensor` → `airflow.sensors.external_task.ExternalTaskSensor` * `airflow.sensors.external_task_sensor.ExternalTaskSensorLink` → `airflow.sensors.external_task.ExternalTaskSensorLink` * `airflow.sensors.time_delta_sensor.TimeDeltaSensor` → `airflow.sensors.time_delta.TimeDeltaSensor`
Lee-W
force-pushed
the
extend-air-302-removed-names
branch
from
December 6, 2024 08:16
499d549
to
2fdd02e
Compare
…rflow.utils.trigger_rule.TriggerRule
…PY39, airflow.PY310, airflow.PY311, airflow.PY312 was removed
Lee-W
changed the title
Extend AIR 302 removed names
[airflow]: extend removed names (AIR302)
Dec 6, 2024
MichaReiser
approved these changes
Dec 6, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
MichaReiser
added
rule
Implementing or modifying a lint rule
preview
Related to preview mode features
labels
Dec 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Airflow 3.0 removes various deprecated functions, members, modules, and other values. They have been deprecated in 2.x, but the removal causes incompatibilities that we want to detect. This PR deprecates the following names.
The full list of rules we will extend apache/airflow#44556
package
airflow.contrib.*
module
airflow.operators.subdag.*
class
airflow.sensors.external_task.ExternalTaskSensorLink
→airflow.sensors.external_task.ExternalDagLin
airflow.operators.bash_operator.BashOperator
→airflow.operators.bash.BashOperator
airflow.operators.branch_operator.BaseBranchOperator
→airflow.operators.branch.BaseBranchOperator
airflow.operators.dummy.EmptyOperator
→airflow.operators.empty.EmptyOperator
airflow.operators.dummy.DummyOperator
→airflow.operators.empty.EmptyOperator
airflow.operators.dummy_operator.EmptyOperator
→airflow.operators.empty.EmptyOperator
airflow.operators.dummy_operator.DummyOperator
→airflow.operators.empty.EmptyOperator
airflow.operators.email_operator.EmailOperator
→airflow.operators.email.EmailOperator
airflow.sensors.base_sensor_operator.BaseSensorOperator
→airflow.sensors.base.BaseSensorOperator
airflow.sensors.date_time_sensor.DateTimeSensor
→airflow.sensors.date_time.DateTimeSensor
airflow.sensors.external_task_sensor.ExternalTaskMarker
→airflow.sensors.external_task.ExternalTaskMarker
airflow.sensors.external_task_sensor.ExternalTaskSensor
→airflow.sensors.external_task.ExternalTaskSensor
airflow.sensors.external_task_sensor.ExternalTaskSensorLink
→airflow.sensors.external_task.ExternalTaskSensorLink
airflow.sensors.time_delta_sensor.TimeDeltaSensor
→airflow.sensors.time_delta.TimeDeltaSensor
function
airflow.utils.decorators.apply_defaults
airflow.www.utils.get_sensitive_variables_fields
→airflow.utils.log.secrets_masker.get_sensitive_variables_fields
airflow.www.utils.should_hide_value_for_key
→airflow.utils.log.secrets_masker.should_hide_value_for_key
airflow.configuration.get
→airflow.configuration.conf.get
airflow.configuration.getboolean
→airflow.configuration.conf.getboolean
airflow.configuration.getfloat
→airflow.configuration.conf.getfloat
airflow.configuration.getint
→airflow.configuration.conf.getint
airflow.configuration.has_option
→airflow.configuration.conf.has_option
airflow.configuration.remove_option
→airflow.configuration.conf.remove_option
airflow.configuration.as_dict
→airflow.configuration.conf.as_dict
airflow.configuration.set
→airflow.configuration.conf.set
airflow.secrets.local_filesystem.load_connections
→airflow.secrets.local_filesystem.load_connections_dict
airflow.secrets.local_filesystem.get_connection
→airflow.secrets.local_filesystem.load_connections_dict
airflow.utils.helpers.chain
→airflow.models.baseoperator.chain
airflow.utils.helpers.cross_downstream
→airflow.models.baseoperator.cross_downstream
attribute
airflow.utils.trigger_rule.TriggerRule
DUMMY
NONE_FAILED_OR_SKIPPED
constant / variable
airflow.PY\d\d
Test Plan