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

Method processing_file

src/flake8/style_guide.py:337–341  ·  view source on GitHub ↗

Record the fact that we're processing the file's results.

(self, filename: str)

Source from the content-addressed store, hash-verified

335
336 @contextlib.contextmanager
337 def processing_file(self, filename: str) -> Generator[StyleGuide]:
338 """Record the fact that we're processing the file's results."""
339 self.formatter.beginning(filename)
340 yield self
341 self.formatter.finished(filename)
342
343 def applies_to(self, filename: str) -> bool:
344 """Check if this StyleGuide applies to the file.

Callers 2

reportMethod · 0.45
processing_fileMethod · 0.45

Calls 2

beginningMethod · 0.80
finishedMethod · 0.80

Tested by

no test coverage detected