ruff/crates/ruff_linter
Brent Westbrook 88b543d73a
[flake8-builtins] Make strict module name comparison optional (A005) (#15951)
## Summary

This PR adds the configuration option
`lint.flake8-builtins.builtins-strict-checking`, which is used in A005
to determine whether the fully-qualified module name (relative to the
project root or source directories) should be checked instead of just
the final component as is currently the case.

As discussed in
https://github.com/astral-sh/ruff/issues/15399#issuecomment-2587017147,
the default value of the new option is `false` on preview, so modules
like `utils.logging` from the initial report are no longer flagged by
default. For non-preview the default is still strict checking.

## Test Plan

New A005 test module with the structure reported in #15399.

Fixes #15399
2025-02-09 19:33:03 -05:00
..
resources [ruff] Indented form feeds (RUF054) (#16049) 2025-02-09 19:23:48 -05:00
src [flake8-builtins] Make strict module name comparison optional (A005) (#15951) 2025-02-09 19:33:03 -05:00
Cargo.toml Bump version to 0.9.5 (#16002) 2025-02-06 13:24:45 -06:00