Skip to content

Commit fd7bad7

Browse files
fix blank spaces not being caught in *.pyx
refs #21980
1 parent 68ab81c commit fd7bad7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ci/lint.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ if [ "$LINT" ]; then
4949
if [ $? -ne "0" ]; then
5050
RET=1
5151
fi
52+
53+
if [[ -n $(find **/*.pyx -type f -exec egrep -l " +$" {} \;) ]]
54+
then
55+
RET=1
56+
fi
5257
echo "Linting *.pyx DONE"
5358

5459
echo "Linting *.pxi.in"
@@ -173,7 +178,7 @@ if [ "$LINT" ]; then
173178
RET=1
174179
fi
175180
echo "Check for old-style classes DONE"
176-
181+
177182
echo "Check for backticks incorrectly rendering because of missing spaces"
178183
grep -R --include="*.rst" -E "[a-zA-Z0-9]\`\`?[a-zA-Z0-9]" doc/source/
179184

pandas/_libs/tslibs/period.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ cdef class _Period(object):
15381538
See Also
15391539
--------
15401540
Period.year : Return the calendar year of the period.
1541-
1541+
15421542
Examples
15431543
--------
15441544
If the natural and fiscal year are the same, `qyear` and `year` will

0 commit comments

Comments
 (0)