@@ -180,14 +180,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
180
180
invgrep -r -E --include ' *.py' " [[:space:]] pytest.raises" pandas/tests/
181
181
RET=$(( $RET + $? )) ; echo $MSG " DONE"
182
182
183
- MSG=' Check for python2-style file encodings' ; echo $MSG
184
- invgrep -R --include=" *.py" --include=" *.pyx" -E " # -\*- coding: utf-8 -\*-" pandas scripts
185
- RET=$(( $RET + $? )) ; echo $MSG " DONE"
186
-
187
- MSG=' Check for python2-style super usage' ; echo $MSG
188
- invgrep -R --include=" *.py" -E " super\(\w*, (self|cls)\)" pandas
189
- RET=$(( $RET + $? )) ; echo $MSG " DONE"
190
-
191
183
MSG=' Check for use of builtin filter function' ; echo $MSG
192
184
invgrep -R --include=" *.py" -P ' (?<!def)[\(\s]filter\(' pandas
193
185
RET=$(( $RET + $? )) ; echo $MSG " DONE"
@@ -206,10 +198,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
206
198
invgrep -R --include=" *.py" --include=" *.pyx" -E " (DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)" pandas
207
199
RET=$(( $RET + $? )) ; echo $MSG " DONE"
208
200
209
- MSG=' Check for python2 new-style classes and for empty parentheses' ; echo $MSG
210
- invgrep -R --include=" *.py" --include=" *.pyx" -E " class\s\S*\((object)?\):" pandas asv_bench/benchmarks scripts
211
- RET=$(( $RET + $? )) ; echo $MSG " DONE"
212
-
213
201
MSG=' Check for backticks incorrectly rendering because of missing spaces' ; echo $MSG
214
202
invgrep -R --include=" *.rst" -E " [a-zA-Z0-9]\`\` ?[a-zA-Z0-9]" doc/source/
215
203
RET=$(( $RET + $? )) ; echo $MSG " DONE"
@@ -259,10 +247,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
259
247
invgrep -R --include=* .{py,pyx} ' \.__class__' pandas
260
248
RET=$(( $RET + $? )) ; echo $MSG " DONE"
261
249
262
- MSG=' Check for use of xrange instead of range' ; echo $MSG
263
- invgrep -R --include=* .{py,pyx} ' xrange' pandas
264
- RET=$(( $RET + $? )) ; echo $MSG " DONE"
265
-
266
250
MSG=' Check that no file in the repo contains trailing whitespaces' ; echo $MSG
267
251
INVGREP_APPEND=" <- trailing whitespaces found"
268
252
invgrep -RI --exclude=\* .{svg,c,cpp,html,js} --exclude-dir=env " \s$" *
0 commit comments