We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b5beb9 + 7ca0e2b commit a1a2344Copy full SHA for a1a2344
utils/python-lint
@@ -1,12 +1,16 @@
1
#!/bin/bash
2
3
-SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
4
5
python -c 'import flake8; import flake8_import_order' 2>/dev/null
6
-if [[ $? -ne 0 ]]; then
+if [[ $? != 0 ]]; then
7
echo "Missing modules flake8 or flake8-import-order. Please be sure to install these python packages before linting."
8
exit 1
9
fi
10
11
-cd $SCRIPT_DIR/..
+cd "$SCRIPT_DIR/.."
12
13
+ echo "Could not change directory to '$SCRIPT_DIR/..'."
14
+ exit 1
15
+fi
16
flake8
0 commit comments