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

Method read_lines

src/flake8/processor.py:332–339  ·  view source on GitHub ↗

Read the lines for this file checker.

(self)

Source from the content-addressed store, hash-verified

330 return line
331
332 def read_lines(self) -> list[str]:
333 """Read the lines for this file checker."""
334 if self.filename == "-":
335 self.filename = self.options.stdin_display_name or "stdin"
336 lines = self.read_lines_from_stdin()
337 else:
338 lines = self.read_lines_from_filename()
339 return lines
340
341 def read_lines_from_filename(self) -> list[str]:
342 """Read the lines for a file."""

Callers 1

__init__Method · 0.95

Calls 2

read_lines_from_stdinMethod · 0.95

Tested by

no test coverage detected