From 62b35991f1dbdd2bcb084a62bc42fc895048a46e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 4 Sep 2023 22:02:12 +0200 Subject: [PATCH] fix dependencies --- .pre-commit-config.yaml | 4 ++-- requirements-dev.in | 2 ++ requirements-dev.txt | 2 ++ tasks.py | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 849b2cb..aa4bfe9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,7 +67,7 @@ repos: hooks: - id: pip-compile name: pip-compile requirements.txt - args: [-q, --allow-unsafe, requirements.in] + args: [-q, --allow-unsafe, --no-strip-extras, requirements.in] files: ^requirements\.(in|txt)$ - id: pip-compile name: pip-compile constraints.txt @@ -75,5 +75,5 @@ repos: files: ^requirements\.in|constraints\.txt$ - id: pip-compile name: pip-compile requirements-dev.txt - args: [-q, --allow-unsafe, requirements-dev.in] + args: [-q, --allow-unsafe, --no-strip-extras, requirements-dev.in] files: ^requirements-dev\.(in|txt)$ diff --git a/requirements-dev.in b/requirements-dev.in index 284d828..52ab012 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -4,6 +4,8 @@ pytest>=6.0 pytest-cov>=3.0.0 pytest-django>=4.1.0 pytest-selenium>=4.0.0 +# pytest-selenium 4.0.1 has an implicit dependency on `py` +py>=1.11.0 pre-commit>=2.1 model-bakery>=1.3.1 bpython>=0.22.1 diff --git a/requirements-dev.txt b/requirements-dev.txt index 307a37a..a3e910b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -114,6 +114,8 @@ pluggy==1.3.0 # via pytest pre-commit==3.4.0 # via -r requirements-dev.in +py==1.11.0 + # via -r requirements-dev.in pygments==2.16.1 # via bpython pyproject-hooks==1.0.0 diff --git a/tasks.py b/tasks.py index 8ed1734..16b4c7d 100644 --- a/tasks.py +++ b/tasks.py @@ -21,7 +21,7 @@ def compile_dependencies(ctx: Context, *, update: bool = False, sync: bool = Fal common_args += " --upgrade" with ctx.cd(BASE_DIR): ctx.run( - f"pip-compile {common_args} requirements.in", + f"pip-compile {common_args} --no-strip-extras requirements.in", pty=True, echo=True, ) @@ -31,7 +31,7 @@ def compile_dependencies(ctx: Context, *, update: bool = False, sync: bool = Fal echo=True, ) ctx.run( - f"pip-compile {common_args} requirements-dev.in", + f"pip-compile {common_args} --no-strip-extras requirements-dev.in", pty=True, echo=True, )