forked from joewallwork/nn_adapt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (29 loc) · 665 Bytes
/
makefile
File metadata and controls
36 lines (29 loc) · 665 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
all: install
.PHONY: install test
install:
@echo "Installing nn_adapt..."
@python3 -m pip install -e .
@echo "Done."
install_dev:
@echo "Installing nn_adapt 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 all tests..."
@python3 -m pytest -v --durations=20 test
@echo "Done."
coverage:
@echo "Generating coverage report..."
@python3 -m coverage erase
@python3 -m coverage run --source=nn_adapt -m pytest -v test
@python3 -m coverage html
@echo "Done."
tree:
@tree -d .