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
177
+
#
178
+
# @example
179
+
# make pycodestyle-benchmarks
180
+
#
181
+
# @example
182
+
# make pycodestyle-benchmarks PYTHON_BENCHMARKS_FILTER=.*/math/base/special/abs/.*
183
+
#/
130
184
pycodestyle-benchmarks:
131
185
ifeq ($(FAIL_FAST), true)
132
186
$(QUIET) $(FIND_PYTHON_BENCHMARKS_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
@@ -144,11 +198,20 @@ endif
144
198
145
199
.PHONY: pycodestyle-benchmarks
146
200
147
-
148
-
#Check Python code style.
201
+
#/
202
+
#Lints code style for a specified list of Python files.
149
203
#
150
-
# This target lints Python files. Note that we expect `$FILES` to be a Python file list.
151
-
204
+
# ## Notes
205
+
#
206
+
# - 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`).
207
+
#
208
+
# @private
209
+
# @param {string} FILES - list of Python file paths
210
+
# @param {*} [FAST_FAIL] - flag indicating whether to stop linting upon encountering a lint error
211
+
#
212
+
# @example
213
+
# make pycodestyle-files FILES='/foo/file.py /bar/file.py'
0 commit comments