mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-03 13:14:34 +00:00
[airflow] Add unsafe fix for module moved cases (AIR312) (#18363)
<!-- Thank you for contributing to Ruff/ty! 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? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> Follow up on https://github.com/astral-sh/ruff/pull/18093 and apply it to AIR312 ## Test Plan <!-- How was it tested? --> The existing test fixtures have been updated
This commit is contained in:
parent
c713e76e4d
commit
d65bd69963
3 changed files with 667 additions and 241 deletions
|
|
@ -7,49 +7,71 @@ from airflow.operators.bash import BashOperator
|
||||||
from airflow.operators.datetime import BranchDateTimeOperator
|
from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
from airflow.operators.empty import EmptyOperator
|
from airflow.operators.empty import EmptyOperator
|
||||||
from airflow.operators.latest_only import LatestOnlyOperator
|
from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
|
from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
|
||||||
|
FSHook()
|
||||||
|
PackageIndexHook()
|
||||||
|
SubprocessHook()
|
||||||
|
|
||||||
|
BashOperator()
|
||||||
|
BranchDateTimeOperator()
|
||||||
|
TriggerDagRunOperator()
|
||||||
|
EmptyOperator()
|
||||||
|
|
||||||
|
LatestOnlyOperator()
|
||||||
|
BranchDayOfWeekOperator()
|
||||||
|
DateTimeSensor()
|
||||||
|
|
||||||
from airflow.operators.python import (
|
from airflow.operators.python import (
|
||||||
BranchPythonOperator,
|
BranchPythonOperator,
|
||||||
PythonOperator,
|
PythonOperator,
|
||||||
PythonVirtualenvOperator,
|
PythonVirtualenvOperator,
|
||||||
ShortCircuitOperator,
|
ShortCircuitOperator,
|
||||||
)
|
)
|
||||||
from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
from airflow.sensors.date_time import DateTimeSensorAsync
|
||||||
from airflow.operators.weekday import BranchDayOfWeekOperator
|
|
||||||
from airflow.sensors.date_time import DateTimeSensor, DateTimeSensorAsync
|
|
||||||
from airflow.sensors.external_task import (
|
from airflow.sensors.external_task import (
|
||||||
ExternalTaskMarker,
|
ExternalTaskMarker,
|
||||||
ExternalTaskSensor,
|
ExternalTaskSensor,
|
||||||
|
)
|
||||||
|
from airflow.sensors.time_sensor import (
|
||||||
|
TimeSensor,
|
||||||
|
TimeSensorAsync,
|
||||||
)
|
)
|
||||||
from airflow.sensors.filesystem import FileSensor
|
from airflow.sensors.filesystem import FileSensor
|
||||||
from airflow.sensors.time_delta import TimeDeltaSensor, TimeDeltaSensorAsync
|
|
||||||
from airflow.sensors.time_sensor import TimeSensor, TimeSensorAsync
|
|
||||||
from airflow.sensors.weekday import DayOfWeekSensor
|
|
||||||
from airflow.triggers.external_task import DagStateTrigger, WorkflowTrigger
|
|
||||||
from airflow.triggers.file import FileTrigger
|
|
||||||
from airflow.triggers.temporal import DateTimeTrigger, TimeDeltaTrigger
|
|
||||||
|
|
||||||
FSHook()
|
BranchPythonOperator()
|
||||||
PackageIndexHook()
|
PythonOperator()
|
||||||
SubprocessHook()
|
PythonVirtualenvOperator()
|
||||||
BashOperator()
|
ShortCircuitOperator()
|
||||||
BranchDateTimeOperator()
|
DateTimeSensorAsync()
|
||||||
TriggerDagRunOperator()
|
ExternalTaskMarker()
|
||||||
EmptyOperator()
|
ExternalTaskSensor()
|
||||||
LatestOnlyOperator()
|
|
||||||
(
|
|
||||||
BranchPythonOperator(),
|
|
||||||
PythonOperator(),
|
|
||||||
PythonVirtualenvOperator(),
|
|
||||||
ShortCircuitOperator(),
|
|
||||||
)
|
|
||||||
BranchDayOfWeekOperator()
|
|
||||||
DateTimeSensor(), DateTimeSensorAsync()
|
|
||||||
ExternalTaskMarker(), ExternalTaskSensor()
|
|
||||||
FileSensor()
|
FileSensor()
|
||||||
TimeSensor(), TimeSensorAsync()
|
TimeSensor()
|
||||||
TimeDeltaSensor(), TimeDeltaSensorAsync()
|
TimeSensorAsync()
|
||||||
|
|
||||||
|
from airflow.sensors.time_delta import (
|
||||||
|
TimeDeltaSensor,
|
||||||
|
TimeDeltaSensorAsync,
|
||||||
|
)
|
||||||
|
from airflow.sensors.weekday import DayOfWeekSensor
|
||||||
|
from airflow.triggers.external_task import (
|
||||||
|
DagStateTrigger,
|
||||||
|
WorkflowTrigger,
|
||||||
|
)
|
||||||
|
from airflow.triggers.file import FileTrigger
|
||||||
|
from airflow.triggers.temporal import (
|
||||||
|
DateTimeTrigger,
|
||||||
|
TimeDeltaTrigger,
|
||||||
|
)
|
||||||
|
|
||||||
|
TimeDeltaSensor()
|
||||||
|
TimeDeltaSensorAsync()
|
||||||
DayOfWeekSensor()
|
DayOfWeekSensor()
|
||||||
DagStateTrigger(), WorkflowTrigger()
|
DagStateTrigger()
|
||||||
|
WorkflowTrigger()
|
||||||
FileTrigger()
|
FileTrigger()
|
||||||
DateTimeTrigger(), TimeDeltaTrigger()
|
DateTimeTrigger()
|
||||||
|
TimeDeltaTrigger()
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
use crate::importer::ImportRequest;
|
use crate::checkers::ast::Checker;
|
||||||
|
use crate::rules::airflow::helpers::{
|
||||||
use crate::rules::airflow::helpers::{ProviderReplacement, is_guarded_by_try_except};
|
ProviderReplacement, generate_import_edit, generate_remove_and_runtime_import_edit,
|
||||||
use crate::{Edit, Fix, FixAvailability, Violation};
|
is_guarded_by_try_except,
|
||||||
|
};
|
||||||
|
use crate::{FixAvailability, Violation};
|
||||||
use ruff_macros::{ViolationMetadata, derive_message_formats};
|
use ruff_macros::{ViolationMetadata, derive_message_formats};
|
||||||
use ruff_python_ast::name::QualifiedName;
|
use ruff_python_ast::name::QualifiedName;
|
||||||
use ruff_python_ast::{Expr, ExprAttribute};
|
use ruff_python_ast::{Expr, ExprAttribute};
|
||||||
|
|
@ -9,8 +11,6 @@ use ruff_python_semantic::Modules;
|
||||||
use ruff_text_size::Ranged;
|
use ruff_text_size::Ranged;
|
||||||
use ruff_text_size::TextRange;
|
use ruff_text_size::TextRange;
|
||||||
|
|
||||||
use crate::checkers::ast::Checker;
|
|
||||||
|
|
||||||
/// ## What it does
|
/// ## What it does
|
||||||
/// Checks for uses of Airflow functions and values that have been moved to its providers
|
/// Checks for uses of Airflow functions and values that have been moved to its providers
|
||||||
/// but still have a compatibility layer (e.g., `apache-airflow-providers-standard`).
|
/// but still have a compatibility layer (e.g., `apache-airflow-providers-standard`).
|
||||||
|
|
@ -302,22 +302,17 @@ fn check_names_moved_to_provider(checker: &Checker, expr: &Expr, ranged: TextRan
|
||||||
if is_guarded_by_try_except(expr, module, name, checker.semantic()) {
|
if is_guarded_by_try_except(expr, module, name, checker.semantic()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
let mut diagnostic = checker.report_diagnostic(
|
||||||
|
Airflow3SuggestedToMoveToProvider {
|
||||||
|
deprecated: qualified_name,
|
||||||
|
replacement: replacement.clone(),
|
||||||
|
},
|
||||||
|
ranged,
|
||||||
|
);
|
||||||
|
|
||||||
checker
|
if let Some(fix) = generate_import_edit(expr, checker, module, name, ranged)
|
||||||
.report_diagnostic(
|
.or_else(|| generate_remove_and_runtime_import_edit(expr, checker, module, name))
|
||||||
Airflow3SuggestedToMoveToProvider {
|
{
|
||||||
deprecated: qualified_name,
|
diagnostic.set_fix(fix);
|
||||||
replacement: replacement.clone(),
|
}
|
||||||
},
|
|
||||||
ranged.range(),
|
|
||||||
)
|
|
||||||
.try_set_fix(|| {
|
|
||||||
let (import_edit, binding) = checker.importer().get_or_import_symbol(
|
|
||||||
&ImportRequest::import_from(module, name),
|
|
||||||
expr.start(),
|
|
||||||
checker.semantic(),
|
|
||||||
)?;
|
|
||||||
let replacement_edit = Edit::range_replacement(binding, ranged.range());
|
|
||||||
Ok(Fix::safe_edits(import_edit, [replacement_edit]))
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,304 +1,713 @@
|
||||||
---
|
---
|
||||||
source: crates/ruff_linter/src/rules/airflow/mod.rs
|
source: crates/ruff_linter/src/rules/airflow/mod.rs
|
||||||
---
|
---
|
||||||
AIR312.py:32:1: AIR312 `airflow.hooks.filesystem.FSHook` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
AIR312.py:14:1: AIR312 [*] `airflow.hooks.filesystem.FSHook` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
30 | from airflow.triggers.temporal import DateTimeTrigger, TimeDeltaTrigger
|
12 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
31 |
|
13 |
|
||||||
32 | FSHook()
|
14 | FSHook()
|
||||||
| ^^^^^^ AIR312
|
| ^^^^^^ AIR312
|
||||||
33 | PackageIndexHook()
|
15 | PackageIndexHook()
|
||||||
34 | SubprocessHook()
|
16 | SubprocessHook()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `FSHook` from `airflow.providers.standard.hooks.filesystem` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `FSHook` from `airflow.providers.standard.hooks.filesystem` instead.
|
||||||
|
|
||||||
AIR312.py:33:1: AIR312 `airflow.hooks.package_index.PackageIndexHook` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
1 1 | from __future__ import annotations
|
||||||
|
2 2 |
|
||||||
|
3 |-from airflow.hooks.filesystem import FSHook
|
||||||
|
4 3 | from airflow.hooks.package_index import PackageIndexHook
|
||||||
|
5 4 | from airflow.hooks.subprocess import SubprocessHook
|
||||||
|
6 5 | from airflow.operators.bash import BashOperator
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
10 9 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.hooks.filesystem import FSHook
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:15:1: AIR312 [*] `airflow.hooks.package_index.PackageIndexHook` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
32 | FSHook()
|
14 | FSHook()
|
||||||
33 | PackageIndexHook()
|
15 | PackageIndexHook()
|
||||||
| ^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^ AIR312
|
||||||
34 | SubprocessHook()
|
16 | SubprocessHook()
|
||||||
35 | BashOperator()
|
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `PackageIndexHook` from `airflow.providers.standard.hooks.package_index` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `PackageIndexHook` from `airflow.providers.standard.hooks.package_index` instead.
|
||||||
|
|
||||||
AIR312.py:34:1: AIR312 `airflow.hooks.subprocess.SubprocessHook` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
1 1 | from __future__ import annotations
|
||||||
|
2 2 |
|
||||||
|
3 3 | from airflow.hooks.filesystem import FSHook
|
||||||
|
4 |-from airflow.hooks.package_index import PackageIndexHook
|
||||||
|
5 4 | from airflow.hooks.subprocess import SubprocessHook
|
||||||
|
6 5 | from airflow.operators.bash import BashOperator
|
||||||
|
7 6 | from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
10 9 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.hooks.package_index import PackageIndexHook
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:16:1: AIR312 [*] `airflow.hooks.subprocess.SubprocessHook` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
32 | FSHook()
|
14 | FSHook()
|
||||||
33 | PackageIndexHook()
|
15 | PackageIndexHook()
|
||||||
34 | SubprocessHook()
|
16 | SubprocessHook()
|
||||||
| ^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^ AIR312
|
||||||
35 | BashOperator()
|
17 |
|
||||||
36 | BranchDateTimeOperator()
|
18 | BashOperator()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `SubprocessHook` from `airflow.providers.standard.hooks.subprocess` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `SubprocessHook` from `airflow.providers.standard.hooks.subprocess` instead.
|
||||||
|
|
||||||
AIR312.py:35:1: AIR312 `airflow.operators.bash.BashOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
2 2 |
|
||||||
|
3 3 | from airflow.hooks.filesystem import FSHook
|
||||||
|
4 4 | from airflow.hooks.package_index import PackageIndexHook
|
||||||
|
5 |-from airflow.hooks.subprocess import SubprocessHook
|
||||||
|
6 5 | from airflow.operators.bash import BashOperator
|
||||||
|
7 6 | from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
|
8 7 | from airflow.operators.empty import EmptyOperator
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
10 9 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.hooks.subprocess import SubprocessHook
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:18:1: AIR312 [*] `airflow.operators.bash.BashOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
33 | PackageIndexHook()
|
16 | SubprocessHook()
|
||||||
34 | SubprocessHook()
|
17 |
|
||||||
35 | BashOperator()
|
18 | BashOperator()
|
||||||
| ^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^ AIR312
|
||||||
36 | BranchDateTimeOperator()
|
19 | BranchDateTimeOperator()
|
||||||
37 | TriggerDagRunOperator()
|
20 | TriggerDagRunOperator()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BashOperator` from `airflow.providers.standard.operators.bash` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BashOperator` from `airflow.providers.standard.operators.bash` instead.
|
||||||
|
|
||||||
AIR312.py:36:1: AIR312 `airflow.operators.datetime.BranchDateTimeOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
3 3 | from airflow.hooks.filesystem import FSHook
|
||||||
|
4 4 | from airflow.hooks.package_index import PackageIndexHook
|
||||||
|
5 5 | from airflow.hooks.subprocess import SubprocessHook
|
||||||
|
6 |-from airflow.operators.bash import BashOperator
|
||||||
|
7 6 | from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
|
8 7 | from airflow.operators.empty import EmptyOperator
|
||||||
|
9 8 | from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
|
10 9 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.operators.bash import BashOperator
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:19:1: AIR312 [*] `airflow.operators.datetime.BranchDateTimeOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
34 | SubprocessHook()
|
18 | BashOperator()
|
||||||
35 | BashOperator()
|
19 | BranchDateTimeOperator()
|
||||||
36 | BranchDateTimeOperator()
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
37 | TriggerDagRunOperator()
|
20 | TriggerDagRunOperator()
|
||||||
38 | EmptyOperator()
|
21 | EmptyOperator()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BranchDateTimeOperator` from `airflow.providers.standard.operators.datetime` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BranchDateTimeOperator` from `airflow.providers.standard.operators.datetime` instead.
|
||||||
|
|
||||||
AIR312.py:37:1: AIR312 `airflow.operators.trigger_dagrun.TriggerDagRunOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
4 4 | from airflow.hooks.package_index import PackageIndexHook
|
||||||
|
5 5 | from airflow.hooks.subprocess import SubprocessHook
|
||||||
|
6 6 | from airflow.operators.bash import BashOperator
|
||||||
|
7 |-from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
|
8 7 | from airflow.operators.empty import EmptyOperator
|
||||||
|
9 8 | from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
|
10 9 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.operators.datetime import BranchDateTimeOperator
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:20:1: AIR312 [*] `airflow.operators.trigger_dagrun.TriggerDagRunOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
35 | BashOperator()
|
18 | BashOperator()
|
||||||
36 | BranchDateTimeOperator()
|
19 | BranchDateTimeOperator()
|
||||||
37 | TriggerDagRunOperator()
|
20 | TriggerDagRunOperator()
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
38 | EmptyOperator()
|
21 | EmptyOperator()
|
||||||
39 | LatestOnlyOperator()
|
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.2` and use `TriggerDagRunOperator` from `airflow.providers.standard.operators.trigger_dagrun` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.2` and use `TriggerDagRunOperator` from `airflow.providers.standard.operators.trigger_dagrun` instead.
|
||||||
|
|
||||||
AIR312.py:38:1: AIR312 `airflow.operators.empty.EmptyOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
7 7 | from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
|
8 8 | from airflow.operators.empty import EmptyOperator
|
||||||
|
9 9 | from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
|
10 |-from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:21:1: AIR312 [*] `airflow.operators.empty.EmptyOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
36 | BranchDateTimeOperator()
|
19 | BranchDateTimeOperator()
|
||||||
37 | TriggerDagRunOperator()
|
20 | TriggerDagRunOperator()
|
||||||
38 | EmptyOperator()
|
21 | EmptyOperator()
|
||||||
| ^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^ AIR312
|
||||||
39 | LatestOnlyOperator()
|
22 |
|
||||||
40 | (
|
23 | LatestOnlyOperator()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.2` and use `EmptyOperator` from `airflow.providers.standard.operators.empty` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.2` and use `EmptyOperator` from `airflow.providers.standard.operators.empty` instead.
|
||||||
|
|
||||||
AIR312.py:39:1: AIR312 `airflow.operators.latest_only.LatestOnlyOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
5 5 | from airflow.hooks.subprocess import SubprocessHook
|
||||||
|
6 6 | from airflow.operators.bash import BashOperator
|
||||||
|
7 7 | from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
|
8 |-from airflow.operators.empty import EmptyOperator
|
||||||
|
9 8 | from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
|
10 9 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.operators.empty import EmptyOperator
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:23:1: AIR312 [*] `airflow.operators.latest_only.LatestOnlyOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
37 | TriggerDagRunOperator()
|
21 | EmptyOperator()
|
||||||
38 | EmptyOperator()
|
22 |
|
||||||
39 | LatestOnlyOperator()
|
23 | LatestOnlyOperator()
|
||||||
| ^^^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
40 | (
|
24 | BranchDayOfWeekOperator()
|
||||||
41 | BranchPythonOperator(),
|
25 | DateTimeSensor()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `LatestOnlyOperator` from `airflow.providers.standard.operators.latest_only` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `LatestOnlyOperator` from `airflow.providers.standard.operators.latest_only` instead.
|
||||||
|
|
||||||
AIR312.py:41:5: AIR312 `airflow.operators.python.BranchPythonOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
|
6 6 | from airflow.operators.bash import BashOperator
|
||||||
39 | LatestOnlyOperator()
|
7 7 | from airflow.operators.datetime import BranchDateTimeOperator
|
||||||
40 | (
|
8 8 | from airflow.operators.empty import EmptyOperator
|
||||||
41 | BranchPythonOperator(),
|
9 |-from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
| ^^^^^^^^^^^^^^^^^^^^ AIR312
|
10 9 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
42 | PythonOperator(),
|
11 10 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
43 | PythonVirtualenvOperator(),
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
|
12 |+from airflow.providers.standard.operators.latest_only import LatestOnlyOperator
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BranchPythonOperator` from `airflow.providers.standard.operators.python` instead.
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
AIR312.py:42:5: AIR312 `airflow.operators.python.PythonOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
AIR312.py:24:1: AIR312 [*] `airflow.operators.weekday.BranchDayOfWeekOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
40 | (
|
23 | LatestOnlyOperator()
|
||||||
41 | BranchPythonOperator(),
|
24 | BranchDayOfWeekOperator()
|
||||||
42 | PythonOperator(),
|
|
||||||
| ^^^^^^^^^^^^^^ AIR312
|
|
||||||
43 | PythonVirtualenvOperator(),
|
|
||||||
44 | ShortCircuitOperator(),
|
|
||||||
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `PythonOperator` from `airflow.providers.standard.operators.python` instead.
|
|
||||||
|
|
||||||
AIR312.py:43:5: AIR312 `airflow.operators.python.PythonVirtualenvOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
|
||||||
|
|
|
||||||
41 | BranchPythonOperator(),
|
|
||||||
42 | PythonOperator(),
|
|
||||||
43 | PythonVirtualenvOperator(),
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ AIR312
|
|
||||||
44 | ShortCircuitOperator(),
|
|
||||||
45 | )
|
|
||||||
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `PythonVirtualenvOperator` from `airflow.providers.standard.operators.python` instead.
|
|
||||||
|
|
||||||
AIR312.py:44:5: AIR312 `airflow.operators.python.ShortCircuitOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
|
||||||
|
|
|
||||||
42 | PythonOperator(),
|
|
||||||
43 | PythonVirtualenvOperator(),
|
|
||||||
44 | ShortCircuitOperator(),
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^ AIR312
|
|
||||||
45 | )
|
|
||||||
46 | BranchDayOfWeekOperator()
|
|
||||||
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `ShortCircuitOperator` from `airflow.providers.standard.operators.python` instead.
|
|
||||||
|
|
||||||
AIR312.py:46:1: AIR312 `airflow.operators.weekday.BranchDayOfWeekOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
|
||||||
|
|
|
||||||
44 | ShortCircuitOperator(),
|
|
||||||
45 | )
|
|
||||||
46 | BranchDayOfWeekOperator()
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
47 | DateTimeSensor(), DateTimeSensorAsync()
|
25 | DateTimeSensor()
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BranchDayOfWeekOperator` from `airflow.providers.standard.operators.weekday` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BranchDayOfWeekOperator` from `airflow.providers.standard.operators.weekday` instead.
|
||||||
|
|
||||||
AIR312.py:47:1: AIR312 `airflow.sensors.date_time.DateTimeSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
8 8 | from airflow.operators.empty import EmptyOperator
|
||||||
|
9 9 | from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
|
10 10 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 |-from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 11 | from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:25:1: AIR312 [*] `airflow.sensors.date_time.DateTimeSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
45 | )
|
23 | LatestOnlyOperator()
|
||||||
46 | BranchDayOfWeekOperator()
|
24 | BranchDayOfWeekOperator()
|
||||||
47 | DateTimeSensor(), DateTimeSensorAsync()
|
25 | DateTimeSensor()
|
||||||
| ^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^ AIR312
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
26 |
|
||||||
49 | FileSensor()
|
27 | from airflow.operators.python import (
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `DateTimeSensor` from `airflow.providers.standard.sensors.date_time` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `DateTimeSensor` from `airflow.providers.standard.sensors.date_time` instead.
|
||||||
|
|
||||||
AIR312.py:47:19: AIR312 `airflow.sensors.date_time.DateTimeSensorAsync` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
9 9 | from airflow.operators.latest_only import LatestOnlyOperator
|
||||||
|
10 10 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator
|
||||||
|
11 11 | from airflow.operators.weekday import BranchDayOfWeekOperator
|
||||||
|
12 |-from airflow.sensors.date_time import DateTimeSensor
|
||||||
|
12 |+from airflow.providers.standard.sensors.date_time import DateTimeSensor
|
||||||
|
13 13 |
|
||||||
|
14 14 | FSHook()
|
||||||
|
15 15 | PackageIndexHook()
|
||||||
|
|
||||||
|
AIR312.py:44:1: AIR312 [*] `airflow.operators.python.BranchPythonOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
45 | )
|
42 | from airflow.sensors.filesystem import FileSensor
|
||||||
46 | BranchDayOfWeekOperator()
|
43 |
|
||||||
47 | DateTimeSensor(), DateTimeSensorAsync()
|
44 | BranchPythonOperator()
|
||||||
| ^^^^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
45 | PythonOperator()
|
||||||
49 | FileSensor()
|
46 | PythonVirtualenvOperator()
|
||||||
|
|
|
||||||
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `BranchPythonOperator` from `airflow.providers.standard.operators.python` instead.
|
||||||
|
|
||||||
|
ℹ Unsafe fix
|
||||||
|
25 25 | DateTimeSensor()
|
||||||
|
26 26 |
|
||||||
|
27 27 | from airflow.operators.python import (
|
||||||
|
28 |- BranchPythonOperator,
|
||||||
|
29 28 | PythonOperator,
|
||||||
|
30 29 | PythonVirtualenvOperator,
|
||||||
|
31 30 | ShortCircuitOperator,
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.operators.python import BranchPythonOperator
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:45:1: AIR312 [*] `airflow.operators.python.PythonOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
||||||
|
44 | BranchPythonOperator()
|
||||||
|
45 | PythonOperator()
|
||||||
|
| ^^^^^^^^^^^^^^ AIR312
|
||||||
|
46 | PythonVirtualenvOperator()
|
||||||
|
47 | ShortCircuitOperator()
|
||||||
|
|
|
||||||
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `PythonOperator` from `airflow.providers.standard.operators.python` instead.
|
||||||
|
|
||||||
|
ℹ Unsafe fix
|
||||||
|
26 26 |
|
||||||
|
27 27 | from airflow.operators.python import (
|
||||||
|
28 28 | BranchPythonOperator,
|
||||||
|
29 |- PythonOperator,
|
||||||
|
30 29 | PythonVirtualenvOperator,
|
||||||
|
31 30 | ShortCircuitOperator,
|
||||||
|
32 31 | )
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.operators.python import PythonOperator
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:46:1: AIR312 [*] `airflow.operators.python.PythonVirtualenvOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
||||||
|
44 | BranchPythonOperator()
|
||||||
|
45 | PythonOperator()
|
||||||
|
46 | PythonVirtualenvOperator()
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
|
47 | ShortCircuitOperator()
|
||||||
|
48 | DateTimeSensorAsync()
|
||||||
|
|
|
||||||
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `PythonVirtualenvOperator` from `airflow.providers.standard.operators.python` instead.
|
||||||
|
|
||||||
|
ℹ Unsafe fix
|
||||||
|
27 27 | from airflow.operators.python import (
|
||||||
|
28 28 | BranchPythonOperator,
|
||||||
|
29 29 | PythonOperator,
|
||||||
|
30 |- PythonVirtualenvOperator,
|
||||||
|
31 30 | ShortCircuitOperator,
|
||||||
|
32 31 | )
|
||||||
|
33 32 | from airflow.sensors.date_time import DateTimeSensorAsync
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.operators.python import PythonVirtualenvOperator
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:47:1: AIR312 [*] `airflow.operators.python.ShortCircuitOperator` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
||||||
|
45 | PythonOperator()
|
||||||
|
46 | PythonVirtualenvOperator()
|
||||||
|
47 | ShortCircuitOperator()
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
|
48 | DateTimeSensorAsync()
|
||||||
|
49 | ExternalTaskMarker()
|
||||||
|
|
|
||||||
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `ShortCircuitOperator` from `airflow.providers.standard.operators.python` instead.
|
||||||
|
|
||||||
|
ℹ Unsafe fix
|
||||||
|
28 28 | BranchPythonOperator,
|
||||||
|
29 29 | PythonOperator,
|
||||||
|
30 30 | PythonVirtualenvOperator,
|
||||||
|
31 |- ShortCircuitOperator,
|
||||||
|
32 31 | )
|
||||||
|
33 32 | from airflow.sensors.date_time import DateTimeSensorAsync
|
||||||
|
34 33 | from airflow.sensors.external_task import (
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.operators.python import ShortCircuitOperator
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:48:1: AIR312 [*] `airflow.sensors.date_time.DateTimeSensorAsync` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
||||||
|
46 | PythonVirtualenvOperator()
|
||||||
|
47 | ShortCircuitOperator()
|
||||||
|
48 | DateTimeSensorAsync()
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
|
49 | ExternalTaskMarker()
|
||||||
|
50 | ExternalTaskSensor()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `DateTimeSensorAsync` from `airflow.providers.standard.sensors.date_time` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `DateTimeSensorAsync` from `airflow.providers.standard.sensors.date_time` instead.
|
||||||
|
|
||||||
AIR312.py:48:1: AIR312 `airflow.sensors.external_task.ExternalTaskMarker` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
30 30 | PythonVirtualenvOperator,
|
||||||
|
31 31 | ShortCircuitOperator,
|
||||||
|
32 32 | )
|
||||||
|
33 |-from airflow.sensors.date_time import DateTimeSensorAsync
|
||||||
|
34 33 | from airflow.sensors.external_task import (
|
||||||
|
35 34 | ExternalTaskMarker,
|
||||||
|
36 35 | ExternalTaskSensor,
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.sensors.date_time import DateTimeSensorAsync
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:49:1: AIR312 [*] `airflow.sensors.external_task.ExternalTaskMarker` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
46 | BranchDayOfWeekOperator()
|
47 | ShortCircuitOperator()
|
||||||
47 | DateTimeSensor(), DateTimeSensorAsync()
|
48 | DateTimeSensorAsync()
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
49 | ExternalTaskMarker()
|
||||||
| ^^^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
49 | FileSensor()
|
50 | ExternalTaskSensor()
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
51 | FileSensor()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `ExternalTaskMarker` from `airflow.providers.standard.sensors.external_task` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `ExternalTaskMarker` from `airflow.providers.standard.sensors.external_task` instead.
|
||||||
|
|
||||||
AIR312.py:48:23: AIR312 `airflow.sensors.external_task.ExternalTaskSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
32 32 | )
|
||||||
|
33 33 | from airflow.sensors.date_time import DateTimeSensorAsync
|
||||||
|
34 34 | from airflow.sensors.external_task import (
|
||||||
|
35 |- ExternalTaskMarker,
|
||||||
|
36 35 | ExternalTaskSensor,
|
||||||
|
37 36 | )
|
||||||
|
38 37 | from airflow.sensors.time_sensor import (
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.sensors.external_task import ExternalTaskMarker
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:50:1: AIR312 [*] `airflow.sensors.external_task.ExternalTaskSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
46 | BranchDayOfWeekOperator()
|
48 | DateTimeSensorAsync()
|
||||||
47 | DateTimeSensor(), DateTimeSensorAsync()
|
49 | ExternalTaskMarker()
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
50 | ExternalTaskSensor()
|
||||||
| ^^^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
49 | FileSensor()
|
51 | FileSensor()
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
52 | TimeSensor()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `ExternalTaskSensor` from `airflow.providers.standard.sensors.external_task` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `ExternalTaskSensor` from `airflow.providers.standard.sensors.external_task` instead.
|
||||||
|
|
||||||
AIR312.py:49:1: AIR312 `airflow.sensors.filesystem.FileSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
33 33 | from airflow.sensors.date_time import DateTimeSensorAsync
|
||||||
|
34 34 | from airflow.sensors.external_task import (
|
||||||
|
35 35 | ExternalTaskMarker,
|
||||||
|
36 |- ExternalTaskSensor,
|
||||||
|
37 36 | )
|
||||||
|
38 37 | from airflow.sensors.time_sensor import (
|
||||||
|
39 38 | TimeSensor,
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.sensors.external_task import ExternalTaskSensor
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:51:1: AIR312 [*] `airflow.sensors.filesystem.FileSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
47 | DateTimeSensor(), DateTimeSensorAsync()
|
49 | ExternalTaskMarker()
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
50 | ExternalTaskSensor()
|
||||||
49 | FileSensor()
|
51 | FileSensor()
|
||||||
| ^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^ AIR312
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
52 | TimeSensor()
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
53 | TimeSensorAsync()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.2` and use `FileSensor` from `airflow.providers.standard.sensors.filesystem` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.2` and use `FileSensor` from `airflow.providers.standard.sensors.filesystem` instead.
|
||||||
|
|
||||||
AIR312.py:50:1: AIR312 `airflow.sensors.time_sensor.TimeSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
39 39 | TimeSensor,
|
||||||
|
40 40 | TimeSensorAsync,
|
||||||
|
41 41 | )
|
||||||
|
42 |-from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.sensors.filesystem import FileSensor
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:52:1: AIR312 [*] `airflow.sensors.time_sensor.TimeSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
50 | ExternalTaskSensor()
|
||||||
49 | FileSensor()
|
51 | FileSensor()
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
52 | TimeSensor()
|
||||||
| ^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^ AIR312
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
53 | TimeSensorAsync()
|
||||||
52 | DayOfWeekSensor()
|
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeSensor` from `airflow.providers.standard.sensors.time` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeSensor` from `airflow.providers.standard.sensors.time` instead.
|
||||||
|
|
||||||
AIR312.py:50:15: AIR312 `airflow.sensors.time_sensor.TimeSensorAsync` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
36 36 | ExternalTaskSensor,
|
||||||
|
37 37 | )
|
||||||
|
38 38 | from airflow.sensors.time_sensor import (
|
||||||
|
39 |- TimeSensor,
|
||||||
|
40 39 | TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.sensors.time import TimeSensor
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:53:1: AIR312 [*] `airflow.sensors.time_sensor.TimeSensorAsync` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
48 | ExternalTaskMarker(), ExternalTaskSensor()
|
51 | FileSensor()
|
||||||
49 | FileSensor()
|
52 | TimeSensor()
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
53 | TimeSensorAsync()
|
||||||
| ^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^ AIR312
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
54 |
|
||||||
52 | DayOfWeekSensor()
|
55 | from airflow.sensors.time_delta import (
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeSensorAsync` from `airflow.providers.standard.sensors.time` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeSensorAsync` from `airflow.providers.standard.sensors.time` instead.
|
||||||
|
|
||||||
AIR312.py:51:1: AIR312 `airflow.sensors.time_delta.TimeDeltaSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
37 37 | )
|
||||||
|
38 38 | from airflow.sensors.time_sensor import (
|
||||||
|
39 39 | TimeSensor,
|
||||||
|
40 |- TimeSensorAsync,
|
||||||
|
41 40 | )
|
||||||
|
42 41 | from airflow.sensors.filesystem import FileSensor
|
||||||
|
42 |+from airflow.providers.standard.sensors.time import TimeSensorAsync
|
||||||
|
43 43 |
|
||||||
|
44 44 | BranchPythonOperator()
|
||||||
|
45 45 | PythonOperator()
|
||||||
|
|
||||||
|
AIR312.py:70:1: AIR312 [*] `airflow.sensors.time_delta.TimeDeltaSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
49 | FileSensor()
|
68 | )
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
69 |
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
70 | TimeDeltaSensor()
|
||||||
| ^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^ AIR312
|
||||||
52 | DayOfWeekSensor()
|
71 | TimeDeltaSensorAsync()
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
72 | DayOfWeekSensor()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeDeltaSensor` from `airflow.providers.standard.sensors.time_delta` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeDeltaSensor` from `airflow.providers.standard.sensors.time_delta` instead.
|
||||||
|
|
||||||
AIR312.py:51:20: AIR312 `airflow.sensors.time_delta.TimeDeltaSensorAsync` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
53 53 | TimeSensorAsync()
|
||||||
|
54 54 |
|
||||||
|
55 55 | from airflow.sensors.time_delta import (
|
||||||
|
56 |- TimeDeltaSensor,
|
||||||
|
57 56 | TimeDeltaSensorAsync,
|
||||||
|
58 57 | )
|
||||||
|
59 58 | from airflow.sensors.weekday import DayOfWeekSensor
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
66 65 | DateTimeTrigger,
|
||||||
|
67 66 | TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.sensors.time_delta import TimeDeltaSensor
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
||||||
|
AIR312.py:71:1: AIR312 [*] `airflow.sensors.time_delta.TimeDeltaSensorAsync` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
49 | FileSensor()
|
70 | TimeDeltaSensor()
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
71 | TimeDeltaSensorAsync()
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
| ^^^^^^^^^^^^^^^^^^^^ AIR312
|
||||||
| ^^^^^^^^^^^^^^^^^^^^ AIR312
|
72 | DayOfWeekSensor()
|
||||||
52 | DayOfWeekSensor()
|
73 | DagStateTrigger()
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeDeltaSensorAsync` from `airflow.providers.standard.sensors.time_delta` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `TimeDeltaSensorAsync` from `airflow.providers.standard.sensors.time_delta` instead.
|
||||||
|
|
||||||
AIR312.py:52:1: AIR312 `airflow.sensors.weekday.DayOfWeekSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
54 54 |
|
||||||
|
55 55 | from airflow.sensors.time_delta import (
|
||||||
|
56 56 | TimeDeltaSensor,
|
||||||
|
57 |- TimeDeltaSensorAsync,
|
||||||
|
58 57 | )
|
||||||
|
59 58 | from airflow.sensors.weekday import DayOfWeekSensor
|
||||||
|
60 59 | from airflow.triggers.external_task import (
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
66 65 | DateTimeTrigger,
|
||||||
|
67 66 | TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.sensors.time_delta import TimeDeltaSensorAsync
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
||||||
|
AIR312.py:72:1: AIR312 [*] `airflow.sensors.weekday.DayOfWeekSensor` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
50 | TimeSensor(), TimeSensorAsync()
|
70 | TimeDeltaSensor()
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
71 | TimeDeltaSensorAsync()
|
||||||
52 | DayOfWeekSensor()
|
72 | DayOfWeekSensor()
|
||||||
| ^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^ AIR312
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
73 | DagStateTrigger()
|
||||||
54 | FileTrigger()
|
74 | WorkflowTrigger()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `DayOfWeekSensor` from `airflow.providers.standard.sensors.weekday` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.1` and use `DayOfWeekSensor` from `airflow.providers.standard.sensors.weekday` instead.
|
||||||
|
|
||||||
AIR312.py:53:1: AIR312 `airflow.triggers.external_task.DagStateTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
56 56 | TimeDeltaSensor,
|
||||||
|
57 57 | TimeDeltaSensorAsync,
|
||||||
|
58 58 | )
|
||||||
|
59 |-from airflow.sensors.weekday import DayOfWeekSensor
|
||||||
|
60 59 | from airflow.triggers.external_task import (
|
||||||
|
61 60 | DagStateTrigger,
|
||||||
|
62 61 | WorkflowTrigger,
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
66 65 | DateTimeTrigger,
|
||||||
|
67 66 | TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.sensors.weekday import DayOfWeekSensor
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
||||||
|
AIR312.py:73:1: AIR312 [*] `airflow.triggers.external_task.DagStateTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
71 | TimeDeltaSensorAsync()
|
||||||
52 | DayOfWeekSensor()
|
72 | DayOfWeekSensor()
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
73 | DagStateTrigger()
|
||||||
| ^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^ AIR312
|
||||||
54 | FileTrigger()
|
74 | WorkflowTrigger()
|
||||||
55 | DateTimeTrigger(), TimeDeltaTrigger()
|
75 | FileTrigger()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `DagStateTrigger` from `airflow.providers.standard.triggers.external_task` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `DagStateTrigger` from `airflow.providers.standard.triggers.external_task` instead.
|
||||||
|
|
||||||
AIR312.py:53:20: AIR312 `airflow.triggers.external_task.WorkflowTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
58 58 | )
|
||||||
|
59 59 | from airflow.sensors.weekday import DayOfWeekSensor
|
||||||
|
60 60 | from airflow.triggers.external_task import (
|
||||||
|
61 |- DagStateTrigger,
|
||||||
|
62 61 | WorkflowTrigger,
|
||||||
|
63 62 | )
|
||||||
|
64 63 | from airflow.triggers.file import FileTrigger
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
66 65 | DateTimeTrigger,
|
||||||
|
67 66 | TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.triggers.external_task import DagStateTrigger
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
||||||
|
AIR312.py:74:1: AIR312 [*] `airflow.triggers.external_task.WorkflowTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
51 | TimeDeltaSensor(), TimeDeltaSensorAsync()
|
72 | DayOfWeekSensor()
|
||||||
52 | DayOfWeekSensor()
|
73 | DagStateTrigger()
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
74 | WorkflowTrigger()
|
||||||
| ^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^ AIR312
|
||||||
54 | FileTrigger()
|
75 | FileTrigger()
|
||||||
55 | DateTimeTrigger(), TimeDeltaTrigger()
|
76 | DateTimeTrigger()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `WorkflowTrigger` from `airflow.providers.standard.triggers.external_task` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `WorkflowTrigger` from `airflow.providers.standard.triggers.external_task` instead.
|
||||||
|
|
||||||
AIR312.py:54:1: AIR312 `airflow.triggers.file.FileTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
59 59 | from airflow.sensors.weekday import DayOfWeekSensor
|
||||||
|
60 60 | from airflow.triggers.external_task import (
|
||||||
|
61 61 | DagStateTrigger,
|
||||||
|
62 |- WorkflowTrigger,
|
||||||
|
63 62 | )
|
||||||
|
64 63 | from airflow.triggers.file import FileTrigger
|
||||||
|
65 64 | from airflow.triggers.temporal import (
|
||||||
|
66 65 | DateTimeTrigger,
|
||||||
|
67 66 | TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.triggers.external_task import WorkflowTrigger
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
||||||
|
AIR312.py:75:1: AIR312 [*] `airflow.triggers.file.FileTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
52 | DayOfWeekSensor()
|
73 | DagStateTrigger()
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
74 | WorkflowTrigger()
|
||||||
54 | FileTrigger()
|
75 | FileTrigger()
|
||||||
| ^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^ AIR312
|
||||||
55 | DateTimeTrigger(), TimeDeltaTrigger()
|
76 | DateTimeTrigger()
|
||||||
|
77 | TimeDeltaTrigger()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `FileTrigger` from `airflow.providers.standard.triggers.file` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `FileTrigger` from `airflow.providers.standard.triggers.file` instead.
|
||||||
|
|
||||||
AIR312.py:55:1: AIR312 `airflow.triggers.temporal.DateTimeTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
61 61 | DagStateTrigger,
|
||||||
|
62 62 | WorkflowTrigger,
|
||||||
|
63 63 | )
|
||||||
|
64 |-from airflow.triggers.file import FileTrigger
|
||||||
|
65 64 | from airflow.triggers.temporal import (
|
||||||
|
66 65 | DateTimeTrigger,
|
||||||
|
67 66 | TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.triggers.file import FileTrigger
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
||||||
|
AIR312.py:76:1: AIR312 [*] `airflow.triggers.temporal.DateTimeTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
74 | WorkflowTrigger()
|
||||||
54 | FileTrigger()
|
75 | FileTrigger()
|
||||||
55 | DateTimeTrigger(), TimeDeltaTrigger()
|
76 | DateTimeTrigger()
|
||||||
| ^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^ AIR312
|
||||||
|
77 | TimeDeltaTrigger()
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `DateTimeTrigger` from `airflow.providers.standard.triggers.temporal` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `DateTimeTrigger` from `airflow.providers.standard.triggers.temporal` instead.
|
||||||
|
|
||||||
AIR312.py:55:20: AIR312 `airflow.triggers.temporal.TimeDeltaTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
ℹ Unsafe fix
|
||||||
|
63 63 | )
|
||||||
|
64 64 | from airflow.triggers.file import FileTrigger
|
||||||
|
65 65 | from airflow.triggers.temporal import (
|
||||||
|
66 |- DateTimeTrigger,
|
||||||
|
67 66 | TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.triggers.temporal import DateTimeTrigger
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
||||||
|
AIR312.py:77:1: AIR312 [*] `airflow.triggers.temporal.TimeDeltaTrigger` is deprecated and moved into `standard` provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version.
|
||||||
|
|
|
|
||||||
53 | DagStateTrigger(), WorkflowTrigger()
|
75 | FileTrigger()
|
||||||
54 | FileTrigger()
|
76 | DateTimeTrigger()
|
||||||
55 | DateTimeTrigger(), TimeDeltaTrigger()
|
77 | TimeDeltaTrigger()
|
||||||
| ^^^^^^^^^^^^^^^^ AIR312
|
| ^^^^^^^^^^^^^^^^ AIR312
|
||||||
|
|
|
|
||||||
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `TimeDeltaTrigger` from `airflow.providers.standard.triggers.temporal` instead.
|
= help: Install `apache-airflow-providers-standard>=0.0.3` and use `TimeDeltaTrigger` from `airflow.providers.standard.triggers.temporal` instead.
|
||||||
|
|
||||||
|
ℹ Unsafe fix
|
||||||
|
64 64 | from airflow.triggers.file import FileTrigger
|
||||||
|
65 65 | from airflow.triggers.temporal import (
|
||||||
|
66 66 | DateTimeTrigger,
|
||||||
|
67 |- TimeDeltaTrigger,
|
||||||
|
68 67 | )
|
||||||
|
68 |+from airflow.providers.standard.triggers.temporal import TimeDeltaTrigger
|
||||||
|
69 69 |
|
||||||
|
70 70 | TimeDeltaSensor()
|
||||||
|
71 71 | TimeDeltaSensorAsync()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue