update Makefile

This commit is contained in:
grillazz 2021-07-31 12:42:08 +02:00
parent 2ebc851e28
commit 0d62cf12a2

View File

@ -32,10 +32,18 @@ safety: ## Check project and dependencies with safety https://github.com/pyupio/
.PHONY: lint .PHONY: lint
lint: ## Lint project code. lint: ## Lint project code.
isort . isort the_app tests --check
black --fast --line-length=120 . flake8 --config .flake8 the_app tests
mypy --ignore-missing-imports the_app mypy the_app tests
flake8 --config .flake8 . 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 .PHONY: secret
secret: ## Generate random secret. secret: ## Generate random secret.