mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
init codebase
This commit is contained in:
34
Makefile
Normal file
34
Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
.PHONY: help
|
||||
help: ## Show this help
|
||||
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
.PHONY: build
|
||||
build: ## Build project with compose
|
||||
docker-compose build
|
||||
|
||||
.PHONY: up
|
||||
up: ## Run project with compose
|
||||
docker-compose up
|
||||
|
||||
.PHONY: down
|
||||
down: ## Reset project containers with compose
|
||||
docker-compose down
|
||||
|
||||
.PHONY: lock
|
||||
lock: ## Refresh pipfile.lock
|
||||
pipenv lock --pre
|
||||
|
||||
.PHONY: requirements
|
||||
requirements: ## Refresh requirements.txt from pipfile.lock
|
||||
pipenv lock -r > requirements.txt
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run project tests
|
||||
docker-compose run --rm web pytest
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Linter project code.
|
||||
isort .
|
||||
black --fast --line-length=120 .
|
||||
mypy --ignore-missing-imports the_app
|
||||
flake8 --config .flake8 .
|
||||
Reference in New Issue
Block a user