From f3059761830a0716504b04d25a4045c2f4ef4402 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 1 Aug 2021 12:52:42 +0200 Subject: 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 --- .github/workflows/cancel.yml | 2 +- Makefile | 2 +- coverage/htmlfiles/jquery.isonscreen.js | 2 +- doc/sample_html/cogapp_test_cogapp_py.html | 2 +- doc/sample_html/jquery.isonscreen.js | 2 +- igor.py | 2 +- pylintrc | 14 +++++++------- tests/gold/html/support/jquery.isonscreen.js | 2 +- tests/test_config.py | 2 +- tests/test_context.py | 2 +- 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 @@

1998 self.assertFilesSame('test.cog', 'test.out') 

1999 

2000 def testThreads(self): 

-

2001 # Test that the implictly imported cog module is actually different for 

+

2001 # Test that the implicitly imported cog module is actually different for 

2002 # different threads. 

2003 numthreads = 20 

2004 

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] -- cgit v1.2.1