-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Makefile
40 lines (30 loc) · 1.13 KB
/
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
.PHONY: check
check:
ruff format .
ruff check . --fix
pytest -m "not online"
mypy
.PHONY: lint
lint:
ruff format .
ruff check . --fix
mypy
.PHONY: serve
serve:
textual run --dev -c harlequin -P dev -f .
.PHONY: sqlite
sqlite:
textual run --dev -c harlequin -P sqlite
.PHONY: keys
keys:
textual run --dev -c harlequin --keys
marketing: $(wildcard static/themes/*.svg) static/harlequin.gif
static/themes/%.svg: pyproject.toml src/scripts/export_screenshots.py
python src/scripts/export_screenshots.py
static/harlequin.gif: static/harlequin.mp4
ffmpeg -i static/harlequin.mp4 -vf "fps=24,scale=640:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 static/harlequin.gif
profiles: .profiles/buffers.html .profiles/fast_query.html
.profiles/buffers.html: src/scripts/profile_buffers.py pyproject.toml $(shell find src/harlequin -type f)
pyinstrument -r html -o .profiles/buffers.html "src/scripts/profile_buffers.py"
.profiles/fast_query.html: src/scripts/profile_fast_query.py pyproject.toml $(shell find src/harlequin -type f)
pyinstrument -r html -o .profiles/fast_query.html "src/scripts/profile_fast_query.py"