File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,9 @@ PEP8_SCRIPT_REMOTE_PATH="https://raw.githubusercontent.com/jcrocholl/pep8/1.5.7/
34
34
curl --silent -o " $PEP8_SCRIPT_PATH " " $PEP8_SCRIPT_REMOTE_PATH "
35
35
curl_status=$?
36
36
37
- if [ $curl_status -ne 0 ]
38
- then
39
- echo " Failed to download pep8.py from \" $PEP8_SCRIPT_REMOTE_PATH \" ."
40
- exit $curl_status
37
+ if [ $curl_status -ne 0 ]; then
38
+ echo " Failed to download pep8.py from \" $PEP8_SCRIPT_REMOTE_PATH \" ."
39
+ exit $curl_status
41
40
fi
42
41
43
42
@@ -49,12 +48,11 @@ python $PEP8_SCRIPT_PATH ./python --exclude="cloudpickle.py" \
49
48
> " $PEP8_REPORT_PATH "
50
49
pep8_status=${PIPESTATUS[0]} # $?
51
50
52
- if [ $pep8_status -ne 0 ]
53
- then
54
- echo " PEP 8 checks failed."
55
- cat " $PEP8_REPORT_PATH "
56
- else
57
- echo " PEP 8 checks passed."
51
+ if [ $pep8_status -ne 0 ]; then
52
+ echo " PEP 8 checks failed."
53
+ cat " $PEP8_REPORT_PATH "
54
+ else
55
+ echo " PEP 8 checks passed."
58
56
fi
59
57
60
58
rm -f " $PEP8_REPORT_PATH "
You can’t perform that action at this time.
0 commit comments