Skip to content

Commit 8387b6f

Browse files
committed
Add a Makefile again
1 parent 18d1cfd commit 8387b6f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

Makefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.PHONY: install format lint test clean redis-start redis-stop check-types integration-test docs-build docs-serve check
2+
3+
install:
4+
poetry install --all-extras
5+
6+
redis-start:
7+
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
8+
9+
redis-stop:
10+
docker stop redis-stack
11+
12+
format:
13+
poetry run format
14+
poetry run sort-imports
15+
16+
check-types:
17+
poetry run check-mypy
18+
19+
lint: format check-types
20+
21+
test:
22+
SKIP_RERANKERS=true SKIP_VECTORIZERS=true poetry run test-cov
23+
24+
check: lint test
25+
26+
integration-test:
27+
poetry run test-cov
28+
29+
docs-build:
30+
poetry run build-docs
31+
32+
docs-serve:
33+
poetry run serve-docs
34+
35+
clean:
36+
find . -type d -name "__pycache__" -exec rm -rf {} +
37+
find . -type d -name ".pytest_cache" -exec rm -rf {} +
38+
find . -type d -name ".mypy_cache" -exec rm -rf {} +
39+
find . -type d -name ".coverage" -delete
40+
find . -type d -name "htmlcov" -exec rm -rf {} +
41+
find . -type d -name "dist" -exec rm -rf {} +
42+
find . -type d -name "build" -exec rm -rf {} +
43+
find . -type d -name "*.egg-info" -exec rm -rf {} +
44+
find . -type d -name "_build" -exec rm -rf {} +

0 commit comments

Comments
 (0)