-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathMakefile
44 lines (32 loc) · 1.04 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
43
44
.PHONY: install format lint test clean redis-start redis-stop check-types integration-test docs-build docs-serve check
install:
poetry install --all-extras
redis-start:
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
redis-stop:
docker stop redis-stack
format:
poetry run format
poetry run sort-imports
check-types:
poetry run check-mypy
lint: format check-types
test:
SKIP_RERANKERS=true SKIP_VECTORIZERS=true poetry run test-cov
test-all:
poetry run test-cov
check: lint test
docs-build:
poetry run build-docs
docs-serve:
poetry run serve-docs
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type d -name ".pytest_cache" -exec rm -rf {} +
find . -type d -name ".mypy_cache" -exec rm -rf {} +
find . -type d -name ".coverage" -delete
find . -type d -name "htmlcov" -exec rm -rf {} +
find . -type d -name "dist" -exec rm -rf {} +
find . -type d -name "build" -exec rm -rf {} +
find . -type d -name "*.egg-info" -exec rm -rf {} +
find . -type d -name "_build" -exec rm -rf {} +