-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
38 lines (29 loc) · 1.11 KB
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
.PHONY: run test-help list-models test-transcription format-and-lint bump-patch bump-minor publish-test publish
run:
@HNS_WHISPER_MODEL=small uv run --no-sync --project . python -m hns.cli
test-help:
@uv run --no-sync --project . python -m hns.cli --help
list-models:
@uv run --no-sync --project . python -m hns.cli --list-models
test-transcription:
@uv run --no-sync --project . python tests/check_transcription_fixture.py
format-and-lint:
uv run --no-sync --project . ruff check --select I --fix
uv run --no-sync --project . ruff format
uv run --no-sync --project . ruff check --fix
bump-patch:
uv version --bump patch
uv sync
@echo "Patch version bumped and recreated lock file."
bump-minor:
uv version --bump minor
uv sync
@echo "Minor version bumped and recreated lock file."
publish-test:
uv build
@if [ -z "$(PYPI_TEST_TOKEN)" ]; then echo "Error: TEST_PYPI_TOKEN is not set"; exit 1; fi
uv publish --publish-url https://test.pypi.org/legacy/ --token ${PYPI_TEST_TOKEN}
publish:
uv build
@if [ -z "$(PYPI_TOKEN)" ]; then echo "Error: PYPI_TOKEN is not set"; exit 1; fi
uv publish --token ${PYPI_TOKEN}