ruff/crates/ruff_workspace/src
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
..
configuration.rs [pytest] Reverse PT001 and PT0023 defaults (#12106) 2024-07-01 02:06:11 +00:00
lib.rs Add most formatter options to ruff.toml / pyproject.toml (#7566) 2023-09-22 15:47:57 +00:00
options.rs [flake8-builtins] Implement import, lambda, and module shadowing (#12546) 2024-07-29 01:42:42 +00:00
options_base.rs Add --output-format to ruff config CLI (#11438) 2024-05-15 22:17:33 -04:00
pyproject.rs Read user configuration from ~/.config/ruff/ruff.toml on macOS (#11115) 2024-06-27 13:44:11 +02:00
resolver.rs Use more threads when discovering python files (#12258) 2024-07-10 09:29:17 +02:00
settings.rs Remove output format text and use format full by default (#12010) 2024-06-27 13:44:11 +02:00