-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 854 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 854 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
SHELL := /usr/bin/env -S bash -O globstar # makes work globs like **/*.py
.DEFAULT_GOAL := deploy
deploy: linter
uv lock
ansible-playbook deploy.yml --skip-tags=full
full-deploy: linter
uv lock
ansible-playbook deploy.yml
safety:
uv tool run safety scan -o bare
init: clean
uv venv -q
uv lock
clean:
rm -rf .venv
githooks:
git config --local core.hooksPath .githooks
linter: githooks
python -m py_compile **/*.py
uvx isort -q **/*.py
uvx ruff format -q --line-length 140 **/*.py
uvx ruff check -q --ignore F401 **/*.py
favicon:
convert favicon-src.png -fill transparent -fuzz 25% -resize 64x64 -draw 'color 0,0 floodfill' -adaptive-sharpen 0x2 favicon.png
optipng -o7 -zm1-9 -strip all favicon.png
pngquant --quality 5-10 --strip -f -v --speed 1 --posterize 1 favicon.png
mv favicon-fs8.png public/favicon.png
rm -f favicon.png