@@ -7,27 +7,27 @@ source activate pandas
7
7
RET=0
8
8
9
9
if [ " $LINT " ]; then
10
- echo " Linting"
11
- for path in ' api' ' core' ' indexes' ' types' ' formats' ' io' ' stats' ' compat' ' sparse' ' tools' ' tseries' ' tests' ' computation' ' util'
12
- do
13
- echo " linting -> pandas/$path "
14
- flake8 pandas/$path --filename ' *.py'
15
- if [ $? -ne " 0" ]; then
16
- RET=1
17
- fi
18
-
19
- done
10
+ # pandas/rpy is deprecated and will be removed.
11
+ # pandas/src is C code, so no need to search there.
12
+ echo " Linting *.py"
13
+ flake8 pandas --filename=* .py --exclude pandas/rpy,pandas/src
14
+ if [ $? -ne " 0" ]; then
15
+ RET=1
16
+ fi
20
17
echo " Linting *.py DONE"
21
18
22
19
echo " Linting *.pyx"
23
- flake8 pandas --filename ' *.pyx' --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126
20
+ flake8 pandas --filename=* .pyx --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126
21
+ if [ $? -ne " 0" ]; then
22
+ RET=1
23
+ fi
24
24
echo " Linting *.pyx DONE"
25
25
26
26
echo " Linting *.pxi.in"
27
27
for path in ' src'
28
28
do
29
29
echo " linting -> pandas/$path "
30
- flake8 pandas/$path --filename ' *.pxi.in' --select=E501,E302,E203,E111,E114,E221,E303,E231,E126
30
+ flake8 pandas/$path --filename= * .pxi.in --select=E501,E302,E203,E111,E114,E221,E303,E231,E126
31
31
if [ $? -ne " 0" ]; then
32
32
RET=1
33
33
fi
0 commit comments