[TC-642] modify template (#3)
https://eva.avroid.tech/desk/Task/TC-642#be-dorabotat-shablon-servisov-backend Дорабатываем шаблон сервисов по требованиям: https://eva.avroid.tech/project/Document/DOC-002710#trebovanija-k-versijam Reviewed-on: https://git.avroid.tech/Templates/template-backend-service/pulls/3 Reviewed-by: Victor Stratov <victor.stratov@avroid.team> Reviewed-by: Petr Brovchenko <petr.brovchenko@avroid.team> Co-authored-by: Nadezhda <nadezhda.lavrentieva@avroid.team> Co-committed-by: Nadezhda <nadezhda.lavrentieva@avroid.team>
This commit is contained in:
committed by
Nadezhda Lavrentieva
parent
a4b2c99c25
commit
ac441a108b
14
Makefile
14
Makefile
@@ -16,16 +16,22 @@ lint:
|
||||
@poetry run mypy $(SERVICE_DIR)/
|
||||
|
||||
format:
|
||||
@poetry run ruff format $(SERVICE_DIR)/ tests/
|
||||
@poetry run ruff format $(SERVICE_DIR)/ tests/ migrations/
|
||||
|
||||
start:
|
||||
@poetry run python -m $(SERVICE_DIR).api_app
|
||||
|
||||
migration:
|
||||
@poetry run alembic revision --autogenerate
|
||||
create-migrations:
|
||||
@poetry run alembic revision --autogenerate -m "${COMMENT}"
|
||||
|
||||
migrate:
|
||||
apply-migrations:
|
||||
@poetry run alembic upgrade head
|
||||
|
||||
revert-migrations:
|
||||
@poetry run alembic downgrade $(REVISION)
|
||||
|
||||
revert-last-migration:
|
||||
@poetry run alembic downgrade head-1
|
||||
|
||||
test:
|
||||
@poetry run pytest tests --cov $(SERVICE_DIR) -vv
|
||||
|
||||
Reference in New Issue
Block a user