-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
justfile
93 lines (65 loc) · 2.27 KB
/
justfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@_default:
just --list
@lint:
echo mypy
just --justfile {{justfile()}} mypy
echo ruff
just --justfile {{justfile()}} ruff
echo ruff-format
just --justfile {{justfile()}} ruff-format
@mypy:
uv run mypy meilisearch_python_sdk tests
@ruff:
uv run ruff check .
@ruff-format:
uv run ruff format meilisearch_python_sdk tests examples
@test *args="":
-uv run pytest {{args}}
@test-http2 *args="":
-uv run pytest --http2 {{args}}
@test-parallel *args="":
-uv run pytest -n auto -m "not no_parallel" {{args}}
@test-no-parallel *args="":
-uv run pytest -m "no_parallel" {{args}}
@test-parallel-http2 *args="":
-uv run pytest -n auto -m "not no_parallel" --http2 {{args}}
@test-no-parallel-http2 *args="":
-uv run pytest -m "no_parallel" --http2 {{args}}
@test-ci: start-meilisearch-detached && stop-meilisearch
uv run pytest --cov=meilisearch_python_sdk --cov-report=xml
@test-parallel-ci: start-meilisearch-detached && stop-meilisearch
uv run pytest --cov=meilisearch_python_sdk --cov-report=xml -n auto -m "not no_parallel"
@test-no-parallel-ci: start-meilisearch-detached && stop-meilisearch
uv run pytest --cov=meilisearch_python_sdk --cov-report=xml -m "no_parallel"
@test-parallel-ci-http2: start-meilisearch-detached-http2 && stop-meilisearch-http2
uv run pytest --cov=meilisearch_python_sdk --cov-report=xml -n auto -m "not no_parallel" --http2
@test-no-parallel-ci-http2: start-meilisearch-detached-http2 && stop-meilisearch-http2
uv run pytest --cov=meilisearch_python_sdk --cov-report=xml -m "no_parallel" --http2
@test-examples-ci: start-meilisearch-detached
cd examples && \
pip install -r requirements.txt && \
pytest
@start-meilisearch:
docker compose up
@start-meilisearch-detached:
docker compose up -d
@stop-meilisearch:
docker compose down
@start-meilisearch-http2:
docker compose -f docker-compose.https.yml up
@start-meilisearch-detached-http2:
docker compose -f docker-compose.https.yml up -d
@stop-meilisearch-http2:
docker compose -f docker-compose.https.yml down
@build-docs:
uv run mkdocs build --strict
@serve-docs:
mkdocs serve
@install:
uv sync --frozen --all-extras
@lock:
uv lock
@lock-upgrade:
uv lock --upgrade
@benchmark: start-meilisearch-detached && stop-meilisearch
-uv run benchmark/run_benchmark.py