Skip to content

Commit ea3c409

Browse files
committed
chore: Minor justfile fixes
1 parent e735e76 commit ea3c409

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

justfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
# This file is part of volt <https://github.com/bow/volt>.
88

99
app-id := 'volt'
10-
src-dir := 'src' / 'volt'
10+
src-dir := 'src' / app-id
1111
test-dir := 'tests'
1212
docs-dir := 'docs'
1313

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/"
1515

1616
# Show this help and exit.
1717
default:
@@ -30,7 +30,6 @@ clean:
3030
result
3131
@docker rmi ghcr.io/bow/{{app-id}} 2> /dev/null || true
3232

33-
3433
# Set local development environment with nix and direnv.
3534
dev:
3635
#!/usr/bin/env bash
@@ -60,11 +59,11 @@ docs-html:
6059
# Build HTML documentation and serve it.
6160
docs-html-serve:
6261
#!/usr/bin/env bash
63-
if command -v entr > /dev/null 2>&1; then \
62+
if command -v entr > /dev/null 2>&1; then
6463
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
6867
fi
6968

7069
# Reorder imports with ruff then apply black.
@@ -98,7 +97,7 @@ scan-sec: scan-sec-ast scan-sec-deps
9897

9998
# Perform static security analysis on the AST.
10099
scan-sec-ast:
101-
bandit -r volt
100+
bandit -r {{src-dir}}
102101

103102
# Scan dependencies for reported vulnerabilities.
104103
scan-sec-deps:

0 commit comments

Comments
 (0)