update makes

This commit is contained in:
Jakub Miazek 2022-11-12 18:22:22 +01:00
parent 5c76702bc8
commit ab9f647d32

View File

@ -38,20 +38,17 @@ safety: ## Check project and dependencies with safety https://github.com/pyupio/
.PHONY: py-upgrade .PHONY: py-upgrade
py-upgrade: ## Upgrade project py files with pyupgrade library for python version 3.10 py-upgrade: ## Upgrade project py files with pyupgrade library for python version 3.10
pyupgrade --py310-plus `find the_app -name "*.py"` pyupgrade --py310-plus `find app -name "*.py"`
.PHONY: lint .PHONY: lint
lint: ## Lint project code. lint: ## Lint project code.
isort the_app tests --check ruff .
flake8 --config .flake8 the_app tests
mypy the_app tests
black the_app tests --line-length=120 --check --diff
.PHONY: format .PHONY: format
format: ## Format project code. format: ## Format project code.
isort the_app tests isort app tests
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place the_app tests --exclude=__init__.py autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place app tests --exclude=__init__.py
black the_app tests --line-length=120 black app tests --line-length=120
.PHONY: slim-build .PHONY: slim-build
slim-build: ## with power of docker-slim build smaller and safer images slim-build: ## with power of docker-slim build smaller and safer images