From 0d62cf12a21991ef268e721a00a6fdcb4b395e96 Mon Sep 17 00:00:00 2001 From: grillazz Date: Sat, 31 Jul 2021 12:42:08 +0200 Subject: [PATCH] update Makefile --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 35db4e8..0b7283c 100644 --- a/Makefile +++ b/Makefile @@ -32,10 +32,18 @@ safety: ## Check project and dependencies with safety https://github.com/pyupio/ .PHONY: lint lint: ## Lint project code. - isort . - black --fast --line-length=120 . - mypy --ignore-missing-imports the_app - flake8 --config .flake8 . + isort the_app tests --check + flake8 --config .flake8 the_app tests + mypy the_app tests + black the_app tests --line-length=120 --check --diff + + +.PHONY: format +format: ## Format project code. + isort the_app tests + autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place the_app tests --exclude=__init__.py + black the_app tests --line-length=120 + .PHONY: secret secret: ## Generate random secret.