Skip to content

Commit 7f3d329

Browse files
committed
incorporate shellcheck feedback
1 parent bf0b2a0 commit 7f3d329

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

devel/check.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

3-
ROOT="$(dirname $(dirname $0))"
3+
ROOT="$(dirname "$(dirname "$0")")"
44

5-
cd "$ROOT"
5+
cd "$ROOT" || exit
66

77
pytest \
88
--pylama \
9-
--ignore="tests"\
10-
$@
9+
--ignore="tests" \
10+
"$@"

devel/format.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22

3-
ROOT="$(dirname $(dirname $0))"
3+
ROOT="$(dirname "$(dirname "$0")")"
4+
cd "$ROOT" || exit
45

5-
isort *.py
6-
isort **/*.py
7-
black *.py --line-length=120
8-
black **/*.py --line-length=120
6+
isort ./*.py
7+
isort ./**/*.py
8+
black ./*.py --line-length=120
9+
black ./**/*.py --line-length=120

devel/install_deps.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
ROOT="$(dirname $(dirname $0))"
3+
ROOT="$(dirname "$(dirname "$0")")"
44

55
pip3 install -r "$ROOT/requirements.txt"

devel/install_dev_deps.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
ROOT="$(dirname $(dirname $0))"
3+
ROOT="$(dirname "$(dirname "$0")")"
44

55
pip3 install -r "$ROOT/requirements-dev.txt"

devel/learn-e2e.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
ROOT="$(dirname $(dirname $0))"
3+
ROOT="$(dirname "$(dirname "$0")")"
44

5-
cd "$ROOT"
5+
cd "$ROOT" || exit
66

77
git submodule update --init
88

9-
LEARN_OUTPUT="YES" pytest tests/test_e2e.py -v -s
9+
LEARN_OUTPUT="YES" pytest tests/test_e2e.py -v -s

devel/run-tests.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
ROOT="$(dirname $(dirname $0))"
3+
ROOT="$(dirname "$(dirname "$0")")"
44

5-
cd "$ROOT"
5+
cd "$ROOT" || exit
66

77
git submodule update --init
88

@@ -11,4 +11,5 @@ pytest -n auto \
1111
--cov-branch \
1212
--cov-report xml \
1313
--cov-report html \
14-
"tests/" $@
14+
"tests/" \
15+
"$@"

0 commit comments

Comments
 (0)