-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (30 loc) · 1.39 KB
/
Makefile
File metadata and controls
34 lines (30 loc) · 1.39 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
# Arcane incantation to print all the other targets, from https://stackoverflow.com/a/26339924
help:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
# Install exact Python and CUDA versions
conda-update:
conda env update --prune -f environment.yml
echo "!!!RUN THE conda activate COMMAND ABOVE RIGHT NOW!!!"
# Install exact pip packages
pip-tools:
pip install pip-tools==6.3.1 setuptools==59.5.0
pip-sync semantic_search/fsdl_project.txt
python -m build semantic_search
pip install -e semantic_search
# Bump versions of transitive dependencies, compile
pip-tools-upgrade:
pip install pip-tools==6.3.1 setuptools==59.5.0
pip-compile -o semantic_search/fsdl_project.txt semantic_search/requirements/prod.in semantic_search/requirements/dev.in
echo "!!!Run pip-tools command to actually update the environment"
echo "!!! make pip-tools !!!"
# Fix lint as much as possible, give messages on the rest
lint:
isort semantic_search/semsearch
isort semantic_search/ml_api
isort semantic_search/ml_api_milvus
black --line-length 79 semantic_search/semsearch
black --line-length 79 semantic_search/ml_api
black --line-length 79 semantic_search/ml_api_milvus
flake8 semantic_search/semsearch
flake8 semantic_search/ml_api
flake8 semantic_search/ml_api_milvus