-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
53 lines (46 loc) · 928 Bytes
/
makefile
File metadata and controls
53 lines (46 loc) · 928 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
install:
uv sync
install-dev:
uv sync --all-extras
check:
@find . \
-name "*.py" \
-not -path "./.venv/*" \
-not -path "./.git/*" \
-exec uv run python -m py_compile {} +
@uvx ruff format \
--quiet \
--config=pyproject.toml \
--check
@uvx ruff check \
--quiet \
--config=pyproject.toml
@uv run pytest \
--quiet \
--config-file=pyproject.toml
fix:
@uvx ruff format \
--quiet \
--config=pyproject.toml
@uvx ruff check \
--quiet \
--config=pyproject.toml \
--fix
# only for mac as this is faster
build:
docker build . \
--platform linux/arm64
update-template:
copier update \
--skip-answered \
--conflict inline \
--answers-file .template.yaml
upgrade:
uv sync --all-extras --upgrade
gen:
uv run openapi-python-client generate \
--output-path app/gen/client \
--overwrite \
--meta uv \
--config openapigen.yaml \
--url https://leda.sao.ru/admin/api/openapi.json