summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-08-01 12:52:42 +0200
committerGitHub <noreply@github.com>2021-08-01 03:52:42 -0700
commitf3059761830a0716504b04d25a4045c2f4ef4402 (patch)
tree8071ee5c84f35bc7a6238824cacfb44edffc3339
parent7fe106b9fef26478ba10a6f206baf70eee201d4a (diff)
downloadpython-coveragepy-git-f3059761830a0716504b04d25a4045c2f4ef4402.tar.gz
style: fix typos discovered by codespell (#1197)
python3 -m pip install codespell codespell --ignore-words-list="ba,cant,datas,hart,linke,ned,nin,overthere,upto" --skip="*.js" * Fix typos discovered by codespell * datas * intgers ==> integers
-rw-r--r--.github/workflows/cancel.yml2
-rw-r--r--Makefile2
-rw-r--r--coverage/htmlfiles/jquery.isonscreen.js2
-rw-r--r--doc/sample_html/cogapp_test_cogapp_py.html2
-rw-r--r--doc/sample_html/jquery.isonscreen.js2
-rw-r--r--igor.py2
-rw-r--r--pylintrc14
-rw-r--r--tests/gold/html/support/jquery.isonscreen.js2
-rw-r--r--tests/test_config.py2
-rw-r--r--tests/test_context.py2
10 files changed, 16 insertions, 16 deletions
diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
index 97b4d88d..11b385b1 100644
--- a/.github/workflows/cancel.yml
+++ b/.github/workflows/cancel.yml
@@ -2,7 +2,7 @@
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
# This action finds in-progress Action jobs for the same branch, and cancels
-# them. There's little point in continuing to run superceded jobs.
+# them. There's little point in continuing to run superseded jobs.
name: "Cancel"
diff --git a/Makefile b/Makefile
index 717c82b6..d65fc3f5 100644
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,7 @@ kit: ## Make the source distribution.
kit_upload: ## Upload the built distributions to PyPI.
twine upload --verbose dist/*
-test_upload: ## Upload the distrubutions to PyPI's testing server.
+test_upload: ## Upload the distributions to PyPI's testing server.
twine upload --verbose --repository testpypi dist/*
kit_local:
diff --git a/coverage/htmlfiles/jquery.isonscreen.js b/coverage/htmlfiles/jquery.isonscreen.js
index 0182ebd2..28fb99bc 100644
--- a/coverage/htmlfiles/jquery.isonscreen.js
+++ b/coverage/htmlfiles/jquery.isonscreen.js
@@ -8,7 +8,7 @@
(function($) {
jQuery.extend({
isOnScreen: function(box, container) {
- //ensure numbers come in as intgers (not strings) and remove 'px' is it's there
+ //ensure numbers come in as integers (not strings) and remove 'px' is it's there
for(var i in box){box[i] = parseFloat(box[i])};
for(var i in container){container[i] = parseFloat(container[i])};
diff --git a/doc/sample_html/cogapp_test_cogapp_py.html b/doc/sample_html/cogapp_test_cogapp_py.html
index 48068c7f..3cac5168 100644
--- a/doc/sample_html/cogapp_test_cogapp_py.html
+++ b/doc/sample_html/cogapp_test_cogapp_py.html
@@ -2053,7 +2053,7 @@
<p id="t1998" class="mis show_mis"><span class="n"><a href="#t1998">1998</a></span><span class="t"> <span class="nam">self</span><span class="op">.</span><span class="nam">assertFilesSame</span><span class="op">(</span><span class="str">'test.cog'</span><span class="op">,</span> <span class="str">'test.out'</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t1999" class="pln"><span class="n"><a href="#t1999">1999</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
<p id="t2000" class="run"><span class="n"><a href="#t2000">2000</a></span><span class="t"> <span class="key">def</span> <span class="nam">testThreads</span><span class="op">(</span><span class="nam">self</span><span class="op">)</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
- <p id="t2001" class="pln"><span class="n"><a href="#t2001">2001</a></span><span class="t"> <span class="com"># Test that the implictly imported cog module is actually different for</span>&nbsp;</span><span class="r"></span></p>
+ <p id="t2001" class="pln"><span class="n"><a href="#t2001">2001</a></span><span class="t"> <span class="com"># Test that the implicitly imported cog module is actually different for</span>&nbsp;</span><span class="r"></span></p>
<p id="t2002" class="pln"><span class="n"><a href="#t2002">2002</a></span><span class="t"> <span class="com"># different threads.</span>&nbsp;</span><span class="r"></span></p>
<p id="t2003" class="mis show_mis"><span class="n"><a href="#t2003">2003</a></span><span class="t"> <span class="nam">numthreads</span> <span class="op">=</span> <span class="num">20</span>&nbsp;</span><span class="r"></span></p>
<p id="t2004" class="pln"><span class="n"><a href="#t2004">2004</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
diff --git a/doc/sample_html/jquery.isonscreen.js b/doc/sample_html/jquery.isonscreen.js
index 0182ebd2..28fb99bc 100644
--- a/doc/sample_html/jquery.isonscreen.js
+++ b/doc/sample_html/jquery.isonscreen.js
@@ -8,7 +8,7 @@
(function($) {
jQuery.extend({
isOnScreen: function(box, container) {
- //ensure numbers come in as intgers (not strings) and remove 'px' is it's there
+ //ensure numbers come in as integers (not strings) and remove 'px' is it's there
for(var i in box){box[i] = parseFloat(box[i])};
for(var i in container){container[i] = parseFloat(container[i])};
diff --git a/igor.py b/igor.py
index c4d0dc6e..e6b3c313 100644
--- a/igor.py
+++ b/igor.py
@@ -25,7 +25,7 @@ except ImportError:
# We want to be able to run this for some tasks that don't need pytest.
pytest = None
-# Contants derived the same as in coverage/env.py. We can't import
+# Constants derived the same as in coverage/env.py. We can't import
# that file here, it would be evaluated too early and not get the
# settings we make in this file.
diff --git a/pylintrc b/pylintrc
index b9fd7f53..8fd4b356 100644
--- a/pylintrc
+++ b/pylintrc
@@ -106,7 +106,7 @@ output-format=text
# written in a file name "pylint_global.[txt|html]".
files-output=no
-# Tells wether to display a full report or only the messages
+# Tells whether to display a full report or only the messages
reports=no
# I don't need a score, thanks.
@@ -129,7 +129,7 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
# checks for :
# * doc strings
# * modules / classes / functions / methods / arguments / variables name
-# * number of arguments, local variables, branchs, returns and statements in
+# * number of arguments, local variables, branches, returns and statements in
# functions, methods
# * required module attributes
# * dangerous default values as arguments
@@ -189,15 +189,15 @@ bad-functions=
#
[TYPECHECK]
-# Tells wether missing members accessed in mixin class should be ignored. A
+# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
# List of classes names for which member attributes should not be checked
-# (useful for classes with attributes dynamicaly set).
+# (useful for classes with attributes dynamically set).
ignored-classes=SQLObject
-# List of members which are usually get through zope's acquisition mecanism and
+# List of members which are usually get through zope's acquisition mechanism and
# so shouldn't trigger E0201 when accessed (need zope=yes to be considered).
acquired-members=REQUEST,acl_users,aq_parent
@@ -206,11 +206,11 @@ acquired-members=REQUEST,acl_users,aq_parent
# * unused variables / imports
# * undefined variables
# * redefinition of variable from builtins or from an outer scope
-# * use of variable before assigment
+# * use of variable before assignment
#
[VARIABLES]
-# Tells wether we should check for unused import in __init__ files.
+# Tells whether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching names of unused arguments.
diff --git a/tests/gold/html/support/jquery.isonscreen.js b/tests/gold/html/support/jquery.isonscreen.js
index 0182ebd2..28fb99bc 100644
--- a/tests/gold/html/support/jquery.isonscreen.js
+++ b/tests/gold/html/support/jquery.isonscreen.js
@@ -8,7 +8,7 @@
(function($) {
jQuery.extend({
isOnScreen: function(box, container) {
- //ensure numbers come in as intgers (not strings) and remove 'px' is it's there
+ //ensure numbers come in as integers (not strings) and remove 'px' is it's there
for(var i in box){box[i] = parseFloat(box[i])};
for(var i in container){container[i] = parseFloat(container[i])};
diff --git a/tests/test_config.py b/tests/test_config.py
index 2bef500e..bf9cb4a5 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -448,7 +448,7 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest):
cover_pylib = TRUE
parallel = on
concurrency = thread
- ; this omit is overriden by the omit from [report]
+ ; this omit is overridden by the omit from [report]
omit = twenty
source = myapp
source_pkgs = ned
diff --git a/tests/test_context.py b/tests/test_context.py
index b20ecdef..3f80803b 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -197,7 +197,7 @@ def get_qualname():
"""Helper to return qualname_from_frame for the caller."""
stack = inspect.stack()[1:]
if any(sinfo[0].f_code.co_name == "get_qualname" for sinfo in stack):
- # We're calling outselves recursively, maybe because we're testing
+ # We're calling ourselves recursively, maybe because we're testing
# properties. Return an int to try to get back on track.
return 17
caller_frame = stack[0][0]