Skip to content

Commit 1583235

Browse files
committed
MAINT: Only output errors in C style check (#14924)
* MAINT: Only output errors in C style check * Move cpplint install before checks
1 parent 0ac3d98 commit 1583235

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/lint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ source activate pandas
77
RET=0
88

99
if [ "$LINT" ]; then
10+
pip install cpplint
11+
1012
# pandas/rpy is deprecated and will be removed.
1113
# pandas/src is C code, so no need to search there.
1214
echo "Linting *.py"
@@ -43,13 +45,11 @@ if [ "$LINT" ]; then
4345
# from Cython files nor do we want to lint C files that we didn't modify for
4446
# this particular codebase (e.g. src/headers, src/klib, src/msgpack). However,
4547
# we can lint all header files since they aren't "generated" like C files are.
46-
pip install cpplint
47-
4848
echo "Linting *.c and *.h"
4949
for path in '*.h' 'period_helper.c' 'datetime' 'parser' 'ujson'
5050
do
5151
echo "linting -> pandas/src/$path"
52-
cpplint --extensions=c,h --headers=h --filter=-readability/casting,-runtime/int,-build/include_subdir --recursive pandas/src/$path
52+
cpplint --quiet --extensions=c,h --headers=h --filter=-readability/casting,-runtime/int,-build/include_subdir --recursive pandas/src/$path
5353
if [ $? -ne "0" ]; then
5454
RET=1
5555
fi

0 commit comments

Comments
 (0)