ruff/crates/ruff_linter/src
Wei Lee dfd7f38009
[airflow]: Import modules that has been moved to airflow providers (AIR303) (#14764)
## Summary

Many core Airflow features have been deprecated and moved to Airflow
Providers since users might need to install an additional package (e.g.,
`apache-airflow-provider-fab==1.0.0`); a separate rule (AIR303) is
created for this.

As some of the changes only relate to the module/package moved, instead
of listing out all the functions, variables, and classes in a module or
a package, it warns the user to import from the new path instead of the
specific name.

The following is the ones that has been moved to
`apache-airflow-provider-fab==1.0.0`

* module moved
* `airflow.api.auth.backend.basic_auth` →
`airflow.providers.fab.auth_manager.api.auth.backend.basic_auth`
* `airflow.api.auth.backend.kerberos_auth` →
`airflow.providers.fab.auth_manager.api.auth.backend.kerberos_auth`
* `airflow.auth.managers.fab.api.auth.backend.kerberos_auth` →
`airflow.providers.fab.auth_manager.api.auth.backend.kerberos_auth`
* `airflow.auth.managers.fab.security_manager.override` →
`airflow.providers.fab.auth_manager.security_manager.override`
* classes (e.g., functions, classes) moved
* `airflow.www.security.FabAirflowSecurityManagerOverride` →
`airflow.providers.fab.auth_manager.security_manager.override.FabAirflowSecurityManagerOverride`
* `airflow.auth.managers.fab.fab_auth_manager.FabAuthManager` →
`airflow.providers.fab.auth_manager.security_manager.FabAuthManager`

## Test Plan


A test fixture has been included for the rule.
2024-12-13 10:38:07 +01:00
..
checkers [airflow]: Import modules that has been moved to airflow providers (AIR303) (#14764) 2024-12-13 10:38:07 +01:00
comments Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
cst Wrap expressions in parentheses when negating (#10346) 2024-03-11 18:20:55 -04:00
docstrings Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
fix Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
importer Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
message Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
registry Increase rule set size (#14689) 2024-11-30 15:12:10 +01:00
rules [airflow]: Import modules that has been moved to airflow providers (AIR303) (#14764) 2024-12-13 10:38:07 +01:00
settings Change default for Python version from 3.8 to 3.9 (#13896) 2024-11-20 13:11:51 +01:00
snapshots [ruff] Detect redirected-noqa in file-level comments (RUF101) (#14635) 2024-11-27 18:25:47 +01:00
codes.rs [airflow]: Import modules that has been moved to airflow providers (AIR303) (#14764) 2024-12-13 10:38:07 +01:00
directives.rs Use bitshift consistently for bitflag definitions (#14265) 2024-11-11 10:20:17 +00:00
doc_lines.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
fs.rs Struct not tuple for compiled per-file ignores (#10864) 2024-04-11 13:47:57 -06:00
lib.rs Detect empty implicit namespace packages (#14236) 2024-11-09 22:03:34 -05:00
line_width.rs Upgrade to Rust 1.78 (#11260) 2024-05-03 12:46:21 +00:00
linter.rs Detect empty implicit namespace packages (#14236) 2024-11-09 22:03:34 -05:00
locator.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
logging.rs Bump MSRV to Rust 1.80 (#13826) 2024-10-20 10:55:36 +02:00
noqa.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
package.rs Detect empty implicit namespace packages (#14236) 2024-11-09 22:03:34 -05:00
packaging.rs Nested namespace packages support (#10541) 2024-03-24 22:53:32 -04:00
pyproject_toml.rs Update pyproject-toml to 0.8 (#8351) 2023-10-30 10:05:37 +00:00
registry.rs [ruff 0.8][flake8-type-checking] Rename TCH to TC (#14438) 2024-11-20 13:11:51 +01:00
renamer.rs [ruff] Teach autofix for used-dummy-variable about TypeVars etc. (RUF052) (#14819) 2024-12-06 17:05:50 +00:00
rule_redirects.rs [ruff 0.8][flake8-type-checking] Rename TCH to TC (#14438) 2024-11-20 13:11:51 +01:00
rule_selector.rs Added ignoring deprecated rules for --select=ALL (#10497) 2024-06-27 13:44:11 +02:00
source_kind.rs Simplify iteration idioms (#13834) 2024-10-20 22:25:27 +01:00
test.rs Detect empty implicit namespace packages (#14236) 2024-11-09 22:03:34 -05:00
text_helpers.rs Handle non-printable characters in diff view (#11687) 2024-06-08 06:22:03 +00:00
upstream_categories.rs Fix pylint upstream categories not showing in docs (#10441) 2024-03-18 01:27:39 +00:00