forked from riccardomusmeci/mlx-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 668 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 668 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
41
SHELL = /bin/bash
.PHONY: all install clean check test full coverage
all:
make clean
make install
install:
# Uncomment the following line if you want to run a prebuild script (must exist)
pip install -e .[dev,test,docs]
make full
clean:
-rm -rf .mypy_cache
-rm -rf .pytest_cache
-rm -rf .eggs
-rm -rf dist
-rm -rf *.egg-info
-find . -not -path "./.git/*" -name logs -exec rm -rf {} \;
-rm -rf logs
-rm -rf tests/logs
-rm -rf .ruff_cache
-find tests -depth -type d -empty -delete
check:
ruff check --diff .
black --check --diff .
mypy .
format:
ruff check --show-fixes .
black .
mypy .
test:
pytest tests/
full:
make check
make test