-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
42 lines (30 loc) · 1.38 KB
/
Makefile
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
black:
poetry run black $(ARGS) ./
isort:
poetry run isort $(ARGS) ./
flake:
poetry run autoflake --in-place --recursive --ignore-init-module-imports --remove-unused-variables --remove-all-unused-imports ./
mypy:
poetry run mypy --no-site-packages --ignore-missing-imports --no-strict-optional ./
format: flake black isort mypy # run all formatters at once
generate-req:
poetry export --without-hashes --format=requirements.txt > requirements.txt
run-clean: generate-req run-docker
run-cloud-build:
docker-compose --file docker-compose-cloud.yaml --project-name "visual-similarity-search-cloud" \
up -d --no-deps --build
run-cloud-build-qdrant-restart:
docker-compose --file docker-compose-cloud.yaml --project-name "visual-similarity-search-cloud" \
restart qdrant-cloud
run-cloud-build-interactive-restart:
docker-compose --file docker-compose-cloud.yaml --project-name "visual-similarity-search-cloud" \
restart interactive-cloud
run-local-build:
docker-compose --file docker-compose-local.yaml --project-name "visual-similarity-search-local" \
up -d --no-deps --build
run-local-build-qdrant-restart:
docker-compose --file docker-compose-local.yaml --project-name "visual-similarity-search-local" \
restart qdrant-local
run-local-build-interactive-restart:
docker-compose --file docker-compose-local.yaml --project-name "visual-similarity-search-local" \
restart interactive-local