Skip to content

Respect uv.lock in tox envs#2983

Open
sloria wants to merge 1 commit into
devfrom
tox-uv-setup
Open

Respect uv.lock in tox envs#2983
sloria wants to merge 1 commit into
devfrom
tox-uv-setup

Conversation

@sloria

@sloria sloria commented Jun 18, 2026

Copy link
Copy Markdown
Member

using the uv-venv-lock-runner
NOTE: dev-only envs that aren't run in CI like docs-serve still keep unpinned deps and use runner = uv-venv-runner to keep the old behavior

closes #2981

using the uv-venv-lock-runner
NOTE: dev-only envs that aren't run in CI like `docs-serve`
still keep unpinned deps and use `runner = uv-venv-runner`
to keep the old behavior
Comment thread tox.ini
; Below tasks are for development only (not run in CI)

[testenv:docs-serve]
runner = uv-venv-runner

@sloria sloria Jun 18, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm keeping these dev-only envs on the old behavior, which is to leave these CLIs (sphinx-autobuild, restview) unpinned.

i'm not 100% this is the right thing to do...mostly following attr's lead here

@sloria

sloria commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

attn @lafrech @sirosen if you want to take a look. will plan to merge on Saturday if no objections

Comment thread pyproject.toml
Comment on lines +46 to +47
lint = ["pre-commit>=3.5,<5.0"]
mypy = ["mypy>=1.14.1", "types-simplejson"]

@sloria sloria Jun 18, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff makes this change look bigger than it actually is cuz of autoformatting. lint and mypy are the relevant additions here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use uv.lock in tox testenv

1 participant