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
{{ message }}
Repository navigation
Commit 6d0e243
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
Closes#21956
**Root cause:** When a .ruff.toml, ruff.toml config was discovered via
ancestor search, Ruff eagerly derived target-version from
requires-python in pyproject.toml during config loading. That fallback
value then participated in config merging and incorrectly overrode an
explicit target-version defined in an extended config.
**Fix:** Defer the requires-python fallback until after the full extend
chain across .ruff.toml / ruff.toml is merged, and apply it only if
target-version is still unset.
**Impact:** Explicit target-version settings in extended configs are now
respected, requires-python is only used as a fallback.
## Test Plan
Added a new test. I was useful to validate the fix but may be redundant
to keep, lmk if you would love me to remove it
---------
Co-authored-by: dylwil3 <dylwil3@gmail.com>
0 commit comments