-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 793 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (27 loc) · 793 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
.PHONY: install dev install-docs test lint typecheck coverage clean build serve-docs precommit
install:
pip install -e .
dev:
pip install -e ".[dev]"
install-docs:
pip install -e ".[docs]"
test:
python -m pytest tests/ -v
lint:
ruff check src/ tests/
typecheck:
mypy src/ --ignore-missing-imports
coverage:
python -m pytest tests/ --cov=memmark --cov-report=term-missing --cov-report=html
@echo "Coverage report: htmlcov/index.html"
build:
python -m build
serve-docs:
python -m mkdocs serve
precommit:
pre-commit install
pre-commit run --all-files
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache .coverage coverage.xml htmlcov site/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
all: install dev install-docs lint typecheck test coverage