Skip to content

Commit 5449612

Browse files
committed
use uv
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent 9fd9a55 commit 5449612

6 files changed

Lines changed: 240 additions & 373 deletions

File tree

Makefile

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
1-
.PHONY: lint
2-
lint:
3-
# mypy .
4-
black .
5-
6-
.PHONY: test
7-
test: unit-test integration-test
8-
9-
.PHONY: unit-test
10-
unit-test: lint
11-
ifdef key
12-
pytest tests/unit_tests -v -k $(key)
13-
else
14-
pytest tests/unit_tests
15-
endif
16-
17-
.PHONY: integration-test
18-
integration-test: lint
19-
ifdef key
20-
pytest tests/integration_tests -v -k $(key)
21-
else
22-
pytest tests/integration_tests
23-
endif
24-
25-
.PHONY: check
26-
check: lint test integration-test
1+
POETRY := poetry
2+
RUFF := .venv/bin/ruff
3+
PYTEST := .venv/bin/pytest
274

285
.PHONY: build
296
build: lint
30-
poetry build
7+
$(POETRY) build
318

329
.PHONY: publish
3310
publish: build
34-
poetry publish --username=__token__ --password=$(INFTYAI_PYPI_TOKEN)
11+
$(POETRY) publish --username=__token__ --password=$(INFTYAI_PYPI_TOKEN)
12+
13+
.PHONY: lint
14+
lint:
15+
$(RUFF) check .
16+
17+
.PHONY: format
18+
format:
19+
$(RUFF) format .
20+
$(RUFF) check --fix .
21+
22+
.PHONY: test
23+
test: lint
24+
$(PYTEST) tests/unit --timeout=15
25+
26+
.PHONY: test-integration
27+
test-integration: lint
28+
$(PYTEST) tests/integration --timeout=30
29+
'
30+
.PHONY: test-all
31+
test-all: test test-integration

0 commit comments

Comments
 (0)