-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
63 lines (45 loc) · 1.22 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
59
60
61
62
63
default: run
## Dependencies
deps-js:
cd frontend; npm install && npx puppeteer browsers install chrome
deps-js-update:
cd frontend; npx npm-check-updates -i
deps-py:
uv sync
deps-py-update:
uv lock --upgrade
deps: deps-js deps-py
## Build and Test
build-js:
cd frontend; npm run build
build: build-js
watch-js:
cd frontend; npm run watch
test-js:
cd frontend; LANG=en npm run test
test-js-update:
cd frontend; LANG=en npm run test -- -u
test: test-js
## Utils
run:
cd example; uv run fava example.beancount
run-debug:
cd example; uv run fava --debug example.beancount
lint:
cd frontend; npx tsc --noEmit
uv run mypy src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
uv run pylint src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
format:
cd frontend; npx prettier -w . ../src/fava_dashboards/templates/*.css
uv run black src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
find example -name '*.beancount' -exec uv run bean-format -c 59 -o "{}" "{}" \;
./scripts/format_js_in_dashboard.py example/dashboards.yaml
ci:
make lint
make build
make run &
make test
make format
# https://github.com/astral-sh/uv/issues/7533
git restore uv.lock
git diff --exit-code