-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (44 loc) · 1011 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: help dev run build test cover cover-html fmt type pre-commit
.DEFAULT: help
help:
@echo "make dev"
@echo " prepare development environment"
@echo "make run"
@echo " run application"
@echo "make build"
@echo " build application"
@echo "make test"
@echo " run tests"
@echo "make cover"
@echo " run tests and coverage"
@echo "make cover-html"
@echo " run tests, coverage and open HTML report"
@echo "make fmt"
@echo " run ruff linter and formatter"
@echo "make type"
@echo " run mypy static type checker"
@echo "make pre-commit"
@echo " run pre-commit hooks"
dev:
uv sync --all-extras --dev
uv run pre-commit install
run:
uv run python -m app.main
build:
uv build
test:
uv run python -m unittest
cover:
uv run coverage run -m unittest
uv run coverage report -m
cover-html:
uv run coverage run -m unittest
uv run coverage html
open htmlcov/index.html
fmt:
uv run ruff check --fix
uv run ruff format
type:
uv run mypy .
pre-commit:
uv run pre-commit run --all-files