forked from sanders41/meilisearch-tui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
43 lines (32 loc) · 860 Bytes
/
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
@lint:
echo mypy
just --justfile {{justfile()}} mypy
echo ruff
just --justfile {{justfile()}} ruff
echo ruff-format
just --justfile {{justfile()}} ruff-format
@mypy:
poetry run mypy .
@ruff:
poetry run ruff check .
@ruff-format:
poetry run ruff format meilisearch_tui tests
@install:
poetry install
@test: start-meilisearch-detached && stop-meilisearch
-poetry run pytest
@start-meilisearch:
docker compose up
@start-meilisearch-detached:
docker compose up -d
@stop-meilisearch:
docker compose down
@dev-cli:
textual console
@dev: start-meilisearch-detached && stop-meilisearch
-textual run --dev -c meilisearch
@dev-with-data: start-meilisearch-detached && stop-meilisearch
echo Loading data
poetry run python scripts/load_data.py
echo Loading data successful, starting TUI
-textual run --dev -c meilisearch