From 49961123104ad4b4a1791b4b7b46f849d7b59942 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 14 Mar 2023 10:58:41 +0100 Subject: [PATCH] Remove hashes from dependencies --- {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 4 ++-- {{cookiecutter.project_slug}}/tasks.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index ba1e2a5..6f38ab5 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -67,7 +67,7 @@ repos: hooks: - id: pip-compile name: pip-compile requirements.txt - args: [-q, --allow-unsafe, --resolver=backtracking, --generate-hashes, requirements.in] + args: [-q, --allow-unsafe, --resolver=backtracking, 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, --resolver=backtracking, --generate-hashes, requirements-dev.in] + args: [-q, --allow-unsafe, --resolver=backtracking, requirements-dev.in] files: ^requirements-dev\.(in|txt)$ diff --git a/{{cookiecutter.project_slug}}/tasks.py b/{{cookiecutter.project_slug}}/tasks.py index a9b5acf..da1a1cb 100644 --- a/{{cookiecutter.project_slug}}/tasks.py +++ b/{{cookiecutter.project_slug}}/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} --generate-hashes requirements.in", + f"pip-compile {common_args} 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} --generate-hashes requirements-dev.in", + f"pip-compile {common_args} requirements-dev.in", pty=True, echo=True, )