-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 823 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 823 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
.PHONY: venv lint format test run css-bundle css-bundle-restart
CSS_PARTIALS = \
quail/templates/partials/styles/01-theme.css \
quail/templates/partials/styles/02-shell.css \
quail/templates/partials/styles/03-page.css \
quail/templates/partials/styles/04-admin-components.css \
quail/templates/partials/styles/05-inbox-message.css \
quail/templates/partials/styles/06-responsive.css
venv:
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r requirements.txt
lint:
.venv/bin/ruff .
format:
.venv/bin/black .
test: css-bundle
.venv/bin/pytest
run:
.venv/bin/uvicorn quail.web:app --reload
quail/static/quail.css: $(CSS_PARTIALS)
cat $(CSS_PARTIALS) > quail/static/quail.css
css-bundle: quail/static/quail.css
css-bundle-restart: css-bundle
sudo systemctl restart quail