-
-
Notifications
You must be signed in to change notification settings - Fork 339
Expand file tree
/
Copy pathMakefile
More file actions
88 lines (68 loc) · 1.98 KB
/
Makefile
File metadata and controls
88 lines (68 loc) · 1.98 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.PHONY: help \
install install-dev install-test install-all \
test test-all test-vgit test-vdsql \
build man zsh-completion docker \
setup-hooks setup-vscode lint \
diff-test clean
help:
@echo "Install:"
@echo " make install pip install visidata"
@echo " make install-dev editable install with dev deps"
@echo " make install-test install with test deps"
@echo " make install-all install with all optional deps"
@echo ""
@echo "Test:"
@echo " make test run all tests (same as test-all)"
@echo ""
@echo "Build:"
@echo " make man generate man pages (requires soelim, preconv, aha)"
@echo " make zsh-completion generate zsh completion script"
@echo " make docker build docker images"
@echo ""
@echo "Setup:"
@echo " make setup-hooks configure git to use dev/hooks"
@echo " make setup-vscode copy devcontainer configs to .vscode/"
@echo ""
@echo "Utility:"
@echo " make lint run ruff linter"
@echo " make diff-test show diffs from last test run"
@echo " make clean remove generated files"
install:
pip3 install .
install-dev:
pip3 install -r dev/requirements-dev.txt
pip3 install -e .
install-test:
pip3 install .
pip3 install ".[test]"
install-all:
pip3 install ".[all]"
test: test-all
test-all:
dev/test-all.sh
test-vgit:
vd --config tests/.visidatarc -p visidata/apps/vgit/tests/*.vdx --batch
test-vdsql:
cd visidata/apps/vdsql && ./test.sh
build: man zsh-completion
man:
dev/mkman.sh
zsh-completion:
python3 dev/zsh-completion.py _visidata
docker:
dev/build-container
# Setup
setup-hooks:
git config core.hooksPath dev/hooks
setup-vscode:
mkdir -p .vscode
cp .devcontainer/launch.json .vscode/launch.json
cp .devcontainer/settings.json .vscode/settings.json
# Utility
lint:
ruff check .
diff-test:
dev/diff-test.sh
clean:
rm -f visidata/man/vd.1 visidata/man/visidata.1 visidata/man/vd.txt
rm -f docs/man.md