Skip to content

Commit de664b1

Browse files
committed
🐚 improve check.sh
1 parent 02c2d75 commit de664b1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

check.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
set -eu
2+
set -feu
33

44
for venv in venv .venv
55
do
@@ -49,11 +49,14 @@ python3 -m flake8 --show-source || FAILED=$(( 16 | FAILED ))
4949
PYTHON_FOLDERS="an_website scripts tests"
5050

5151
echo Pylint:
52-
DISABLE_PYSTON=1 python3 -m pylint -d all -e fixme --exit-zero --score=no --persistent=no $PYTHON_FOLDERS
53-
DISABLE_PYSTON=1 python3 -m pylint -d fixme $PYTHON_FOLDERS || FAILED=$(( 32 | FAILED ))
52+
# shellcheck disable=SC2086
53+
DISABLE_PYSTON=1 python3 -m pylint -d all -e fixme --exit-zero --score=no --persistent=no ${PYTHON_FOLDERS}
54+
# shellcheck disable=SC2086
55+
DISABLE_PYSTON=1 python3 -m pylint -d fixme ${PYTHON_FOLDERS} || FAILED=$(( 32 | FAILED ))
5456

5557
echo Bandit:
56-
python3 -m bandit -qrc pyproject.toml $PYTHON_FOLDERS || FAILED=$(( 64 | FAILED ))
58+
# shellcheck disable=SC2086
59+
python3 -m bandit -qrc pyproject.toml ${PYTHON_FOLDERS} || FAILED=$(( 64 | FAILED ))
5760

5861
if [ -n "${1:-}" ]; then
5962
pytest="python3 -m pytest --durations=0 --durations-min=0.5"

0 commit comments

Comments
 (0)