forked from laurynas-biveinis/org-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
51 lines (36 loc) · 1.38 KB
/
Copy pathJustfile
File metadata and controls
51 lines (36 loc) · 1.38 KB
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
default:
@just --list
# Run the ERT test suite.
test:
@scripts/run-tests.sh
# Lint + test — the combined pre-commit entrypoint.
check: fmt lint test
fmt: elisp-autofmt shfmt
elisp-autofmt:
@scripts/quiet.sh eask format elisp-autofmt
shfmt:
@shfmt -i 4 -l -w scripts/quiet.sh scripts/run-tests.sh
# Run the full lint suite (silent on success; failing stage writes
# .lint-output.txt and exits non-zero, short-circuiting the rest).
lint: install-deps byte-compile elisp-lint org-lint shellcheck zizmor
@echo "lint: OK"
# --- Individual lint stages -------------------------------------------------
# Each recipe is a thin wrapper around scripts/quiet.sh; silent on
# success, writes failing-stage output to .lint-output.txt on failure.
install-deps:
@scripts/quiet.sh eask install-deps
alias compile := byte-compile
byte-compile: install-deps
@scripts/quiet.sh eask recompile
elisp-lint:
@rm -f ./*.elc
@scripts/quiet.sh eask lint elisp-lint; rc=$?; rm -f ./*.elc; exit $rc
org-lint:
@scripts/quiet.sh eask run script org-lint
shellcheck:
@scripts/quiet.sh shellcheck scripts/quiet.sh scripts/run-tests.sh
zizmor:
@scripts/quiet.sh zizmor .github/workflows/claude-code-review.yml .github/workflows/claude.yml .github/workflows/elisp-test.yml
# --- Passthrough ------------------------------------------------------------
act *args:
act {{args}}