-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (39 loc) · 997 Bytes
/
Makefile
File metadata and controls
52 lines (39 loc) · 997 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
40
41
42
43
44
45
46
47
48
49
50
51
52
APP_ROOT := jarvis
export JARVIS_SETTINGS ?= config.py.sample
all: lint test
lint-py:
uv run ruff check --quiet --diff
uv run ruff format --quiet --diff
lint-js:
ifdef CI
git ls-files '*.js' | xargs pnpx jshint
endif
lint: lint-py lint-js
test:
env TZ=UTC uv run $(APP_ROOT)/tests.py
clean:
rm -rf $(APP_ROOT)/**/*.pyc $(APP_ROOT)/static/.webassets-cache/ $(APP_ROOT)/static/gen/
widget:
uv run $(APP_ROOT)/util/create_widget.py $(NAME)
dashboard:
uv run $(APP_ROOT)/util/create_dashboard.py $(NAME)
debug:
ifndef JARVIS_SETTINGS
$(error JARVIS_SETTINGS must be set)
endif
uv run flask --app $(APP_ROOT)/app --debug run
run:
ifndef JARVIS_SETTINGS
$(error JARVIS_SETTINGS must be set)
endif
uv run flask --app $(APP_ROOT)/app run
run-job:
ifndef JARVIS_SETTINGS
$(error JARVIS_SETTINGS must be set)
endif
uv run $(APP_ROOT)/run_job.py $(NAME)
google-api-auth:
ifndef JARVIS_SETTINGS
$(error JARVIS_SETTINGS must be set)
endif
uv run $(APP_ROOT)/util/google_api_auth.py