24
24
fi
25
25
26
26
[[ -z " $CHECK " || " $CHECK " == " code" || " $CHECK " == " doctests" || " $CHECK " == " docstrings" || " $CHECK " == " single-docs" || " $CHECK " == " notebooks" ]] || \
27
- { echo " Unknown command $1 . Usage: $0 [code|doctests|docstrings|single-docs|notebooks]" ; exit 9999 ; }
27
+ { echo " Unknown command $1 . Usage: $0 [code|doctests|docstrings|single-docs|notebooks]" ; exit 1 ; }
28
28
29
- BASE_DIR=" $( dirname $0 ) /.."
29
+ BASE_DIR=" $( dirname " $0 " ) /.."
30
30
RET=0
31
31
32
32
# ## CODE ###
33
33
if [[ -z " $CHECK " || " $CHECK " == " code" ]]; then
34
34
35
- MSG=' Check import. No warnings, and blocklist some optional dependencies' ; echo $MSG
35
+ MSG=' Check import. No warnings, and blocklist some optional dependencies' ; echo " $MSG "
36
36
python -W error -c "
37
37
import sys
38
38
import pandas
@@ -49,24 +49,24 @@ if mods:
49
49
sys.stderr.write('err: pandas should not import: {}\n'.format(', '.join(mods)))
50
50
sys.exit(len(mods))
51
51
"
52
- RET=$(( $RET + $? )) ; echo $MSG " DONE"
52
+ RET=$(( $RET + $? )) ; echo " $MSG " " DONE"
53
53
54
54
fi
55
55
56
56
# ## DOCTESTS ###
57
57
if [[ -z " $CHECK " || " $CHECK " == " doctests" ]]; then
58
58
59
- MSG=' Python and Cython Doctests' ; echo $MSG
59
+ MSG=' Python and Cython Doctests' ; echo " $MSG "
60
60
python -c ' import pandas as pd; pd.test(run_doctests=True)'
61
- RET=$(( $RET + $? )) ; echo $MSG " DONE"
61
+ RET=$(( $RET + $? )) ; echo " $MSG " " DONE"
62
62
63
63
fi
64
64
65
65
# ## DOCSTRINGS ###
66
66
if [[ -z " $CHECK " || " $CHECK " == " docstrings" ]]; then
67
67
68
- MSG=' Validate Docstrings' ; echo $MSG
69
- $BASE_DIR /scripts/validate_docstrings.py \
68
+ MSG=' Validate Docstrings' ; echo " $MSG "
69
+ " $BASE_DIR " /scripts/validate_docstrings.py \
70
70
--format=actions \
71
71
-i ES01 ` # For now it is ok if docstrings are missing the extended summary` \
72
72
-i " pandas.Series.dt PR01" ` # Accessors are implemented as classes, but we do not document the Parameters section` \
265
265
if [[ -z " $CHECK " || " $CHECK " == " notebooks" ]]; then
266
266
267
267
MSG=' Notebooks' ; echo $MSG
268
- jupyter nbconvert --execute $( find doc/source -name ' *.ipynb' ) --to notebook
268
+ jupyter nbconvert --execute " $( find doc/source -name ' *.ipynb' ) " --to notebook
269
269
RET=$(( $RET + $? )) ; echo $MSG " DONE"
270
270
271
271
fi
0 commit comments