-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (34 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# --- Help Menu ---
.PHONY: help
help:
@echo Usage: make [COMMAND]
@echo ㅤ
@echo Available commands:
@echo ruff Run ruff check
@echo lint Reformat code
@echo generate Generate alembic migrations
@echo migrate Migrate with alembic
@echo worker Run taskiq worker script
@echo scheduler RUN taskiq scheduler script
# --- Linters & Checkers ---
.PHONY: ruff
ruff:
poetry run ruff . --fix
.PHONY: lint
lint: ruff
# --- Alembic Utils ---
.PHONY: generate
generate:
poetry run alembic revision --autogenerate
.PHONY: migrate
migrate:
poetry run alembic upgrade head
# --- Taskiq Scripts ---
.PHONY: worker
worker:
poetry run taskiq worker src.infrastructure.scheduler.tkq:broker --fs-discover --reload --max-async-tasks -1
.PHONY: scheduler
scheduler:
poetry run taskiq scheduler src.infrastructure.scheduler.tkq:scheduler --fs-discover
# Написать программу, имитирующая работу калькулятора, который имеет арифметическую и функциональную часть
# a - вещественное. вводится знак операции