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:
Anthony Sottile 2020-09-20 19:15:15 -07:00
parent 93209ffac9
commit 2fe70dda6b
14 changed files with 16 additions and 16 deletions

View file

@ -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

View file

@ -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,
)

View file

@ -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

View file

@ -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}

View file

@ -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.
"""

View file

@ -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:

View file

@ -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