File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # http://redsymbol.net/articles/unofficial-bash-strict-mode/
3+ set -o errexit # abort on nonzero exitstatus
4+ set -o nounset # abort on unbound variable
5+ set -o pipefail # don't hide errors within pipes
6+ IFS=$' \n\t '
7+
8+ install () {
9+ make devenv
10+ # shellcheck source=/dev/null
11+ source .venv/bin/activate
12+ pushd packages/celery-library
13+ make install-ci
14+ popd
15+ uv pip list
16+ }
17+
18+ test () {
19+ # shellcheck source=/dev/null
20+ source .venv/bin/activate
21+ pushd packages/celery-library
22+ make tests-ci
23+ popd
24+ }
25+
26+ typecheck () {
27+ # shellcheck source=/dev/null
28+ source .venv/bin/activate
29+ uv pip install mypy
30+ pushd packages/celery-library
31+ make mypy
32+ popd
33+ }
34+
35+ # Check if the function exists (bash specific)
36+ if declare -f " $1 " > /dev/null; then
37+ # call arguments verbatim
38+ " $@ "
39+ else
40+ # Show a helpful error
41+ echo " '$1 ' is not a known function name" >&2
42+ exit 1
43+ fi
You can’t perform that action at this time.
0 commit comments