@@ -49,6 +49,13 @@ if [ "$LINT" ]; then
49
49
if [ $? -ne " 0" ]; then
50
50
RET=1
51
51
fi
52
+
53
+ trailing_space_pyx=$( find ** /* \. pyx -type f -exec egrep -l " +$" {} \; )
54
+ if [[ -n $trailing_space_pyx ]]
55
+ then
56
+ RET=1
57
+ echo $trailing_space_pyx
58
+ fi
52
59
echo " Linting *.pyx DONE"
53
60
54
61
echo " Linting *.pxi.in"
@@ -60,6 +67,21 @@ if [ "$LINT" ]; then
60
67
RET=1
61
68
fi
62
69
done
70
+
71
+ trailing_space_pxi_in=$( find ** /* \. pxi\. in -type f -exec egrep -l " +$" {} \; )
72
+ if [[ -n $trailing_space_pxi_in ]]
73
+ then
74
+ RET=1
75
+ echo $trailing_space_pxi_in
76
+ fi
77
+
78
+ trailing_space_pxi=$( find ** /* \. pxi -type f -exec egrep -l " +$" {} \; )
79
+ if [[ -n $trailing_space_pxi ]]
80
+ then
81
+ RET=1
82
+ echo $trailing_space_pxi
83
+ fi
84
+
63
85
echo " Linting *.pxi.in DONE"
64
86
65
87
echo " Linting *.pxd"
@@ -71,6 +93,14 @@ if [ "$LINT" ]; then
71
93
RET=1
72
94
fi
73
95
done
96
+
97
+ trailing_space_pyd=$( find ** /* \. pyd -type f -exec egrep -l " +$" {} \; )
98
+ if [[ -n $trailing_space_pyd ]]
99
+ then
100
+ RET=1
101
+ echo $trailing_space_pyd
102
+ fi
103
+
74
104
echo " Linting *.pxd DONE"
75
105
76
106
# readability/casting: Warnings about C casting instead of C++ casting
@@ -173,7 +203,7 @@ if [ "$LINT" ]; then
173
203
RET=1
174
204
fi
175
205
echo " Check for old-style classes DONE"
176
-
206
+
177
207
echo " Check for backticks incorrectly rendering because of missing spaces"
178
208
grep -R --include=" *.rst" -E " [a-zA-Z0-9]\`\` ?[a-zA-Z0-9]" doc/source/
179
209
0 commit comments