Skip to content

Commit

Permalink
add path to grep
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Nov 24, 2017
1 parent a279e27 commit 31446b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if [ "$LINT" ]; then
#
# Check the following functions:
# any(), all(), sum(), max(), min(), list(), dict(), set(), frozenset(), tuple(), str.join()
grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)"
grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)" .

if [ $? = "0" ]; then
RET=1
Expand All @@ -103,7 +103,7 @@ if [ "$LINT" ]; then
#
# Check the following functions:
# list(), set(), dict()
grep -R --include="*.py*" -E "(list|dict|[^frozen]set)\([^\{)=]* for .* in [^}]*\)"
grep -R --include="*.py*" -E "(list|dict|[^frozen]set)\([^\{)=]* for .* in [^}]*\)" .

if [ $? = "0" ]; then
RET=1
Expand Down

0 comments on commit 31446b7

Please sign in to comment.