MCPcopy Create free account
hub / github.com/PyCQA/flake8 / is_using_stdin

Function is_using_stdin

src/flake8/utils.py:203–211  ·  view source on GitHub ↗

Determine if we're going to read from stdin. :param paths: The paths that we're going to check. :returns: True if stdin (-) is in the path, otherwise False

(paths: list[str])

Source from the content-addressed store, hash-verified

201
202
203def is_using_stdin(paths: list[str]) -> bool:
204 """Determine if we're going to read from stdin.
205
206 :param paths:
207 The paths that we're going to check.
208 :returns:
209 True if stdin (-) is in the path, otherwise False
210 """
211 return "-" in paths
212
213
214def fnmatch(filename: str, patterns: Sequence[str]) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected