diff options
| author | Anthony Sottile <asottile@umich.edu> | 2020-09-20 19:15:15 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2020-09-20 19:16:10 -0700 |
| commit | 2fe70dda6b6327b00f318e121016f3ca372461c2 (patch) | |
| tree | c4a2ea2bae5e8570c7110633f9b2be8959bad089 | |
| parent | 93209ffac9f7dd5a1bdf2f3a01409d18339554a5 (diff) | |
| download | flake8-2fe70dda6b6327b00f318e121016f3ca372461c2.tar.gz | |
fix a few small spelling issues
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
| -rw-r--r-- | docs/source/internal/checker.rst | 2 | ||||
| -rw-r--r-- | docs/source/internal/index.rst | 2 | ||||
| -rw-r--r-- | docs/source/release-notes/3.7.7.rst | 4 | ||||
| -rw-r--r-- | docs/source/release-notes/3.8.2.rst | 2 | ||||
| -rw-r--r-- | docs/source/user/violations.rst | 2 | ||||
| -rw-r--r-- | src/flake8/checker.py | 2 | ||||
| -rw-r--r-- | src/flake8/defaults.py | 2 | ||||
| -rw-r--r-- | src/flake8/main/mercurial.py | 2 | ||||
| -rw-r--r-- | src/flake8/main/vcs.py | 2 | ||||
| -rw-r--r-- | src/flake8/options/config.py | 2 | ||||
| -rw-r--r-- | src/flake8/options/manager.py | 2 | ||||
| -rw-r--r-- | src/flake8/utils.py | 2 | ||||
| -rw-r--r-- | tests/unit/test_file_processor.py | 2 | ||||
| -rw-r--r-- | tests/unit/test_legacy_api.py | 4 |
14 files changed, 16 insertions, 16 deletions
diff --git a/docs/source/internal/checker.rst b/docs/source/internal/checker.rst index d11117c..35eac0e 100644 --- a/docs/source/internal/checker.rst +++ b/docs/source/internal/checker.rst @@ -5,7 +5,7 @@ In |Flake8| 2.x, |Flake8| delegated check running to pep8. In 3.0 |Flake8| takes on that responsibility. This has allowed for simpler handling of the ``--jobs`` parameter (using :mod:`multiprocessing`) and -simplified our fallback if something goes awry with concurency. +simplified our fallback if something goes awry with concurrency. At the lowest level we have a |FileChecker|. Instances of |FileChecker| are created for *each* file to be analyzed by |Flake8|. Each instance, has a copy of all of the plugins registered with setuptools in the ``flake8.extension`` diff --git a/docs/source/internal/index.rst b/docs/source/internal/index.rst index 9e31d0b..a6a203b 100644 --- a/docs/source/internal/index.rst +++ b/docs/source/internal/index.rst @@ -4,7 +4,7 @@ While writing |Flake8| 3.0, the developers attempted to capture some reasoning and decision information in internal documentation meant for future developers -and maintaners. Most of this information is unnecessary for users and plugin +and maintainers. Most of this information is unnecessary for users and plugin developers. Some of it, however, is linked to from the plugin development documentation. diff --git a/docs/source/release-notes/3.7.7.rst b/docs/source/release-notes/3.7.7.rst index 2928906..7948f00 100644 --- a/docs/source/release-notes/3.7.7.rst +++ b/docs/source/release-notes/3.7.7.rst @@ -6,8 +6,8 @@ You can view the `3.7.7 milestone`_ on GitLab for more details. Bugs Fixed ~~~~~~~~~~ -- Fix crahes in plugins causing ``flake8`` to hang while unpickling errors (See - also `GitLab!308`_, `GitLab#505`_) +- Fix crashes in plugins causing ``flake8`` to hang while unpickling errors + (See also `GitLab!308`_, `GitLab#505`_) .. all links diff --git a/docs/source/release-notes/3.8.2.rst b/docs/source/release-notes/3.8.2.rst index 9fbb79f..813858e 100644 --- a/docs/source/release-notes/3.8.2.rst +++ b/docs/source/release-notes/3.8.2.rst @@ -6,7 +6,7 @@ You can view the `3.8.2 milestone`_ on GitLab for more details. Bugs Fixed ~~~~~~~~~~ -- Improve performance by eliminating unncessary sort (See also `GitLab!429`_) +- Improve performance by eliminating unnecessary sort (See also `GitLab!429`_) - Improve messaging of ``--jobs`` argument by utilizing ``argparse`` (See also `GitLab!428`_, `GitLab#567`_) diff --git a/docs/source/user/violations.rst b/docs/source/user/violations.rst index 8681276..e7591e7 100644 --- a/docs/source/user/violations.rst +++ b/docs/source/user/violations.rst @@ -196,7 +196,7 @@ Now let's select all ``E`` class violations: example.py:4:9: E131 continuation line unaligned for hanging indent example.py:5:9: E121 continuation line under-indented for hanging indent -Suddenly we now have far more erors that are reported to us. Using +Suddenly we now have far more errors that are reported to us. Using ``--select`` alone will override the default ``--ignore`` list. In these cases, the user is telling us that they want all ``E`` violations and so we ignore our list of violations that we ignore by default. diff --git a/src/flake8/checker.py b/src/flake8/checker.py index be1c7f7..b4ef97d 100644 --- a/src/flake8/checker.py +++ b/src/flake8/checker.py @@ -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 diff --git a/src/flake8/defaults.py b/src/flake8/defaults.py index 72452a7..1d32bd7 100644 --- a/src/flake8/defaults.py +++ b/src/flake8/defaults.py @@ -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, ) diff --git a/src/flake8/main/mercurial.py b/src/flake8/main/mercurial.py index 4ea410a..c387e84 100644 --- a/src/flake8/main/mercurial.py +++ b/src/flake8/main/mercurial.py @@ -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 diff --git a/src/flake8/main/vcs.py b/src/flake8/main/vcs.py index da2f4ff..bf15395 100644 --- a/src/flake8/main/vcs.py +++ b/src/flake8/main/vcs.py @@ -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} diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index eaa2b4e..3dbaae7 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -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. """ diff --git a/src/flake8/options/manager.py b/src/flake8/options/manager.py index d076862..09bf862 100644 --- a/src/flake8/options/manager.py +++ b/src/flake8/options/manager.py @@ -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: diff --git a/src/flake8/utils.py b/src/flake8/utils.py index e0c221a..8963011 100644 --- a/src/flake8/utils.py +++ b/src/flake8/utils.py @@ -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 diff --git a/tests/unit/test_file_processor.py b/tests/unit/test_file_processor.py index af7717e..0215ddf 100644 --- a/tests/unit/test_file_processor.py +++ b/tests/unit/test_file_processor.py @@ -228,7 +228,7 @@ def test_keyword_arguments_for_does_not_handle_attribute_errors( ('line 1\n\nline 2\n', ['line 1', '', 'line 2']), ]) def test_split_line(unsplit_line, expected_lines, default_options): - """Verify the token line spliting.""" + """Verify the token line splitting.""" file_processor = processor.FileProcessor('-', default_options, lines=[ 'Line 1', ]) diff --git a/tests/unit/test_legacy_api.py b/tests/unit/test_legacy_api.py index 0a3f884..20d5293 100644 --- a/tests/unit/test_legacy_api.py +++ b/tests/unit/test_legacy_api.py @@ -42,7 +42,7 @@ def test_get_style_guide(): def test_styleguide_options(): - """Show tha we proxy the StyleGuide.options attribute.""" + """Show that we proxy the StyleGuide.options attribute.""" app = mock.Mock() app.options = 'options' style_guide = api.StyleGuide(app) @@ -50,7 +50,7 @@ def test_styleguide_options(): def test_styleguide_paths(): - """Show tha we proxy the StyleGuide.paths attribute.""" + """Show that we proxy the StyleGuide.paths attribute.""" app = mock.Mock() app.paths = 'paths' style_guide = api.StyleGuide(app) |
