2424fi
2525
2626[[ -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 ; }
2828
29- BASE_DIR=" $( dirname $0 ) /.."
29+ BASE_DIR=" $( dirname " $0 " ) /.."
3030RET=0
3131
3232# ## CODE ###
3333if [[ -z " $CHECK " || " $CHECK " == " code" ]]; then
3434
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 "
3636 python -W error -c "
3737import sys
3838import pandas
@@ -49,24 +49,24 @@ if mods:
4949 sys.stderr.write('err: pandas should not import: {}\n'.format(', '.join(mods)))
5050 sys.exit(len(mods))
5151 "
52- RET=$(( $RET + $? )) ; echo $MSG " DONE"
52+ RET=$(( $RET + $? )) ; echo " $MSG " " DONE"
5353
5454fi
5555
5656# ## DOCTESTS ###
5757if [[ -z " $CHECK " || " $CHECK " == " doctests" ]]; then
5858
59- MSG=' Python and Cython Doctests' ; echo $MSG
59+ MSG=' Python and Cython Doctests' ; echo " $MSG "
6060 python -c ' import pandas as pd; pd.test(run_doctests=True)'
61- RET=$(( $RET + $? )) ; echo $MSG " DONE"
61+ RET=$(( $RET + $? )) ; echo " $MSG " " DONE"
6262
6363fi
6464
6565# ## DOCSTRINGS ###
6666if [[ -z " $CHECK " || " $CHECK " == " docstrings" ]]; then
6767
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 \
7070 --format=actions \
7171 -i ES01 ` # For now it is ok if docstrings are missing the extended summary` \
7272 -i " pandas.Series.dt PR01" ` # Accessors are implemented as classes, but we do not document the Parameters section` \
@@ -83,6 +83,16 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8383 -i " pandas.core.groupby.SeriesGroupBy.plot PR02" \
8484 -i " pandas.core.resample.Resampler.quantile PR01,PR07" \
8585 -i " pandas.tseries.offsets.BDay PR02,SA01" \
86+ -i " pandas.tseries.offsets.BHalfYearBegin.is_on_offset GL08" \
87+ -i " pandas.tseries.offsets.BHalfYearBegin.n GL08" \
88+ -i " pandas.tseries.offsets.BHalfYearBegin.normalize GL08" \
89+ -i " pandas.tseries.offsets.BHalfYearBegin.rule_code GL08" \
90+ -i " pandas.tseries.offsets.BHalfYearBegin.startingMonth GL08" \
91+ -i " pandas.tseries.offsets.BHalfYearEnd.is_on_offset GL08" \
92+ -i " pandas.tseries.offsets.BHalfYearEnd.n GL08" \
93+ -i " pandas.tseries.offsets.BHalfYearEnd.normalize GL08" \
94+ -i " pandas.tseries.offsets.BHalfYearEnd.rule_code GL08" \
95+ -i " pandas.tseries.offsets.BHalfYearEnd.startingMonth GL08" \
8696 -i " pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
8797 -i " pandas.tseries.offsets.BQuarterBegin.n GL08" \
8898 -i " pandas.tseries.offsets.BQuarterBegin.normalize GL08" \
@@ -185,6 +195,16 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
185195 -i " pandas.tseries.offsets.FY5253Quarter.variation GL08" \
186196 -i " pandas.tseries.offsets.FY5253Quarter.weekday GL08" \
187197 -i " pandas.tseries.offsets.FY5253Quarter.year_has_extra_week GL08" \
198+ -i " pandas.tseries.offsets.HalfYearBegin.is_on_offset GL08" \
199+ -i " pandas.tseries.offsets.HalfYearBegin.n GL08" \
200+ -i " pandas.tseries.offsets.HalfYearBegin.normalize GL08" \
201+ -i " pandas.tseries.offsets.HalfYearBegin.rule_code GL08" \
202+ -i " pandas.tseries.offsets.HalfYearBegin.startingMonth GL08" \
203+ -i " pandas.tseries.offsets.HalfYearEnd.is_on_offset GL08" \
204+ -i " pandas.tseries.offsets.HalfYearEnd.n GL08" \
205+ -i " pandas.tseries.offsets.HalfYearEnd.normalize GL08" \
206+ -i " pandas.tseries.offsets.HalfYearEnd.rule_code GL08" \
207+ -i " pandas.tseries.offsets.HalfYearEnd.startingMonth GL08" \
188208 -i " pandas.tseries.offsets.Hour.is_on_offset GL08" \
189209 -i " pandas.tseries.offsets.Hour.n GL08" \
190210 -i " pandas.tseries.offsets.Hour.normalize GL08" \
265285if [[ -z " $CHECK " || " $CHECK " == " notebooks" ]]; then
266286
267287 MSG=' Notebooks' ; echo $MSG
268- jupyter nbconvert --execute $( find doc/source -name ' *.ipynb' ) --to notebook
288+ jupyter nbconvert --execute " $( find doc/source -name ' *.ipynb' ) " --to notebook
269289 RET=$(( $RET + $? )) ; echo $MSG " DONE"
270290
271291fi
0 commit comments