-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 722 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 722 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
.PHONY: install dev test test-cov lint package-check ci clean
install:
pip install -e .
dev:
pip install -e ".[dev]"
test:
pytest tests/ -v
test-cov:
pytest tests/ --cov=open_researcher --cov-report=term-missing --cov-fail-under=75
lint:
ruff check src/ tests/
format:
ruff check --fix src/ tests/
ruff format src/ tests/
package-check:
python -m pip install --upgrade pip build
python -m build
python -m pip install --force-reinstall dist/*.whl
open-researcher --help > /dev/null
ci:
$(MAKE) lint
$(MAKE) test
$(MAKE) test-cov
$(MAKE) package-check
clean:
rm -rf dist/ build/ *.egg-info .pytest_cache .ruff_cache htmlcov .coverage coverage.xml
find . -type d -name __pycache__ -exec rm -rf {} +