From f853ca3914561eae962592323473089247a283e8 Mon Sep 17 00:00:00 2001 From: Ken Brewer Date: Wed, 18 Oct 2023 14:35:28 -0400 Subject: [PATCH] fix: replace deprecated `poetry lock` (#98) --- Makefile | 2 +- {{cookiecutter.project_name}}/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0dbed3d..5ef727d 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ install: ## Install the poetry environment .PHONY: check check: ## Run code quality tools. @echo "🚀 Checking Poetry lock file consistency with 'pyproject.toml': Running poetry lock --check" - @poetry lock --check + @poetry check --lock @echo "🚀 Linting code: Running pre-commit" @poetry run pre-commit run -a @echo "🚀 Linting with ruff" diff --git a/{{cookiecutter.project_name}}/Makefile b/{{cookiecutter.project_name}}/Makefile index 5406d96..cc4fad6 100644 --- a/{{cookiecutter.project_name}}/Makefile +++ b/{{cookiecutter.project_name}}/Makefile @@ -8,7 +8,7 @@ install: ## Install the poetry environment and install the pre-commit hooks .PHONY: check check: ## Run code quality tools. @echo "🚀 Checking Poetry lock file consistency with 'pyproject.toml': Running poetry lock --check" - @poetry lock --check + @poetry check --lock @echo "🚀 Linting code: Running pre-commit" @poetry run pre-commit run -a @echo "🚀 Static type checking: Running mypy"