You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @param {*} [FAST_FAIL] - flag indicating whether to stop linting upon encountering a lint error
180
+
#
181
+
# @example
182
+
# make pylint-benchmarks
183
+
#
184
+
# @example
185
+
# make pylint-benchmarks PYTHON_BENCHMARKS_FILTER=.*/math/base/special/abs/.*
186
+
#/
132
187
pylint-benchmarks:
133
188
ifeq ($(FAIL_FAST), true)
134
189
$(QUIET) $(FIND_PYTHON_BENCHMARKS_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
@@ -146,11 +201,20 @@ endif
146
201
147
202
.PHONY: pylint-benchmarks
148
203
149
-
150
-
#Check Python code quality.
204
+
#/
205
+
#Lints code quality for a specified list of Python files.
151
206
#
152
-
# This target lints Python files. Note that we expect `$FILES` to be a Python file list.
153
-
207
+
# ## Notes
208
+
#
209
+
# - This rule is useful when wanting to lint a list of Python files generated by some other command (e.g., a list of changed Python files obtained via `git diff`).
210
+
#
211
+
# @private
212
+
# @param {string} FILES - list of Python file paths
213
+
# @param {*} [FAST_FAIL] - flag indicating whether to stop linting upon encountering a lint error
214
+
#
215
+
# @example
216
+
# make pylint-files FILES='/foo/file.py /bar/file.py'
0 commit comments