-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathMakefile
47 lines (34 loc) · 1.07 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
45
46
47
.PHONY: install format lint test test-all test-notebooks clean redis-start redis-stop check-types 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:
poetry run test-verbose
test-all:
poetry run test-verbose --run-api-tests
test-notebooks:
poetry run test-notebooks
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 {} +