lists.arthurdejong.org
RSS feed

python-pskc branch master updated. 1.2-10-g4257500

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-pskc branch master updated. 1.2-10-g4257500



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-pskc".

The branch, master has been updated
       via  425750059183109fd8f5cd83ddc6d9fda1bc64cb (commit)
       via  348781bb8ec513cdd28cab46ac1538f94cd507be (commit)
      from  8f01efdbff6a684b0b9fce9dc557d8815de69cad (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-pskc/commit/?id=425750059183109fd8f5cd83ddc6d9fda1bc64cb

commit 425750059183109fd8f5cd83ddc6d9fda1bc64cb
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sun Nov 12 13:07:29 2023 +0100

    Configure testing with codespell

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 7793712..e85da07 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -66,7 +66,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        tox_job: [docs, flake8]
+        tox_job: [docs, flake8, codespell]
     steps:
       - uses: actions/checkout@v3
       - name: Set up Python
diff --git a/setup.cfg b/setup.cfg
index 907c0ae..2018910 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -38,3 +38,6 @@ extend-exclude =
   .github
   .pytest_cache
   build
+
+[codespell]
+skip = jquery*,*.egg-info,ChangeLog,./.git,./.tox,./build,./coverage,./std
diff --git a/tox.ini b/tox.ini
index 482df5c..ac014d5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = 
py{27,35,36,37,38,39,310,312,py,py3}-signxml,py{27,35,36,37,38,39,310,311,312,py,py3}{-legacy,-lxml}{,-defusedxml},flake8,docs
+envlist = 
py{27,35,36,37,38,39,310,312,py,py3}-signxml,py{27,35,36,37,38,39,310,311,312,py,py3}{-legacy,-lxml}{,-defusedxml},flake8,docs,codespell
 skip_missing_interpreters = true
 
 [testenv]
@@ -38,6 +38,11 @@ deps = flake8<6.0
        pep8-naming
 commands = flake8 .
 
+[testenv:codespell]
+skip_install = true
+deps = codespell
+commands = codespell {posargs}
+
 [testenv:docs]
 deps = Sphinx
 commands = sphinx-build -N -b html docs {envtmpdir}/sphinx -W

https://arthurdejong.org/git/python-pskc/commit/?id=348781bb8ec513cdd28cab46ac1538f94cd507be

commit 348781bb8ec513cdd28cab46ac1538f94cd507be
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sun Nov 12 13:04:33 2023 +0100

    Fix typos (thanks codespell)

diff --git a/pskc/key.py b/pskc/key.py
index cd1e4f3..903bfbd 100644
--- a/pskc/key.py
+++ b/pskc/key.py
@@ -37,7 +37,7 @@ class EncryptedValue(object):
 
     @classmethod
     def create(cls, pskc, value):
-        """Construct an encryped value from a plaintext value."""
+        """Construct an encrypted value from a plaintext value."""
         # force conversion to bytestring on Python 3
         if not isinstance(value, (type(b''), bytearray)):
             value = value.encode()  # pragma: no cover (Python 3 specific)
@@ -67,7 +67,7 @@ class EncryptedIntegerValue(EncryptedValue):
 
     @classmethod
     def create(cls, pskc, value):
-        """Construct an encryped value from a plaintext value."""
+        """Construct an encrypted value from a plaintext value."""
         value = '%x' % value
         n = len(value)
         value = binascii.unhexlify(value.zfill(n + (n & 1)))
diff --git a/tests/test_pskc2csv.doctest b/tests/test_pskc2csv.doctest
index 8c049ad..980cbfd 100644
--- a/tests/test_pskc2csv.doctest
+++ b/tests/test_pskc2csv.doctest
@@ -43,7 +43,7 @@ Traceback (most recent call last):
 SystemExit: 0
 
 
-We hack stdin to lie about being a TTY to ensure the password propmpt are
+We hack stdin to lie about being a TTY to ensure the password prompt is
 always presented.
 
 >>> class TTYFile(object):

-----------------------------------------------------------------------

Summary of changes:
 .github/workflows/test.yml  | 2 +-
 pskc/key.py                 | 4 ++--
 setup.cfg                   | 3 +++
 tests/test_pskc2csv.doctest | 2 +-
 tox.ini                     | 7 ++++++-
 5 files changed, 13 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
python-pskc