diff --git a/src/flake8/plugins/pyflakes.py b/src/flake8/plugins/pyflakes.py index 7b99fd4..cffea36 100644 --- a/src/flake8/plugins/pyflakes.py +++ b/src/flake8/plugins/pyflakes.py @@ -90,13 +90,13 @@ class FlakesChecker(pyflakes.checker.Checker): for exclude in self.exclude_from_doctest: if exclude != "" and filename.startswith(exclude): with_doctest = False - overlaped_by = [ + overlapped_by = [ include for include in included_by if include.startswith(exclude) ] - if overlaped_by: + if overlapped_by: with_doctest = True super().__init__( diff --git a/src/flake8/plugins/reporter.py b/src/flake8/plugins/reporter.py index f63b20c..a5749c0 100644 --- a/src/flake8/plugins/reporter.py +++ b/src/flake8/plugins/reporter.py @@ -1,4 +1,4 @@ -"""Functions for construcing the requested report plugin.""" +"""Functions for constructing the requested report plugin.""" from __future__ import annotations import argparse diff --git a/src/flake8/processor.py b/src/flake8/processor.py index 77f3d5a..16fa16b 100644 --- a/src/flake8/processor.py +++ b/src/flake8/processor.py @@ -27,7 +27,7 @@ _Logical = Tuple[List[str], List[str], _LogicalMapping] class FileProcessor: - """Processes a file and holdes state. + """Processes a file and holds state. This processes a file by generating tokens, logical and physical lines, and AST trees. This also provides a way of passing state about the file @@ -63,7 +63,7 @@ class FileProcessor: options: argparse.Namespace, lines: list[str] | None = None, ) -> None: - """Initialice our file processor. + """Initialize our file processor. :param filename: Name of the file to process """