Merge pull request #2075 from cfi-gb/add_remote_correction
Add remot->remote correction.
diff --git a/.github/workflows/codespell-private.yml b/.github/workflows/codespell-private.yml
index 1d19303..6ca080a 100644
--- a/.github/workflows/codespell-private.yml
+++ b/.github/workflows/codespell-private.yml
@@ -56,4 +56,4 @@
steps:
- uses: actions/checkout@v2
- name: Flake8 with annotations
- uses: TrueBrain/actions-flake8@v1.2
+ uses: TrueBrain/actions-flake8@v2
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py
old mode 100755
new mode 100644
index d8bb6ef..becf4d4
--- a/codespell_lib/_codespell.py
+++ b/codespell_lib/_codespell.py
@@ -17,8 +17,6 @@
Copyright (C) 2011 ProFUSION embedded systems
"""
-from __future__ import print_function
-
import argparse
import codecs
import configparser
@@ -54,7 +52,7 @@
# realistic for obscure words
('clear', 'for unambiguous errors', '',
False, None, supported_languages_en, None),
- ('rare', 'for rare but valid words', '_rare',
+ ('rare', 'for rare (but valid) words which are likely to be errors', '_rare', # noqa: E501
None, None, None, None),
('informal', 'for making informal words more formal', '_informal',
True, True, supported_languages_en, supported_languages_en),
diff --git a/codespell_lib/data/dictionary.txt b/codespell_lib/data/dictionary.txt
index b607224..f4febb6 100644
--- a/codespell_lib/data/dictionary.txt
+++ b/codespell_lib/data/dictionary.txt
@@ -1952,6 +1952,8 @@
apdated->updated
apear->appear
apeared->appeared
+apect->aspect
+apects->aspects
apeends->appends
apend->append
apendage->appendage
@@ -6741,6 +6743,9 @@
configuerd->configured
configuered->configured
configues->configures
+configulate->configurate
+configulation->configuration
+configulations->configurations
configuraion->configuration
configuraiton->configuration
configuratiens->configurations
@@ -12074,6 +12079,8 @@
examing->examining
examinining->examining
examles->examples
+examlpe->example
+examlpes->examples
examnple->example
examnples->examples
exampel->example
@@ -12180,6 +12187,9 @@
exceotion->exemption
exceotions->exemptions
excepetion->exception
+excepion->exception
+excepional->exceptional
+excepionally->exceptionally
excepions->exceptions
exceprt->excerpt
exceprts->excerpts
@@ -13841,7 +13851,7 @@
flushs->flushes
flusing->flushing
flyes->flies, flyers,
-fo->of, for,
+fo->of, for, to,
focu->focus
focued->focused
focument->document
@@ -17690,6 +17700,7 @@
labling->labeling, labelling,
labouriously->laboriously
labratory->laboratory
+laer->later, layer,
laguage->language
laguages->languages
laguague->language
@@ -17963,6 +17974,8 @@
lightyear->light year
lightyears->light years
ligth->light
+ligthing->lighting
+ligths->lights
lik->like, lick, link,
likeley->likely
likelyhood->likelihood
@@ -17971,6 +17984,8 @@
likley->likely
likly->likely
lileral->literal
+limiation->limitation
+limiations->limitations
liminted->limited
limitaion->limitation
limite->limit
@@ -18951,6 +18966,7 @@
mispell->misspell
mispelled->misspelled
mispelling->misspelling
+mispellings->misspellings
mispelt->misspelt
mispronounciation->mispronunciation
missconfiguration->misconfiguration
@@ -20158,6 +20174,7 @@
notfication->notification
notfications->notifications
noth->north
+nothe->note, north,
nothern->northern
nothign->nothing
nothigng->nothing
@@ -21305,6 +21322,7 @@
paritioning->partitioning
paritition->partition
parititions->partitions
+paritiy->parity
parituclar->particular
parliment->parliament
parm->param, pram, Parma,
@@ -25513,7 +25531,7 @@
resturants->restaurants
resturaunt->restaurant
resturaunts->restaurants
-resturn->return
+resturn->return, returns,
resturns->returns
resubstituion->resubstitution
resuction->reduction
@@ -30901,6 +30919,7 @@
universtiy->university
univesities->universities
univesity->university
+univiersal->universal
univrsal->universal
unkmown->unknown
unknon->unknown
@@ -32154,6 +32173,7 @@
whethe->whether
whethter->whether
whheel->wheel
+whhen->when
whic->which
whicg->which
which;s->which's
@@ -32553,17 +32573,44 @@
yuo->you
yuor->your
yur->your
+zar->czar
+zars->czars
zeebra->zebra
+zefer->zephyr
+zefers->zephyrs
+zellot->zealot
+zellots->zealots
zick-zack->zig-zag
zimmap->zipmap
zimpaps->zipmaps
+zink->zinc
ziped->zipped
ziper->zipper
ziping->zipping
zlot->slot
zombe->zombie
zomebie->zombie
+zoocheenei->zucchinis
+zoocheeni->zucchini
+zoocheinei->zucchinis
+zoocheini->zucchini
+zookeenee->zucchini
+zookeenees->zucchinis
+zookeenei->zucchinis
+zookeeni->zucchini
+zookeinee->zucchini
+zookeinees->zucchinis
+zookeinei->zucchinis
+zookeini->zucchini
+zucheenei->zucchinis
+zucheeni->zucchini
+zukeenee->zucchini
+zukeenees->zucchinis
+zukeenei->zucchinis
+zukeeni->zucchini
zuser->user
+zylophone->xylophone
+zylophones->xylophone
__attribyte__->__attribute__
__cpluspus->__cplusplus
__cpusplus->__cplusplus
diff --git a/codespell_lib/data/dictionary_rare.txt b/codespell_lib/data/dictionary_rare.txt
index 4a675fe..075dde4 100644
--- a/codespell_lib/data/dictionary_rare.txt
+++ b/codespell_lib/data/dictionary_rare.txt
@@ -135,6 +135,8 @@
sate->state
sates->states
savable->saveable
+scrip->script
+scrips->scripts
setts->sets
shat->that, shit,
sightly->slightly
diff --git a/codespell_lib/tests/test_basic.py b/codespell_lib/tests/test_basic.py
index 80a725f..0328b41 100644
--- a/codespell_lib/tests/test_basic.py
+++ b/codespell_lib/tests/test_basic.py
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
-from __future__ import print_function
-
import contextlib
import inspect
import os
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 222c296..feb9b99 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -2,7 +2,7 @@
version: git
summary: Check code for common misspellings
description: |
- Codespell fixes common mispellings in text files.It's designed
+ Codespell fixes common misspellings in text files. It's designed
primarily for checking misspelled words in source code, but it can
be used with other files as well.
grade: stable