-
Notifications
You must be signed in to change notification settings - Fork 57
/
Makefile
33 lines (24 loc) · 908 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
MAKEFLAGS += -j
all: build
venv:
@test -d ~/Local/python/addons || (./setup-venv.sh && ~/Local/python/addons/bin/pip install --pre aqt[qt6])
check: check_format mypy pylint
check_format: venv
~/Local/python/addons/bin/black --exclude=vendor/ --check code demos
~/Local/python/addons/bin/isort --check code demos
format: venv
~/Local/python/addons/bin/black --exclude=vendor/ code demos
~/Local/python/addons/bin/isort code demos
mypy: venv
MYPY_FORCE_COLOR=1 ~/Local/python/addons/bin/mypy code demos
pylint: venv
~/Local/python/addons/bin/pylint -j 10 -f colorized \
--extension-pkg-whitelist=PyQt6 code/* demos/*
fix:
~/Local/python/addons/bin/black --exclude=vendor/ code demos
~/Local/python/addons/bin/isort code demos
build: check
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
(cd code && ~/Local/python/addons/bin/python ../build.py)
open ~/.cache/anki-addons &