-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
58 lines (46 loc) · 1.2 KB
/
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
55
56
57
58
UV_INSTALL_FLAGS :=
.PHONY: all
all:
.PHONY: install
install:
uv pip install $(UV_INSTALL_FLAGS) -r requirements.txt
.PHONY: install-dev
install-dev:
uv pip install $(UV_INSTALL_FLAGS) -r requirements-dev.txt
.PHONY: install-docs
install-docs:
uv pip install $(UV_INSTALL_FLAGS) -r requirements-docs.txt
.PHONY: pip-compile
pip-compile:
uv pip compile --upgrade requirements.in -o requirements.txt
uv pip compile --upgrade requirements-dev.in -o requirements-dev.txt
uv pip compile --upgrade requirements-docs.in -o requirements-docs.txt
.PHONY: ci-check
ci-check:
@echo "========== check: mypy =========="
mypy -p plugin
@echo "========== check: ruff (lint) =========="
ruff check --diff .
@echo "========== check: ruff (format) =========="
ruff format --diff .
.PHONY: ci-fix
ci-fix:
@echo "========== fix: ruff (lint) =========="
ruff check --fix .
@echo "========== fix: ruff (format) =========="
ruff format .
# ---- #
# docs #
# ---- #
.PHONY: docs-serve
docs-serve:
cd "docs/" && mkdocs serve
.PHONY: docs-build
docs-build: docs-clean
cd "docs/" && mkdocs build
.PHONY: docs-deploy
docs-deploy:
cd "docs/" && mkdocs gh-deploy --force
.PHONY: docs-clean
docs-clean:
cd "docs/" && rm -rf site/