diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0834efd..2bc688d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -75,5 +75,5 @@ repos: files: ^requirements\.in|constraints\.txt$ - id: pip-compile name: pip-compile requirements-dev.txt - args: [-q, --allow-unsafe, --no-strip-extras, requirements-dev.in] + args: [-q, --allow-unsafe, --no-strip-extras, --constraint=constraints.txt, requirements-dev.in] files: ^requirements-dev\.(in|txt)$ diff --git a/requirements-dev.in b/requirements-dev.in index 284d828..39adad5 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -1,4 +1,3 @@ --c constraints.txt django-debug-toolbar>=3.2 pytest>=6.0 pytest-cov>=3.0.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index d89e263..87c7453 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,7 +2,7 @@ # This file is autogenerated by pip-compile with Python 3.12 # by the following command: # -# pip-compile --allow-unsafe requirements-dev.in +# pip-compile --allow-unsafe --constraint=constraints.txt requirements-dev.in # asgiref==3.8.1 # via diff --git a/tasks.py b/tasks.py index 16b4c7d..2dfa0f1 100644 --- a/tasks.py +++ b/tasks.py @@ -31,7 +31,7 @@ def compile_dependencies(ctx: Context, *, update: bool = False, sync: bool = Fal echo=True, ) ctx.run( - f"pip-compile {common_args} --no-strip-extras requirements-dev.in", + f"pip-compile {common_args} --no-strip-extras -c constraints.txt requirements-dev.in", pty=True, echo=True, )