From 28af397f10cacd76d48e122c73b1f43affa9995a Mon Sep 17 00:00:00 2001 From: grillazz Date: Thu, 30 Sep 2021 09:20:11 +0200 Subject: [PATCH] add pyupgrade to make --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 5283681..37c4b0e 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,10 @@ test: ## Run project tests safety: ## Check project and dependencies with safety https://github.com/pyupio/safety docker-compose run --rm app safety check +.PHONY: py-upgrade +py-upgrade: ## Upgrade project py files with pyupgrade library for python version 3.9 + docker-compose run --rm app pyupgrade --py39-plus `find . -name "*.py"` + .PHONY: lint lint: ## Lint project code. isort the_app tests --check