-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 790 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (28 loc) · 790 Bytes
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
.PHONY: install install-dev install-all lint format test test-e2e test-cov check build clean
IGNORE_E2E := --ignore=tests/test_e2e.py --ignore=tests/test_integration_redis_otel.py
install:
pip install -e .
install-dev:
pip install -e ".[all]"
pip install -e ".[dev,test]"
install-all:
pip install -e ".[all,dev,test]"
lint:
ruff check .
format:
ruff check --fix .
ruff format .
test:
pytest tests/ $(IGNORE_E2E) -v
test-e2e:
pytest tests/test_e2e.py -v -s
test-cov:
pytest tests/ $(IGNORE_E2E) -v --cov=deeprecall --cov-report=term-missing
check: lint test
build:
python -m build
twine check dist/*
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache .ruff_cache __pycache__
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete