Skip to content

Commit 371c22f

Browse files
committed
Remove lint rule; postpone to new issue
1 parent 31446b7 commit 371c22f

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

ci/lint.sh

+1-14
Original file line numberDiff line numberDiff line change
@@ -90,26 +90,13 @@ if [ "$LINT" ]; then
9090
#
9191
# Check the following functions:
9292
# any(), all(), sum(), max(), min(), list(), dict(), set(), frozenset(), tuple(), str.join()
93-
grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)" .
93+
grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)"
9494

9595
if [ $? = "0" ]; then
9696
RET=1
9797
fi
9898
echo "Check for use of lists instead of generators in built-in Python functions DONE"
9999

100-
echo "Check for use of comprehensions using set(), dict() or list()"
101-
102-
# Example: Avoid `list(i for i in some_iterator)` in favor of `[i for i in some_iterator]`
103-
#
104-
# Check the following functions:
105-
# list(), set(), dict()
106-
grep -R --include="*.py*" -E "(list|dict|[^frozen]set)\([^\{)=]* for .* in [^}]*\)" .
107-
108-
if [ $? = "0" ]; then
109-
RET=1
110-
fi
111-
echo "Check for use of comprehensions using set(), dict() or list() DONE"
112-
113100
else
114101
echo "NOT Linting"
115102
fi

0 commit comments

Comments
 (0)