mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
update makes
This commit is contained in:
parent
5c76702bc8
commit
ab9f647d32
13
Makefile
13
Makefile
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user