-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 1.3 KB
/
Copy pathMakefile
File metadata and controls
46 lines (37 loc) · 1.3 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
39
40
41
42
43
44
45
46
.PHONY: install docs lint license-check test test-integration test-pkg test-pkg-integration
install:
uv sync --all-packages --all-extras
docs:
uv run sphinx-apidoc -e -M -f -T \
-o docs/sphinx/_autogen/base \
packages/base/ai_api_client_sdk \
packages/base/ai_api_client_sdk/helpers
uv run sphinx-apidoc -e -M -f -T \
-o docs/sphinx/_autogen/core \
packages/core/ai_core_sdk \
packages/core/ai_core_sdk/helpers \
packages/core/ai_core_sdk/cli.py
uv run sphinx-apidoc -e -M -f -T \
-o docs/sphinx/_autogen/gen \
packages/gen/gen_ai_hub \
packages/gen/gen_ai_hub/evaluations/_internal \
packages/gen/gen_ai_hub/evaluations/helpers
uv run sphinx-build -b html docs/sphinx api-docs/
lint:
uv run pylint ai_api_client_sdk ai_core_sdk gen_ai_hub --errors-only --output-format=colorized
license-check:
uv run pip-licenses
sample-code-server:
uv run uvicorn sample_code.server:app --env-file sample-code/.env --reload
test:
uv run pytest packages/base/tests
uv run pytest packages/core/tests
uv run pytest packages/gen/tests
test-integration:
uv run pytest packages/base/integration_tests
uv run pytest packages/core/integration_tests
uv run pytest packages/gen/integration_tests
test-pkg:
uv run pytest packages/$(pkg)/tests
test-pkg-integration:
uv run pytest packages/$(pkg)/integration_tests