You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
#15951 from `true` to `false`.
This also allows simplifying the default option logic and removes the
dependence on preview mode.
#15399 was already closed by
#15951, but this change will finalize the behavior mentioned in
#15399 (comment).
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.
0 commit comments