-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (33 loc) · 985 Bytes
/
Makefile
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
42
.POSIX:
.PHONY: build install check lint format clean
LUMPY_HOME = $$HOME/.lumpy
all: lint format check
bin/lumpy: lumpy.py
python3 -m nuitka lumpy.py \
--output-filename="$$(pwd)/bin/lumpy" \
--remove-output \
--disable-ccache
build: bin/lumpy
install: build
mkdir -p "$(LUMPY_HOME)"
cp -r bin "$(LUMPY_HOME)"
cp -r lib "$(LUMPY_HOME)"
cp lumpy.py env "$(LUMPY_HOME)"
check:
LUMPY_HOME="$(realpath .)" sh bin/lumpy-test
# Flake8 Ignored Errors:
# E203 - Conflicts with Black.
# E221 - Disabled for manual vertically-aligned code.
# E241 - Disabled for manual vertically-aligned code.
# E501 - Conflicts with Black.
# W503 - Conflicts with Black.
lint:
python3 -m mypy --check-untyped-defs lumpy.py bin/lumpy-test.py
python3 -m flake8 --ignore=E203,E221,E241,E501,W503 lumpy.py bin/lumpy-test.py
format:
python3 -m black --line-length=79 lumpy.py bin/lumpy-test.py
clean:
rm -f .lumpy-history
rm -f bin/lumpy
rm -rf __pycache__
rm -rf .mypy_cache