mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 06:14:17 +00:00
Fix typos
This commit is contained in:
parent
ff8988bd58
commit
175c9ae3bc
3 changed files with 5 additions and 5 deletions
|
|
@ -90,13 +90,13 @@ class FlakesChecker(pyflakes.checker.Checker):
|
||||||
for exclude in self.exclude_from_doctest:
|
for exclude in self.exclude_from_doctest:
|
||||||
if exclude != "" and filename.startswith(exclude):
|
if exclude != "" and filename.startswith(exclude):
|
||||||
with_doctest = False
|
with_doctest = False
|
||||||
overlaped_by = [
|
overlapped_by = [
|
||||||
include
|
include
|
||||||
for include in included_by
|
for include in included_by
|
||||||
if include.startswith(exclude)
|
if include.startswith(exclude)
|
||||||
]
|
]
|
||||||
|
|
||||||
if overlaped_by:
|
if overlapped_by:
|
||||||
with_doctest = True
|
with_doctest = True
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
"""Functions for construcing the requested report plugin."""
|
"""Functions for constructing the requested report plugin."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ _Logical = Tuple[List[str], List[str], _LogicalMapping]
|
||||||
|
|
||||||
|
|
||||||
class FileProcessor:
|
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,
|
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
|
and AST trees. This also provides a way of passing state about the file
|
||||||
|
|
@ -63,7 +63,7 @@ class FileProcessor:
|
||||||
options: argparse.Namespace,
|
options: argparse.Namespace,
|
||||||
lines: list[str] | None = None,
|
lines: list[str] | None = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Initialice our file processor.
|
"""Initialize our file processor.
|
||||||
|
|
||||||
:param filename: Name of the file to process
|
:param filename: Name of the file to process
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue