-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 728 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 728 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
all: install
.PHONY: test
install:
@echo "Installing adapt_common..."
@python3 -m pip install -e .
@echo "Done."
install_dev:
@echo "Installing adapt_common for development..."
@python3 -m pip install -e .[dev]
@echo "Done."
@echo "Setting up pre-commit..."
@pre-commit install
@echo "Done."
lint:
@echo "Checking lint..."
@ruff check
@echo "PASS"
test: lint
@echo "Running test suite..."
@python3 -m pytest -v -n auto --durations=20 test
@echo "PASS"
coverage:
@echo "Generating coverage report..."
@python3 -m coverage erase
@python3 -m coverage run --source=adapt_common -m pytest -v test \
--durations=20
@python3 -m coverage report -m
@python3 -m coverage html
@echo "Done."
tree:
@tree -d .