ruff/crates/ruff
Aleksei Latyshev 9cdc578dd9
[`flake8-builtins`] Implement import, lambda, and module shadowing (#12546)
## Summary

<!-- What's the purpose of the change? What does it do, and why? -->
Extend `flake8-builtins` to imports, lambda-arguments, and modules to be
consistent with original checker
[flake8_builtins](https://github.com/gforcada/flake8-builtins/blob/main/flake8_builtins.py).

closes #12540 

## Details

- Implement builtin-import-shadowing (A004)
- Stop tracking imports shadowing in builtin-variable-shadowing (A001)
in preview mode.
- Implement builtin-lambda-argument-shadowing (A005)
- Implement builtin-module-shadowing (A006)
  - Add new option `linter.flake8_builtins.builtins_allowed_modules`

## Test Plan

cargo test
2024-07-29 01:42:42 +00:00
..
resources/test/fixtures Rename `ruff_cli` crate to `ruff` (#9557) 2024-01-16 17:47:01 -05:00
src Consider `--preview` flag for `server` subcommand (#12208) 2024-07-18 11:05:01 +05:30
tests [`flake8-builtins`] Implement import, lambda, and module shadowing (#12546) 2024-07-29 01:42:42 +00:00
Cargo.toml Bump version to 0.5.5 (#12510) 2024-07-25 20:17:01 +05:30
build.rs Rename `ruff_cli` crate to `ruff` (#9557) 2024-01-16 17:47:01 -05:00