Files
Charlie Marsh 6e928c0f3b Allow disabling exclude-newer (#19934)
## Summary

Prior to this change, `--exclude-newer` and `UV_EXCLUDE_NEWER` accepted
only a date or duration. This meant a cutoff configured in
`pyproject.toml` or `uv.toml` could be replaced with another cutoff, but
could not be disabled from a higher-priority CLI or environment setting.

This treats the global setting as an explicit enabled-or-disabled
override until configuration precedence has been resolved.
`--exclude-newer false`, `UV_EXCLUDE_NEWER=false`, and `exclude-newer =
false` now remove the global cutoff while preserving package- and
index-specific overrides. Tool receipts retain the disabled state, and
the configuration schema and documentation reflect the new value.

The regression coverage verifies CLI, environment, and TOML overrides
and ensures the resulting lockfile omits the global `exclude-newer`
option.

Closes https://github.com/astral-sh/uv/issues/19929.
2026-06-21 20:15:33 -04:00
..
2026-06-19 10:42:39 -07:00