Skip to content

Commit

Permalink
fix blank spaces not being caught in *.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
illegalnumbers committed Jul 25, 2018
1 parent 68ab81c commit fd7bad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ if [ "$LINT" ]; then
if [ $? -ne "0" ]; then
RET=1
fi

if [[ -n $(find **/*.pyx -type f -exec egrep -l " +$" {} \;) ]]
then
RET=1
fi
echo "Linting *.pyx DONE"

echo "Linting *.pxi.in"
Expand Down Expand Up @@ -173,7 +178,7 @@ if [ "$LINT" ]; then
RET=1
fi
echo "Check for old-style classes DONE"

echo "Check for backticks incorrectly rendering because of missing spaces"
grep -R --include="*.rst" -E "[a-zA-Z0-9]\`\`?[a-zA-Z0-9]" doc/source/

Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/period.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ cdef class _Period(object):
See Also
--------
Period.year : Return the calendar year of the period.
Examples
--------
If the natural and fiscal year are the same, `qyear` and `year` will
Expand Down

0 comments on commit fd7bad7

Please sign in to comment.