-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 1.04 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
.PHONY: init
init:
python3 -m venv .venv
. .venv/bin/activate
.venv/bin/python -m pip install --upgrade pip setuptools wheel
.venv/bin/python -m pip install pip-tools
lint:
-ruff format --check .
-ruff check .
-yamllint -s .
-pylint common
-pylint display
-pylint notes
reinstall-deps:
.venv/bin/python -m piptools sync requirements.txt dev-requirements.txt
upgrade-deps:
.venv/bin/python -m piptools compile --no-emit-index-url --upgrade requirements.in
upgrade-dev-deps:
.venv/bin/python -m piptools compile --no-emit-index-url --upgrade dev-requirements.in
sync.to-leaf:
rsync -vha --exclude=.git/ --exclude=.venv/ --exclude=.vscode/ --exclude=__pycache__/ --exclude=.ruff_cache/ . leaf.local:leaf-notes
sync.from-leaf.requirements:
rsync -vha leaf.local:leaf-notes/requirements.txt requirements.txt
sync.from-leaf.dev-requirements:
rsync -vha leaf.local:leaf-notes/dev-requirements.txt dev-requirements.txt
build:
docker build -t leaf-notes:local .
build.arm64:
docker build --platform=linux/arm64 --no-cache -t leaf-notes:local-arm64 .