Skip to content

Commit

Permalink
Ensure uv uses same constraints as pip
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Jan 21, 2025
1 parent 485451b commit b0111bd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
requires =
tox>=4.11.3
tox>=4.23.2
tox-uv>=1.19
env_list =
py
deps
Expand All @@ -27,6 +28,7 @@ pass_env =
USER
set_env =
!milestone: PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
!milestone: UV_CONSTRAINT = {toxinidir}/.config/constraints.txt
COVERAGE_COMBINED = {envdir}/.coverage
COVERAGE_FILE = {env:COVERAGE_FILE:{envdir}/.coverage.{envname}}
COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml
Expand Down Expand Up @@ -57,6 +59,7 @@ deps =
extras =
set_env =
PIP_CONSTRAINT = /dev/null
UV_CONSTRAINT = /dev/null
commands_pre =
commands =
-pre-commit run --all-files --show-diff-on-failure --hook-stage manual deps
Expand All @@ -81,8 +84,10 @@ description = Enforce quality standards under {basepython}
skip_install = true
deps =
pre-commit
pre-commit-uv>=4.1.4
set_env =
PIP_CONSTRAINT = /dev/null
UV_CONSTRAINT = /dev/null
commands =
pre-commit run --show-diff-on-failure --all-files

Expand All @@ -94,6 +99,7 @@ deps =
set_env =
{[testenv]set_env}
PIP_CONSTRAINT = /dev/null
UV_CONSTRAINT = /dev/null

[testenv:pkg]
description =
Expand Down

0 comments on commit b0111bd

Please sign in to comment.