-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 986 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 986 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
# default target for "make" without args
help:
@echo 'Makefile for Zubbi '
@echo ' '
@echo 'Usage: '
@echo ' make lint Run linters and static code checks '
@echo ' make test Run tests using pytest '
@echo ' make serve Start flask server in development mode'
@echo ' make update Update and lock dependencies using uv '
@echo ' make dist Build python sdist and wheel using uv '
lint:
uv run --frozen ruff check
# By default ruff does not format imports, so we have to call this explicitly
uv run --frozen ruff check --select I
uv run --frozen ruff format --check --diff .
test:
uv run --frozen pytest
uv run --frozen flask collectstatic --help
serve:
uv run --frozen flask run
update:
uv lock --upgrade
dist:
uv build
# Commands without file dependencies
.PHONY: help lint test dist