File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 7
7
# This file is part of volt <https://github.com/bow/volt>.
8
8
9
9
app-id := ' volt'
10
- src-dir := ' src' / ' volt'
10
+ src-dir := ' src' / app-id
11
11
test-dir := ' tests'
12
12
docs-dir := ' docs'
13
13
14
- rtd-build-api-url := ' https://readthedocs.org/api/v3/projects/volt /versions/latest/builds/'
14
+ rtd-build-api-url := " https://readthedocs.org/api/v3/projects/{{ app-id }} /versions/latest/builds/"
15
15
16
16
# Show this help and exit.
17
17
default :
30
30
result
31
31
@ docker rmi ghcr.io/ bow/ {{ app-id}} 2 > / dev/ null || true
32
32
33
-
34
33
# Set local development environment with nix and direnv.
35
34
dev :
36
35
#!/usr/bin/env bash
@@ -60,11 +59,11 @@ docs-html:
60
59
# Build HTML documentation and serve it.
61
60
docs-html-serve :
62
61
#!/usr/bin/env bash
63
- if command -v entr > / dev/ null 2 >&1 ; then \
62
+ if command -v entr > / dev/ null 2 >&1 ; then
64
63
find {{ docs-dir}} -not \( -path " {{ docs-dir}} /_build" -prune \) \
65
- | entr -rcdns ' $(MAKE) -B docs-html && python -m http.server -d {{ docs-dir}} /_build/html'; \
66
- else \
67
- make -B docs-html && python -m http.server -d {{ docs-dir}} / _build/ html; \
64
+ | entr -rcdns ' $(MAKE) -B docs-html && python -m http.server -d {{ docs-dir}} /_build/html'
65
+ else
66
+ make -B docs-html && python -m http.server -d {{ docs-dir}} / _build/ html
68
67
fi
69
68
70
69
# Reorder imports with ruff then apply black.
@@ -98,7 +97,7 @@ scan-sec: scan-sec-ast scan-sec-deps
98
97
99
98
# Perform static security analysis on the AST.
100
99
scan-sec-ast :
101
- bandit -r volt
100
+ bandit -r {{ src-dir }}
102
101
103
102
# Scan dependencies for reported vulnerabilities.
104
103
scan-sec-deps :
You can’t perform that action at this time.
0 commit comments