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