-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 759 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (31 loc) · 759 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
SHELL := /bin/bash
# Target machine
.PHONY: lint
lint:
ruff check .
.PHONY: lint-fix
lint-fix:
ruff check --fix .
.PHONY: format
format:
ruff format
.PHONY: type-check
type-check:
pyright .
.PHONY: check-all
check-all: format lint-fix type-check
.PHONY: freeze-deps
freeze-deps:
uv pip freeze > requirements.txt
.PHONY: todo
todo:
@less -f <(grep -r -I --exclude=Makefile --exclude-dir=.ruff_cache \
--exclude-dir=env --exclude-dir=examples 'TODO:' .) \
<(cat ./TODO.MD)
.PHONY: dev_build_env
dev_build_env:
([ ! -f .venv/bin/activate ] && uv venv \
&& . .venv/bin/activate && uv pip install -r requirements.txt \
) || echo "Venv already exists"
([ ! -f dev_env ] && ln -s .venv/bin/activate dev_env) || \
echo "Venv link already exists"