logoalt Hacker News

mark_l_watsonyesterday at 4:37 PM1 replyview on HN

Good points. Perhaps there is a way to configure uv to only use a new version if it is 24 hours old?


Replies

arwtyesterday at 11:45 PM

You can. See: https://docs.astral.sh/uv/reference/cli/#uv-run--exclude-new...

How you use it depends on your workflow. An entry like this in your pyproject.toml could suffice:

  [tool.uv]
  exclude-newer = "5 days"