lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.17-54-g74cc981

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

python-stdnum branch master updated. 1.17-54-g74cc981



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-stdnum".

The branch, master has been updated
       via  74cc9814eb07fc776375448a4040f4ba63fbd024 (commit)
      from  a03ac04e75bfc40e3f206405b872bbe9e61039d6 (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-stdnum/commit/?id=74cc9814eb07fc776375448a4040f4ba63fbd024

commit 74cc9814eb07fc776375448a4040f4ba63fbd024
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Nov 12 18:40:34 2022 +0100

    Ensure we always run flake8-bugbear
    
    This assumes that we no longer use Python 2.7 for running the flake8
    tests any more.

diff --git a/stdnum/cz/bankaccount.py b/stdnum/cz/bankaccount.py
index a802642..3100c8a 100644
--- a/stdnum/cz/bankaccount.py
+++ b/stdnum/cz/bankaccount.py
@@ -83,7 +83,7 @@ def _info(bank):
     """Look up information for the bank."""
     from stdnum import numdb
     info = {}
-    for nr, found in numdb.get('cz/banks').info(bank):
+    for _nr, found in numdb.get('cz/banks').info(bank):
         info.update(found)
     return info
 
diff --git a/stdnum/nz/bankaccount.py b/stdnum/nz/bankaccount.py
index c451073..3a56178 100644
--- a/stdnum/nz/bankaccount.py
+++ b/stdnum/nz/bankaccount.py
@@ -104,7 +104,7 @@ def info(number):
     number = compact(number)
     from stdnum import numdb
     info = {}
-    for nr, found in numdb.get('nz/banks').info(number):
+    for _nr, found in numdb.get('nz/banks').info(number):
         info.update(found)
     return info
 
diff --git a/tox.ini b/tox.ini
index 73fb114..a644908 100644
--- a/tox.ini
+++ b/tox.ini
@@ -16,7 +16,7 @@ skip_install = true
 deps = flake8
        flake8-author
        flake8-blind-except
-       py{35,36,37,38}: flake8-bugbear
+       flake8-bugbear
        flake8-class-newline
        flake8-commas
        flake8-deprecated
diff --git a/update/iban.py b/update/iban.py
index 6854942..3e954e6 100755
--- a/update/iban.py
+++ b/update/iban.py
@@ -57,7 +57,7 @@ if __name__ == '__main__':
             for i, c in enumerate(row[1:]):
                 values[i][row[0]] = c
     # output the collected data
-    for i, data in values.items():
+    for _i, data in values.items():
         bban = data['BBAN structure']
         if not bban or bban.lower() == 'n/a':
             bban = data['IBAN structure']

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

Summary of changes:
 stdnum/cz/bankaccount.py | 2 +-
 stdnum/nz/bankaccount.py | 2 +-
 tox.ini                  | 2 +-
 update/iban.py           | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
python-stdnum