summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKian Meng, Ang <kianmeng.ang@gmail.com>2021-12-18 00:23:17 +0800
committerGitHub <noreply@github.com>2021-12-17 17:23:17 +0100
commit566a377154ce68e795aa3f952bb70bd987045228 (patch)
tree9df38c7322c854fbeb44d65762e0dc9e879ac7fd
parentd59c6f77f1ab3d8c62fbdb080d492c4356ccc324 (diff)
downloadpylint-git-566a377154ce68e795aa3f952bb70bd987045228.tar.gz
Fix typos over the whole codebase (#5540)
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
-rw-r--r--CONTRIBUTORS.txt6
-rw-r--r--ChangeLog32
-rw-r--r--doc/whatsnew/2.11.rst2
-rw-r--r--doc/whatsnew/2.12.rst6
-rw-r--r--doc/whatsnew/2.13.rst2
-rw-r--r--doc/whatsnew/2.7.rst2
-rw-r--r--examples/pylintrc2
-rw-r--r--pylint/checkers/format.py2
-rw-r--r--pylint/checkers/mapreduce_checker.py2
-rw-r--r--pylint/checkers/similar.py4
-rw-r--r--pylint/checkers/variables.py2
-rwxr-xr-xpylint/epylint.py2
-rw-r--r--pylint/extensions/_check_docs_utils.py2
-rw-r--r--pylint/lint/pylinter.py6
-rw-r--r--pylint/lint/run.py2
-rw-r--r--pylintrc2
-rw-r--r--tests/benchmark/test_baseline_benchmarks.py2
-rw-r--r--tests/functional/a/assign/assignment_from_no_return_2.py4
-rw-r--r--tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py4
-rw-r--r--tests/functional/ext/docparams/yield/missing_yield_doc_Google.py2
-rw-r--r--tests/functional/ext/docparams/yield/missing_yield_doc_Numpy.py2
-rw-r--r--tests/functional/m/method_hidden.py2
-rw-r--r--tests/functional/n/not_callable.py2
-rw-r--r--tests/functional/o/overloaded_operator.py2
-rw-r--r--tests/functional/r/regression/regression_property_no_member_3269.py2
-rw-r--r--tests/functional/t/too/too_few_public_methods_excluded.py2
-rw-r--r--tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return.py6
-rw-r--r--tests/functional/u/useless/useless_else_on_loop.py2
-rw-r--r--tests/functional/u/useless/useless_super_delegation.py2
-rw-r--r--tests/unittest_reporting.py2
30 files changed, 57 insertions, 55 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 275225424..eee4da9a4 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -381,9 +381,9 @@ contributors:
* Damien Baty: contributor
-* Daniel R. Neal (danrneal): contributer
+* Daniel R. Neal (danrneal): contributor
-* Jeremy Fleischman (jfly): contributer
+* Jeremy Fleischman (jfly): contributor
* Shiv Venkatasubrahmanyam
@@ -593,3 +593,5 @@ contributors:
- Fixed issue 5452, false positive missing-param-doc for multi-line Google-style params
* Eero Vuojolahti: contributor
+
+* Kian-Meng, Ang: contributor
diff --git a/ChangeLog b/ChangeLog
index 069868d98..10137bdaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -56,7 +56,7 @@ Release date: TBA
Closes #5504
-* The ``PyLinter`` class will now be initialiazed with a ``TextReporter``
+* The ``PyLinter`` class will now be initialized with a ``TextReporter``
as its reporter if none is provided.
* Fatal errors now emit a score of 0.0 regardless of whether the linted module
@@ -207,8 +207,8 @@ Release date: 2021-11-24
output files without these will trigger a ``DeprecationWarning``. Expected output files
can be easily updated with the ``python tests/test_functional.py --update-functional-output`` command.
-* The functional ``testutils`` now correctly check the distinction betweeen ``HIGH`` and
- ``UNDEFINED`` confidence. Expected output files without defiend ``confidence`` levels will now
+* The functional ``testutils`` now correctly check the distinction between ``HIGH`` and
+ ``UNDEFINED`` confidence. Expected output files without defined ``confidence`` levels will now
trigger a ``DeprecationWarning``. Expected output files can be easily updated with the
``python tests/test_functional.py --update-functional-output`` command.
@@ -331,7 +331,7 @@ Release date: 2021-11-24
Closes #5194
-* Fix double emitting of ``not-callable`` on inferrable ``properties``
+* Fix double emitting of ``not-callable`` on inferable ``properties``
Closes #4426
@@ -495,7 +495,7 @@ Release date: 2021-09-16
Closes #4776
-* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependant checks.
+* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependent checks.
Will default to whatever Python version pylint is executed with.
* ``CodeStyleChecker``
@@ -514,7 +514,7 @@ Release date: 2021-09-16
Closes #4751
-* https is now prefered in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org
+* https is now preferred in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org
Closes #3802
@@ -728,7 +728,7 @@ Release date: 2021-08-20
* Fixed bug with ``cell-var-from-loop`` checker: it no longer has false negatives when
both ``unused-variable`` and ``used-before-assignment`` are disabled.
-* Fix false postive for ``invalid-all-format`` if the list or tuple builtin functions are used
+* Fix false positive for ``invalid-all-format`` if the list or tuple builtin functions are used
Closes #4711
@@ -1456,7 +1456,7 @@ Release date: 2021-02-21
Close #3862
-* Fix linter multiprocessing pool shutdown (triggered warnings when runned in parallels with other pytest plugins)
+* Fix linter multiprocessing pool shutdown (triggered warnings when ran in parallels with other pytest plugins)
Closes #3779
@@ -1483,7 +1483,7 @@ Release date: 2021-02-21
Closes #3468
-* Fix ``useless-super-delegation`` false positive when default keyword argument is a dictionnary.
+* Fix ``useless-super-delegation`` false positive when default keyword argument is a dictionary.
Close #3773
@@ -3484,7 +3484,7 @@ Release date: 2017-04-13
This message is emitted when pylint finds an one-element tuple,
created by a stray comma. This can suggest a potential problem in the
- code and it is recommended to use parantheses in order to emphasise the
+ code and it is recommended to use parentheses in order to emphasise the
creation of a tuple, rather than relying on the comma itself.
* Don't emit not-callable for instances with unknown bases.
@@ -4184,7 +4184,7 @@ Release date: 2015-11-29
directory 'test/extensions' and documentation file 'doc/extensions.rst'.
* Added new checker 'extensions.check_docs' that verifies parameter
- documention in Sphinx, Google, and Numpy style.
+ documentation in Sphinx, Google, and Numpy style.
* Detect undefined variable cases, where the "definition" of an undefined
variable was in del statement. Instead of emitting used-before-assignment,
@@ -4280,7 +4280,7 @@ Release date: 2015-11-29
two a binary arithmetic operation is executed between two objects
which don't support it (a number plus a string for instance).
This is currently disabled, since the it exhibits way too many false
- positives, but it will be reenabled as soon as possible.
+ positives, but it will be re-enabled as soon as possible.
* New imported features from astroid into pyreverse: pyreverse.inspector.Project,
pyreverse.inspector.project_from_files and pyreverse.inspector.interfaces.
@@ -5255,7 +5255,7 @@ Release date: 2012-10-05
* #105337: allow custom reporter in output-format (patch by Kevin Jing Qiu)
- * #104420: check for protocol completness and avoid false R0903
+ * #104420: check for protocol completeness and avoid false R0903
(patch by Peter Hammond)
* #100654: fix grammatical error for W0332 message (using 'l' as
@@ -5283,7 +5283,7 @@ Release date: 2012-07-17
except handler contains a tuple of names instead of a single name.
(patch by tmarek@google.com)
- * #7394: W0212 (access to protected member) not emitted on assigments
+ * #7394: W0212 (access to protected member) not emitted on assignments
(patch by lothiraldan@gmail.com)
* #18772; no prototype consistency check for mangled methods (patch by
@@ -5878,7 +5878,7 @@ Release date: 2006-03-06
- the C0101 check with its min-name-length option has
been removed (this can be specified in the regxp after all...)
- W0103 and W0121 are now handled by the variables checker
- (W0103 is now W0603 and W0604 has been splitted into different messages)
+ (W0103 is now W0603 and W0604 has been split into different messages)
- W0131 and W0132 messages have been reclassified to C0111 and
C0112 respectively
- new W0104 message on statement without effect
@@ -5915,7 +5915,7 @@ Release date: 2006-01-10
or the default ~/.pylintrc or /etc/pylintrc
* fixed W0706 (Identifier used to raise an exception is assigned...)
- false positive and reraising a catched exception instance
+ false positive and reraising a caught exception instance
* fixed E0611 (No name get in module blabla) false positive when accessing
to a class'__dict__
diff --git a/doc/whatsnew/2.11.rst b/doc/whatsnew/2.11.rst
index 647f326cd..8d098e140 100644
--- a/doc/whatsnew/2.11.rst
+++ b/doc/whatsnew/2.11.rst
@@ -67,7 +67,7 @@ Extensions
Other Changes
=============
-* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependant checks.
+* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependent checks.
Will default to whatever Python version pylint is executed with.
* The ``invalid-name`` message is now more detailed when using multiple naming style regexes.
diff --git a/doc/whatsnew/2.12.rst b/doc/whatsnew/2.12.rst
index 4704691d5..c47f2e91a 100644
--- a/doc/whatsnew/2.12.rst
+++ b/doc/whatsnew/2.12.rst
@@ -139,8 +139,8 @@ Other Changes
output files without these will trigger a ``DeprecationWarning``. Expected output files
can be easily updated with the ``python tests/test_functional.py --update-functional-output`` command.
-* The functional ``testutils`` now correctly check the distinction betweeen ``HIGH`` and
- ``UNDEFINED`` confidence. Expected output files without defiend ``confidence`` levels will now
+* The functional ``testutils`` now correctly check the distinction between ``HIGH`` and
+ ``UNDEFINED`` confidence. Expected output files without defined ``confidence`` levels will now
trigger a ``DeprecationWarning``. Expected output files can be easily updated with the
``python tests/test_functional.py --update-functional-output`` command.
@@ -179,7 +179,7 @@ Other Changes
Closes #5261
-* Fix double emitting of ``not-callable`` on inferrable ``properties``
+* Fix double emitting of ``not-callable`` on inferable ``properties``
Closes #4426
diff --git a/doc/whatsnew/2.13.rst b/doc/whatsnew/2.13.rst
index 31b6d4e36..72f071510 100644
--- a/doc/whatsnew/2.13.rst
+++ b/doc/whatsnew/2.13.rst
@@ -10,7 +10,7 @@ Summary -- Release highlights
New checkers
============
-* ``unnecessary-ellipsis``: Emmitted when the ellipsis constant is used unnecessarily.
+* ``unnecessary-ellipsis``: Emitted when the ellipsis constant is used unnecessarily.
Closes #5460
diff --git a/doc/whatsnew/2.7.rst b/doc/whatsnew/2.7.rst
index 35bdb9348..6c0fccf18 100644
--- a/doc/whatsnew/2.7.rst
+++ b/doc/whatsnew/2.7.rst
@@ -35,7 +35,7 @@ Other Changes
* Fix false positive for ``builtin-not-iterating`` when ``zip`` or ``map`` receives iterable
-* Fix linter multiprocessing pool shutdown which triggered warnings when runned in parallels with other pytest plugins.
+* Fix linter multiprocessing pool shutdown which triggered warnings when ran in parallels with other pytest plugins.
* Enums are now required to be named in UPPER_CASE by ``invalid-name``.
diff --git a/examples/pylintrc b/examples/pylintrc
index 2662898dc..eb48b4a1f 100644
--- a/examples/pylintrc
+++ b/examples/pylintrc
@@ -66,7 +66,7 @@ confidence=
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
-# disable everything first and then reenable specific checks. For example, if
+# disable everything first and then re-enable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py
index 0c0cb8752..54e571296 100644
--- a/pylint/checkers/format.py
+++ b/pylint/checkers/format.py
@@ -452,7 +452,7 @@ class FormatChecker(BaseTokenChecker):
elif token[1] == "for":
return
# A generator expression can have an 'else' token in it.
- # We check the rest of the tokens to see if any problems incure after
+ # We check the rest of the tokens to see if any problems incur after
# the 'else'.
elif token[1] == "else":
if "(" in (i.string for i in tokens[i:]):
diff --git a/pylint/checkers/mapreduce_checker.py b/pylint/checkers/mapreduce_checker.py
index 9b90c634a..b1722fc9b 100644
--- a/pylint/checkers/mapreduce_checker.py
+++ b/pylint/checkers/mapreduce_checker.py
@@ -12,7 +12,7 @@ class MapReduceMixin(metaclass=abc.ABCMeta):
@abc.abstractmethod
def get_map_data(self):
- """Returns mergable/reducible data that will be examined"""
+ """Returns mergeable/reducible data that will be examined"""
@abc.abstractmethod
def reduce_map_data(self, linter, data):
diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py
index f9cb9edbc..cadee9f70 100644
--- a/pylint/checkers/similar.py
+++ b/pylint/checkers/similar.py
@@ -30,7 +30,7 @@
"""a similarities / code duplication command line tool and pylint checker
The algorithm is based on comparing the hash value of n successive lines of a file.
-First the files are read and any line that doesn't fullfill requirement are removed (comments, docstrings...)
+First the files are read and any line that doesn't fulfill requirement are removed (comments, docstrings...)
Those stripped lines are stored in the LineSet class which gives access to them.
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
(n is the minimum common lines option).
@@ -123,7 +123,7 @@ class CplSuccessiveLinesLimits:
self.effective_cmn_lines_nb = effective_cmn_lines_nb
-# Links the indices ot the starting line in both lineset's stripped lines to
+# Links the indices to the starting line in both lineset's stripped lines to
# the start and end lines in both files
CplIndexToCplLines_T = Dict["LineSetStartCouple", CplSuccessiveLinesLimits]
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 27ad863f8..82b99a805 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -1795,7 +1795,7 @@ class VariablesChecker(BaseChecker):
if defstmt_frame == node_frame and not ref_node.lineno < node.lineno:
break
- # If the parent of the local refence is anything but a AnnAssign
+ # If the parent of the local reference is anything but a AnnAssign
# Or if the AnnAssign adds a value the variable will now have a value
# var = 1 # OR
# var: int = 1
diff --git a/pylint/epylint.py b/pylint/epylint.py
index 13842b440..09795d639 100755
--- a/pylint/epylint.py
+++ b/pylint/epylint.py
@@ -125,7 +125,7 @@ def lint(filename, options=()):
if line.startswith("No config file found"):
continue
- # modify the file name thats output to reverse the path traversal we made
+ # modify the file name that's put out to reverse the path traversal we made
parts = line.split(":")
if parts and parts[0] == child_path:
line = ":".join([filename] + parts[1:])
diff --git a/pylint/extensions/_check_docs_utils.py b/pylint/extensions/_check_docs_utils.py
index 2a26fe0e2..ad4a5bb32 100644
--- a/pylint/extensions/_check_docs_utils.py
+++ b/pylint/extensions/_check_docs_utils.py
@@ -519,7 +519,7 @@ class GoogleDocstring(Docstring):
re_property_returns_line = re.compile(
fr"""
- ^{re_multiple_type}: # indentifier
+ ^{re_multiple_type}: # identifier
\s* (.*) # Summary line / description
""",
re.X | re.S | re.M,
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py
index d6edf1ef9..5c4cb8f60 100644
--- a/pylint/lint/pylinter.py
+++ b/pylint/lint/pylinter.py
@@ -376,7 +376,7 @@ class PyLinter(
"(only on the command line, not in the configuration file "
"where it should appear only once). "
'You can also use "--disable=all" to disable everything first '
- "and then reenable specific checks. For example, if you want "
+ "and then re-enable specific checks. For example, if you want "
"to run only the similarities checker, you can use "
'"--disable=all --enable=similarities". '
"If you want to run only the classes checker, but have no "
@@ -750,7 +750,7 @@ class PyLinter(
fail_on_cats = set()
fail_on_msgs = set()
for val in fail_on_vals:
- # If value is a cateogry, add category, else add message
+ # If value is a category, add category, else add message
if val in MSG_TYPES:
fail_on_cats.add(val)
else:
@@ -1607,7 +1607,7 @@ class PyLinter(
line: Optional[int] = None,
ignore_unknown: bool = False,
) -> None:
- """Do some tests and then iterate over message defintions to set state"""
+ """Do some tests and then iterate over message definitions to set state"""
assert scope in {"package", "module"}
if msgid == "all":
for _msgid in MSG_TYPES:
diff --git a/pylint/lint/run.py b/pylint/lint/run.py
index 60d26badf..d607cfd80 100644
--- a/pylint/lint/run.py
+++ b/pylint/lint/run.py
@@ -350,7 +350,7 @@ to search for configuration file.
if reporter:
# if a custom reporter is provided as argument, it may be overridden
# by file parameters, so re-set it here, but before command line
- # parsing so it's still overrideable by command line option
+ # parsing so it's still overridable by command line option
linter.set_reporter(reporter)
try:
args = linter.load_command_line_configuration(args)
diff --git a/pylintrc b/pylintrc
index 2682bfc1a..9c82edeb4 100644
--- a/pylintrc
+++ b/pylintrc
@@ -65,7 +65,7 @@ enable=
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
-# disable everything first and then reenable specific checks. For example, if
+# disable everything first and then re-enable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
diff --git a/tests/benchmark/test_baseline_benchmarks.py b/tests/benchmark/test_baseline_benchmarks.py
index 27635f619..58939fd4d 100644
--- a/tests/benchmark/test_baseline_benchmarks.py
+++ b/tests/benchmark/test_baseline_benchmarks.py
@@ -176,7 +176,7 @@ class TestEstablishBaselineBenchmarks:
"""Establish a baseline with only 'master' checker being run in -j1
We do not register any checkers except the default 'master', so the cost is just
- that of the system with a lot of files registerd"""
+ that of the system with a lot of files registered"""
if benchmark.disabled:
benchmark(print, "skipping, only benchmark large file counts")
return # _only_ run this test is profiling
diff --git a/tests/functional/a/assign/assignment_from_no_return_2.py b/tests/functional/a/assign/assignment_from_no_return_2.py
index 4cd5ef106..f177f6a9a 100644
--- a/tests/functional/a/assign/assignment_from_no_return_2.py
+++ b/tests/functional/a/assign/assignment_from_no_return_2.py
@@ -3,10 +3,10 @@
'E1111': ('Assigning to function call which doesn\'t return',
'Used when an assignment is done on a function call but the \
- infered function doesn\'t return anything.'),
+ inferred function doesn\'t return anything.'),
'W1111': ('Assigning to function call which only returns None',
'Used when an assignment is done on a function call but the \
- infered function returns nothing but None.'),
+ inferred function returns nothing but None.'),
"""
from __future__ import generators, print_function
diff --git a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py
index 0ec15b234..942de6e6e 100644
--- a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py
+++ b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py
@@ -219,7 +219,7 @@ def test_finds_args_without_type_sphinx( # [inconsistent-return-statements]
named_arg, *args
):
r"""The Sphinx docstring
- In Sphinx docstrings asteriks should be escaped.
+ In Sphinx docstrings asterisks should be escaped.
See https://github.com/PyCQA/pylint/issues/5406
:param named_arg: Returned
@@ -238,7 +238,7 @@ def test_finds_kwargs_without_type_sphinx( # [inconsistent-return-statements]
named_arg, **kwargs
):
r"""The Sphinx docstring
- In Sphinx docstrings asteriks should be escaped.
+ In Sphinx docstrings asterisks should be escaped.
See https://github.com/PyCQA/pylint/issues/5406
:param named_arg: Returned
diff --git a/tests/functional/ext/docparams/yield/missing_yield_doc_Google.py b/tests/functional/ext/docparams/yield/missing_yield_doc_Google.py
index 986ca8d08..9ebfbb30b 100644
--- a/tests/functional/ext/docparams/yield/missing_yield_doc_Google.py
+++ b/tests/functional/ext/docparams/yield/missing_yield_doc_Google.py
@@ -4,7 +4,7 @@
import typing
-# Test redudant yields docstring variants
+# Test redundant yields docstring variants
def my_func(self):
"""This is a docstring.
diff --git a/tests/functional/ext/docparams/yield/missing_yield_doc_Numpy.py b/tests/functional/ext/docparams/yield/missing_yield_doc_Numpy.py
index bd6a4a0fe..ed827550b 100644
--- a/tests/functional/ext/docparams/yield/missing_yield_doc_Numpy.py
+++ b/tests/functional/ext/docparams/yield/missing_yield_doc_Numpy.py
@@ -3,7 +3,7 @@
# pylint: disable=invalid-name, undefined-variable
-# Test redudant yields docstring variants
+# Test redundant yields docstring variants
def my_func(self):
"""This is a docstring.
diff --git a/tests/functional/m/method_hidden.py b/tests/functional/m/method_hidden.py
index c5c802450..e31bc16c4 100644
--- a/tests/functional/m/method_hidden.py
+++ b/tests/functional/m/method_hidden.py
@@ -1,6 +1,6 @@
# pylint: disable=too-few-public-methods, useless-object-inheritance,missing-docstring
# pylint: disable=unused-private-member
-"""check method hidding ancestor attribute
+"""check method hiding ancestor attribute
"""
from __future__ import print_function
diff --git a/tests/functional/n/not_callable.py b/tests/functional/n/not_callable.py
index 38232dc46..a7c59ae9c 100644
--- a/tests/functional/n/not_callable.py
+++ b/tests/functional/n/not_callable.py
@@ -127,7 +127,7 @@ class UnknownBaseCallable(missing.Blah):
UnknownBaseCallable()()
# Regression test for #4426
-# If property is inferrable we shouldn't double emit the message
+# If property is inferable we shouldn't double emit the message
# See: https://github.com/PyCQA/pylint/issues/4426
class ClassWithProperty:
@property
diff --git a/tests/functional/o/overloaded_operator.py b/tests/functional/o/overloaded_operator.py
index c305af689..c14fb651f 100644
--- a/tests/functional/o/overloaded_operator.py
+++ b/tests/functional/o/overloaded_operator.py
@@ -18,4 +18,4 @@ def randint(maximum):
return int(5)
-print(randint(1).astype()) # we don't wan't an error for astype access
+print(randint(1).astype()) # we don't want an error for astype access
diff --git a/tests/functional/r/regression/regression_property_no_member_3269.py b/tests/functional/r/regression/regression_property_no_member_3269.py
index 784dd90d4..5fa85b6ea 100644
--- a/tests/functional/r/regression/regression_property_no_member_3269.py
+++ b/tests/functional/r/regression/regression_property_no_member_3269.py
@@ -16,7 +16,7 @@ class B:
@property
def test(self):
"""Overriding implementation of prop which calls the parent"""
- return A.test.fget(self) + " overriden"
+ return A.test.fget(self) + " overridden"
if __name__ == "__main__":
diff --git a/tests/functional/t/too/too_few_public_methods_excluded.py b/tests/functional/t/too/too_few_public_methods_excluded.py
index fecf497ad..2ee8f1c4a 100644
--- a/tests/functional/t/too/too_few_public_methods_excluded.py
+++ b/tests/functional/t/too/too_few_public_methods_excluded.py
@@ -9,5 +9,5 @@ class MyJsonEncoder(JSONEncoder):
...
class InheritedInModule(Control):
- """This class inherits from a class that doesn't have enough mehods,
+ """This class inherits from a class that doesn't have enough methods,
and its parent is excluded via config, so it doesn't raise."""
diff --git a/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return.py b/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return.py
index f915a85cc..3afd9375a 100644
--- a/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return.py
+++ b/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return.py
@@ -25,7 +25,7 @@ def func_ok(var):
except AttributeError:
msg = "Attribute not defined"
except ZeroDivisionError:
- msg = "Devision by 0"
+ msg = "Division by 0"
print(msg)
@@ -36,7 +36,7 @@ def func_ok2(var):
except AttributeError as ex:
raise Exception from ex
except ZeroDivisionError:
- msg = "Devision by 0"
+ msg = "Division by 0"
print(msg)
@@ -47,5 +47,5 @@ def func_ok3(var):
except AttributeError:
return
except ZeroDivisionError:
- msg = "Devision by 0"
+ msg = "Division by 0"
print(msg)
diff --git a/tests/functional/u/useless/useless_else_on_loop.py b/tests/functional/u/useless/useless_else_on_loop.py
index 0bd3dff67..c7d901663 100644
--- a/tests/functional/u/useless/useless_else_on_loop.py
+++ b/tests/functional/u/useless/useless_else_on_loop.py
@@ -12,7 +12,7 @@ def test_return_for():
return None
def test_return_while():
- """else + return is not accetable."""
+ """else + return is not acceptable."""
while True:
return 1
else: # [useless-else-on-loop]
diff --git a/tests/functional/u/useless/useless_super_delegation.py b/tests/functional/u/useless/useless_super_delegation.py
index 2e0384040..cc36a0c78 100644
--- a/tests/functional/u/useless/useless_super_delegation.py
+++ b/tests/functional/u/useless/useless_super_delegation.py
@@ -205,7 +205,7 @@ class NotUselessSuper(Base):
super(NotUselessSuper, self).with_default_arg_quad(first, default_arg + "_and_modified")
def with_default_unhandled(self, first, default_arg=lambda: True):
- # Not useless because the default value type is not explictely handled (Lambda), so assume they are different
+ # Not useless because the default value type is not explicitly handled (Lambda), so assume they are different
super(NotUselessSuper, self).with_default_unhandled(first, default_arg)
diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py
index 757987359..c0fe77916 100644
--- a/tests/unittest_reporting.py
+++ b/tests/unittest_reporting.py
@@ -92,7 +92,7 @@ def test_template_option_end_line(linter) -> None:
def test_template_option_non_exisiting(linter) -> None:
- """Test the msg-template option with a non exisiting options.
+ """Test the msg-template option with a non existing options.
This makes sure that this option remains backwards compatible as new
parameters do not break on previous versions"""
output = StringIO()