mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 12:36:54 +00:00
fix a few small spelling issues
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
This commit is contained in:
parent
93209ffac9
commit
2fe70dda6b
14 changed files with 16 additions and 16 deletions
|
|
@ -109,7 +109,7 @@ class Manager(object):
|
|||
# First we walk through all of our error cases:
|
||||
# - multiprocessing library is not present
|
||||
# - we're running on windows in which case we know we have significant
|
||||
# implemenation issues
|
||||
# implementation issues
|
||||
# - the user provided stdin and that's not something we can handle
|
||||
# well
|
||||
# - we're processing a diff, which again does not work well with
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ NOQA_INLINE_REGEXP = re.compile(
|
|||
# We do not want to capture the ``: `` that follows ``noqa``
|
||||
# We do not care about the casing of ``noqa``
|
||||
# We want a comma-separated list of errors
|
||||
# https://regex101.com/r/4XUuax/2 full explenation of the regex
|
||||
# https://regex101.com/r/4XUuax/2 full explanation of the regex
|
||||
r"# noqa(?::[\s]?(?P<codes>([A-Z]+[0-9]+(?:[,\s]+)?)+))?",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ def hook(ui, repo, **kwargs):
|
|||
around Hooks: https://www.mercurial-scm.org/wiki/Hook.
|
||||
|
||||
We avoid using the ``ui`` attribute because it can cause issues with
|
||||
the GPL license tha Mercurial is under. We don't import it, but we
|
||||
the GPL license that Mercurial is under. We don't import it, but we
|
||||
avoid using it all the same.
|
||||
"""
|
||||
from flake8.main import application
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ from flake8.main import mercurial
|
|||
# NOTE(sigmavirus24): In the future, we may allow for VCS hooks to be defined
|
||||
# as plugins, e.g., adding a flake8.vcs entry-point. In that case, this
|
||||
# dictionary should disappear, and this module might contain more code for
|
||||
# managing those bits (in conjuntion with flake8.plugins.manager).
|
||||
# managing those bits (in conjunction with flake8.plugins.manager).
|
||||
_INSTALLERS = {"git": git.install, "mercurial": mercurial.install}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class ConfigFileFinder(object):
|
|||
:param list extra_config_files:
|
||||
Extra configuration files specified by the user to read.
|
||||
:param str config_file:
|
||||
Configuration file override to only read configuraiton from.
|
||||
Configuration file override to only read configuration from.
|
||||
:param bool ignore_config_files:
|
||||
Determine whether to ignore configuration files or not.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class Option(object):
|
|||
Number of arguments to parse for this option.
|
||||
:param const:
|
||||
Constant value to store on a common destination. Usually used in
|
||||
conjuntion with ``action="store_const"``.
|
||||
conjunction with ``action="store_const"``.
|
||||
:param iterable choices:
|
||||
Possible values for the option.
|
||||
:param str help:
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ def _tokenize_files_to_codes_mapping(value):
|
|||
|
||||
def parse_files_to_codes_mapping(value_): # noqa: C901
|
||||
# type: (Union[Sequence[str], str]) -> List[Tuple[str, List[str]]]
|
||||
"""Parse a files-to-codes maping.
|
||||
"""Parse a files-to-codes mapping.
|
||||
|
||||
A files-to-codes mapping a sequence of values specified as
|
||||
`filenames list:codes list ...`. Each of the lists may be separated by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue