ruff/crates/ruff/tests
Brent Westbrook a04347b7a3 [flake8-builtins] Default to non-strict checking (A005) (#16125)
## Summary

This PR changes the default value of
`lint.flake8-builtins.builtins-strict-checking` added in
https://github.com/astral-sh/ruff/pull/15951 from `true` to `false`.
This also allows simplifying the default option logic and removes the
dependence on preview mode.

https://github.com/astral-sh/ruff/issues/15399 was already closed by
#15951, but this change will finalize the behavior mentioned in
https://github.com/astral-sh/ruff/issues/15399#issuecomment-2587017147.

As an example, strict checking flags modules based on their last
component, so `utils/logging.py` triggers A005. Non-strict checking
checks the path to the module, so `utils/logging.py` is allowed (this is
the example and desired behavior from #15399 exactly) but a top-level
`logging.py` or `logging/__init__.py` is still disallowed.

## Test Plan

Existing tests from #15951 and #16006, with the snapshot updated in
`a005_module_shadowing_strict_default` to reflect the new default.
2025-03-13 15:37:37 +01:00
..
snapshots [flake8-builtins] Default to non-strict checking (A005) (#16125) 2025-03-13 15:37:37 +01:00
analyze_graph.rs Don't skip over imports and other nodes containing nested statements in import collector (#13521) 2024-09-26 11:57:05 +00:00
config.rs nit: docs for ignore & select (#15883) 2025-02-04 10:05:41 +01:00
format.rs Formatter: Fix syntax error location in notebooks (#16499) 2025-03-04 18:00:31 +01:00
integration_test.rs test: update snapshots with just whitespace changes 2025-01-15 13:37:52 -05:00
lint.rs [flake8-builtins] Default to non-strict checking (A005) (#16125) 2025-03-13 15:37:37 +01:00
resolve_files.rs Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
show_settings.rs show-settings: Properly filter out backslashes on windows (#15612) 2025-01-20 10:57:21 +01:00
version.rs Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00