Skip to content

Commit 566a377

Browse files
Fix typos over the whole codebase (#5540)
Co-authored-by: Daniël van Noord <[email protected]>
1 parent d59c6f7 commit 566a377

30 files changed

+57
-55
lines changed

CONTRIBUTORS.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ contributors:
381381

382382
* Damien Baty: contributor
383383

384-
* Daniel R. Neal (danrneal): contributer
384+
* Daniel R. Neal (danrneal): contributor
385385

386-
* Jeremy Fleischman (jfly): contributer
386+
* Jeremy Fleischman (jfly): contributor
387387

388388
* Shiv Venkatasubrahmanyam
389389

@@ -593,3 +593,5 @@ contributors:
593593
- Fixed issue 5452, false positive missing-param-doc for multi-line Google-style params
594594

595595
* Eero Vuojolahti: contributor
596+
597+
* Kian-Meng, Ang: contributor

ChangeLog

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Release date: TBA
5656

5757
Closes #5504
5858

59-
* The ``PyLinter`` class will now be initialiazed with a ``TextReporter``
59+
* The ``PyLinter`` class will now be initialized with a ``TextReporter``
6060
as its reporter if none is provided.
6161

6262
* Fatal errors now emit a score of 0.0 regardless of whether the linted module
@@ -207,8 +207,8 @@ Release date: 2021-11-24
207207
output files without these will trigger a ``DeprecationWarning``. Expected output files
208208
can be easily updated with the ``python tests/test_functional.py --update-functional-output`` command.
209209

210-
* The functional ``testutils`` now correctly check the distinction betweeen ``HIGH`` and
211-
``UNDEFINED`` confidence. Expected output files without defiend ``confidence`` levels will now
210+
* The functional ``testutils`` now correctly check the distinction between ``HIGH`` and
211+
``UNDEFINED`` confidence. Expected output files without defined ``confidence`` levels will now
212212
trigger a ``DeprecationWarning``. Expected output files can be easily updated with the
213213
``python tests/test_functional.py --update-functional-output`` command.
214214

@@ -331,7 +331,7 @@ Release date: 2021-11-24
331331

332332
Closes #5194
333333

334-
* Fix double emitting of ``not-callable`` on inferrable ``properties``
334+
* Fix double emitting of ``not-callable`` on inferable ``properties``
335335

336336
Closes #4426
337337

@@ -495,7 +495,7 @@ Release date: 2021-09-16
495495
Closes #4776
496496

497497

498-
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependant checks.
498+
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependent checks.
499499
Will default to whatever Python version pylint is executed with.
500500

501501
* ``CodeStyleChecker``
@@ -514,7 +514,7 @@ Release date: 2021-09-16
514514

515515
Closes #4751
516516

517-
* https is now prefered in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org
517+
* https is now preferred in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org
518518

519519
Closes #3802
520520

@@ -728,7 +728,7 @@ Release date: 2021-08-20
728728
* Fixed bug with ``cell-var-from-loop`` checker: it no longer has false negatives when
729729
both ``unused-variable`` and ``used-before-assignment`` are disabled.
730730

731-
* Fix false postive for ``invalid-all-format`` if the list or tuple builtin functions are used
731+
* Fix false positive for ``invalid-all-format`` if the list or tuple builtin functions are used
732732

733733
Closes #4711
734734

@@ -1456,7 +1456,7 @@ Release date: 2021-02-21
14561456

14571457
Close #3862
14581458

1459-
* Fix linter multiprocessing pool shutdown (triggered warnings when runned in parallels with other pytest plugins)
1459+
* Fix linter multiprocessing pool shutdown (triggered warnings when ran in parallels with other pytest plugins)
14601460

14611461
Closes #3779
14621462

@@ -1483,7 +1483,7 @@ Release date: 2021-02-21
14831483

14841484
Closes #3468
14851485

1486-
* Fix ``useless-super-delegation`` false positive when default keyword argument is a dictionnary.
1486+
* Fix ``useless-super-delegation`` false positive when default keyword argument is a dictionary.
14871487

14881488
Close #3773
14891489

@@ -3484,7 +3484,7 @@ Release date: 2017-04-13
34843484

34853485
This message is emitted when pylint finds an one-element tuple,
34863486
created by a stray comma. This can suggest a potential problem in the
3487-
code and it is recommended to use parantheses in order to emphasise the
3487+
code and it is recommended to use parentheses in order to emphasise the
34883488
creation of a tuple, rather than relying on the comma itself.
34893489

34903490
* Don't emit not-callable for instances with unknown bases.
@@ -4184,7 +4184,7 @@ Release date: 2015-11-29
41844184
directory 'test/extensions' and documentation file 'doc/extensions.rst'.
41854185

41864186
* Added new checker 'extensions.check_docs' that verifies parameter
4187-
documention in Sphinx, Google, and Numpy style.
4187+
documentation in Sphinx, Google, and Numpy style.
41884188

41894189
* Detect undefined variable cases, where the "definition" of an undefined
41904190
variable was in del statement. Instead of emitting used-before-assignment,
@@ -4280,7 +4280,7 @@ Release date: 2015-11-29
42804280
two a binary arithmetic operation is executed between two objects
42814281
which don't support it (a number plus a string for instance).
42824282
This is currently disabled, since the it exhibits way too many false
4283-
positives, but it will be reenabled as soon as possible.
4283+
positives, but it will be re-enabled as soon as possible.
42844284

42854285
* New imported features from astroid into pyreverse: pyreverse.inspector.Project,
42864286
pyreverse.inspector.project_from_files and pyreverse.inspector.interfaces.
@@ -5255,7 +5255,7 @@ Release date: 2012-10-05
52555255

52565256
* #105337: allow custom reporter in output-format (patch by Kevin Jing Qiu)
52575257

5258-
* #104420: check for protocol completness and avoid false R0903
5258+
* #104420: check for protocol completeness and avoid false R0903
52595259
(patch by Peter Hammond)
52605260

52615261
* #100654: fix grammatical error for W0332 message (using 'l' as
@@ -5283,7 +5283,7 @@ Release date: 2012-07-17
52835283
except handler contains a tuple of names instead of a single name.
52845284
(patch by [email protected])
52855285

5286-
* #7394: W0212 (access to protected member) not emitted on assigments
5286+
* #7394: W0212 (access to protected member) not emitted on assignments
52875287
(patch by [email protected])
52885288

52895289
* #18772; no prototype consistency check for mangled methods (patch by
@@ -5878,7 +5878,7 @@ Release date: 2006-03-06
58785878
- the C0101 check with its min-name-length option has
58795879
been removed (this can be specified in the regxp after all...)
58805880
- W0103 and W0121 are now handled by the variables checker
5881-
(W0103 is now W0603 and W0604 has been splitted into different messages)
5881+
(W0103 is now W0603 and W0604 has been split into different messages)
58825882
- W0131 and W0132 messages have been reclassified to C0111 and
58835883
C0112 respectively
58845884
- new W0104 message on statement without effect
@@ -5915,7 +5915,7 @@ Release date: 2006-01-10
59155915
or the default ~/.pylintrc or /etc/pylintrc
59165916

59175917
* fixed W0706 (Identifier used to raise an exception is assigned...)
5918-
false positive and reraising a catched exception instance
5918+
false positive and reraising a caught exception instance
59195919

59205920
* fixed E0611 (No name get in module blabla) false positive when accessing
59215921
to a class'__dict__

doc/whatsnew/2.11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Extensions
6767
Other Changes
6868
=============
6969

70-
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependant checks.
70+
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependent checks.
7171
Will default to whatever Python version pylint is executed with.
7272

7373
* The ``invalid-name`` message is now more detailed when using multiple naming style regexes.

doc/whatsnew/2.12.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ Other Changes
139139
output files without these will trigger a ``DeprecationWarning``. Expected output files
140140
can be easily updated with the ``python tests/test_functional.py --update-functional-output`` command.
141141

142-
* The functional ``testutils`` now correctly check the distinction betweeen ``HIGH`` and
143-
``UNDEFINED`` confidence. Expected output files without defiend ``confidence`` levels will now
142+
* The functional ``testutils`` now correctly check the distinction between ``HIGH`` and
143+
``UNDEFINED`` confidence. Expected output files without defined ``confidence`` levels will now
144144
trigger a ``DeprecationWarning``. Expected output files can be easily updated with the
145145
``python tests/test_functional.py --update-functional-output`` command.
146146

@@ -179,7 +179,7 @@ Other Changes
179179

180180
Closes #5261
181181

182-
* Fix double emitting of ``not-callable`` on inferrable ``properties``
182+
* Fix double emitting of ``not-callable`` on inferable ``properties``
183183

184184
Closes #4426
185185

doc/whatsnew/2.13.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Summary -- Release highlights
1010

1111
New checkers
1212
============
13-
* ``unnecessary-ellipsis``: Emmitted when the ellipsis constant is used unnecessarily.
13+
* ``unnecessary-ellipsis``: Emitted when the ellipsis constant is used unnecessarily.
1414

1515
Closes #5460
1616

doc/whatsnew/2.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Other Changes
3535

3636
* Fix false positive for ``builtin-not-iterating`` when ``zip`` or ``map`` receives iterable
3737

38-
* Fix linter multiprocessing pool shutdown which triggered warnings when runned in parallels with other pytest plugins.
38+
* Fix linter multiprocessing pool shutdown which triggered warnings when ran in parallels with other pytest plugins.
3939

4040
* Enums are now required to be named in UPPER_CASE by ``invalid-name``.
4141

examples/pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ confidence=
6666
# can either give multiple identifiers separated by comma (,) or put this
6767
# option multiple times (only on the command line, not in the configuration
6868
# file where it should appear only once). You can also use "--disable=all" to
69-
# disable everything first and then reenable specific checks. For example, if
69+
# disable everything first and then re-enable specific checks. For example, if
7070
# you want to run only the similarities checker, you can use "--disable=all
7171
# --enable=similarities". If you want to run only the classes checker, but have
7272
# no Warning level messages displayed, use "--disable=all --enable=classes

pylint/checkers/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def _check_keyword_parentheses(
452452
elif token[1] == "for":
453453
return
454454
# A generator expression can have an 'else' token in it.
455-
# We check the rest of the tokens to see if any problems incure after
455+
# We check the rest of the tokens to see if any problems incur after
456456
# the 'else'.
457457
elif token[1] == "else":
458458
if "(" in (i.string for i in tokens[i:]):

pylint/checkers/mapreduce_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MapReduceMixin(metaclass=abc.ABCMeta):
1212

1313
@abc.abstractmethod
1414
def get_map_data(self):
15-
"""Returns mergable/reducible data that will be examined"""
15+
"""Returns mergeable/reducible data that will be examined"""
1616

1717
@abc.abstractmethod
1818
def reduce_map_data(self, linter, data):

pylint/checkers/similar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"""a similarities / code duplication command line tool and pylint checker
3131
3232
The algorithm is based on comparing the hash value of n successive lines of a file.
33-
First the files are read and any line that doesn't fullfill requirement are removed (comments, docstrings...)
33+
First the files are read and any line that doesn't fulfill requirement are removed (comments, docstrings...)
3434
Those stripped lines are stored in the LineSet class which gives access to them.
3535
Then each index of the stripped lines collection is associated with the hash of n successive entries of the stripped lines starting at the current index
3636
(n is the minimum common lines option).
@@ -123,7 +123,7 @@ def __init__(
123123
self.effective_cmn_lines_nb = effective_cmn_lines_nb
124124

125125

126-
# Links the indices ot the starting line in both lineset's stripped lines to
126+
# Links the indices to the starting line in both lineset's stripped lines to
127127
# the start and end lines in both files
128128
CplIndexToCplLines_T = Dict["LineSetStartCouple", CplSuccessiveLinesLimits]
129129

0 commit comments

Comments
 (0)