-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.04 KB
/
Makefile
File metadata and controls
55 lines (44 loc) · 1.04 KB
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
55
.PHONY: all
all:
# ---- #
# deps #
# ---- #
.PHONY: install-all
install-all:
uv sync --all-groups
.PHONY: install
install:
uv sync --no-dev
.PHONY: install-dev
install-dev:
uv sync --dev
.PHONY: pip-upgrade
pip-upgrade:
uv sync --all-groups --upgrade
# -- #
# CI #
# -- #
ci-base-cmd = uv run --dev
.PHONY: ci-check
ci-check:
@echo "========== check: mypy =========="
$(ci-base-cmd) mypy -p plugin
@echo "========== check: ruff (lint) =========="
$(ci-base-cmd) ruff check --diff .
@echo "========== check: ruff (format) =========="
$(ci-base-cmd) ruff format --diff .
.PHONY: ci-fix
ci-fix:
@echo "========== fix: ruff (lint) =========="
$(ci-base-cmd) ruff check --fix .
@echo "========== fix: ruff (format) =========="
$(ci-base-cmd) ruff format .
.PHONY: ci-fix-unsafe
ci-fix-unsafe:
@echo "========== fix: ruff (lint unsafe) =========="
$(ci-base-cmd) ruff check --fix --unsafe-fixes .
@echo "========== fix: ruff (format) =========="
$(ci-base-cmd) ruff format .
.PHONY: update-schema
update-schema:
uv run ./scripts/update_schema.py