-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 728 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 728 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
checkfiles = fastapi_limiter/ tests/ examples/ conftest.py
py_warn = PYTHONDEVMODE=1
help:
@echo "fastapi-limiter development makefile"
@echo
@echo "usage: make <target>"
@echo "Targets:"
@echo " up Updates dev/test dependencies"
@echo " deps Ensure dev/test dependencies are installed"
@echo " check Checks that build is sane"
@echo " build Build package"
@echo " test Runs all tests"
@echo " style Auto-formats the code"
up:
@uv sync --upgrade
deps:
@uv sync --all-groups
style: deps
@uv run ruff format $(checkfiles)
check: deps
@uv run ruff check $(checkfiles)
@uv run ty check $(checkfiles)
test: deps
@$(py_warn) uv run pytest
build: deps
@uv build
ci: check test