Files
ruff/scripts/setup_primer_project.py.lock
T
Alex Waygood 6cbd59b511 Set exclude-newer = "7 days" in our PEP-723 scripts (#25285)
## Summary

This helps reduce spurious changes to the lockfile if you run these
scripts on a machine that has a global `exclude-newer` value set in a
`~/.config/uv.toml` file or similar. It also seems good more generally
to set an `exclude-newer` value for these scripts: dependency cooldowns
are better for security.

Note that if the machine, hypothetically, also set `UV_DEFAULT_INDEX` as
an environment variable to something other than `pypi.org/simple`, there
would still be changes to the lockfile, so this change may be necessary
but not sufficient for lockfile stability on _certain_ corporate
machines.

## Test Plan

I ensured that the `UV_DEFAULT_INDEX` environment variable was set to
`pypi.org/simple` on my machine and then ran `mdtest.py` using `uv run`.
I didn't run `setup_primer_project.py`, but I did lock it using `uv lock
--script`.
2026-05-21 11:18:48 +00:00

16 lines
501 B
Plaintext

version = 1
revision = 3
requires-python = ">=3.11"
[options]
exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values.
exclude-newer-span = "P7D"
[manifest]
requirements = [{ name = "mypy-primer", git = "https://github.com/hauntsaninja/mypy_primer" }]
[[package]]
name = "mypy-primer"
version = "0.1.0"
source = { git = "https://github.com/hauntsaninja/mypy_primer#05f73ec3d85bb4f55676f3c57f2c3e5136228977" }