forked from vocodedev/vocode-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 1.05 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
.PHONY: chat speak listen lint lint_diff help
chat:
poetry run python playground/streaming/agent/chat.py
transcribe:
poetry run python playground/streaming/transcriber/transcribe.py
synthesize:
poetry run python playground/streaming/synthesizer/synthesize.py
PYTHON_FILES=.
lint: PYTHON_FILES=vocode/ quickstarts/ playground/
lint_diff typecheck_diff: PYTHON_FILES=$(shell git diff --name-only --diff-filter=d main | grep -E '\.py$$')
lint lint_diff:
poetry run black $(PYTHON_FILES)
typecheck:
poetry run mypy -p vocode
poetry run mypy -p quickstarts
poetry run mypy -p apps
poetry run mypy -p playground
typecheck_diff:
poetry run mypy $(PYTHON_FILES)
test:
poetry run pytest
help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " chat Run chat agent"
@echo " transcribe Transcribe audio to text"
@echo " synthesize Synthesize text into audio"
@echo " lint Lint all Python files"
@echo " lint_diff Lint changed Python files"
@echo " test Run tests"
@echo " help Show this help message"