From 37225504f43ab55282c118bb2ea9d645ac2d4628 Mon Sep 17 00:00:00 2001 From: Maksim Zayats Date: Sun, 15 Mar 2026 12:46:39 +0300 Subject: [PATCH] chore: set poetry executable as an environment variable in Makefile --- {{cookiecutter.project_name}}/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/{{cookiecutter.project_name}}/Makefile b/{{cookiecutter.project_name}}/Makefile index a6966f8..41a8d58 100644 --- a/{{cookiecutter.project_name}}/Makefile +++ b/{{cookiecutter.project_name}}/Makefile @@ -1,19 +1,20 @@ SHELL := /usr/bin/env bash +POETRY ?= poetry .PHONY: lint lint: - poetry run ruff check --exit-non-zero-on-fix - poetry run ruff format --check --diff - poetry run flake8 . - poetry run mypy . + $(POETRY) run ruff check --exit-non-zero-on-fix + $(POETRY) run ruff format --check --diff + $(POETRY) run flake8 . + $(POETRY) run mypy . .PHONY: unit unit: - poetry run pytest + $(POETRY) run pytest .PHONY: package package: - poetry run pip check + $(POETRY) run pip check .PHONY: test test: lint package unit