-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
60 lines (43 loc) · 1.16 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
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:
rye sync
deps-py-update:
rye lock --update-all
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; rye run fava example.beancount
run-debug:
cd example; rye run fava --debug example.beancount
lint:
cd frontend; npx tsc --noEmit
rye run mypy src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
rye run pylint src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
format:
cd frontend; npx prettier -w . ../src/fava_dashboards/templates/*.css
rye run black src/fava_dashboards/__init__.py scripts/format_js_in_dashboard.py
find example -name '*.beancount' -exec rye 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
git diff --exit-code