lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.8.1-6-g5cbba25

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

python-stdnum branch master updated. 1.8.1-6-g5cbba25



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  5cbba25f9267c37450a04b72bc0f2f1e7ae8e37a (commit)
      from  201960c191f07d951e0b4465b217e546daebfc0c (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=5cbba25f9267c37450a04b72bc0f2f1e7ae8e37a

commit 5cbba25f9267c37450a04b72bc0f2f1e7ae8e37a
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Wed Feb 14 19:23:21 2018 +0100

    Update the flake8 ignore list
    
    Re-enable the flake8 test for unused imports by explicitly marking
    imports for namespace purposes. This allows us to remove a few unused
    imports.
    
    A few more cleanups that allow us to reduce the number of ignored flake8
    ignored tests. The remaining ignored tests are now documented.
    
    Ignore a flake8 warning about print statements because we use print in
    the update scripts.

diff --git a/setup.cfg b/setup.cfg
index ad7a949..db828ac 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -22,6 +22,12 @@ cover-min-percentage=100
 all_files  = 1
 
 [flake8]
-ignore = D105,D205,D209,D302,D400,E501,E731,F401,F403,F405,Q001
+ignore =
+  D205,D209,D400  # our docstrings are multi-line blobs
+  E501  # ignore long lines
+  E731  # we occasionally use lambda
+  F403,F405  # we use * imports
+  Q001  # we use '''...''' multi-line strings
+  T001  # we use print statements in the update scripts
 max-complexity = 15
 max-line-length = 120
diff --git a/stdnum/al/__init__.py b/stdnum/al/__init__.py
index b0ab0ab..25d7cd1 100644
--- a/stdnum/al/__init__.py
+++ b/stdnum/al/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Albanian numbers."""
 
 # provide vat as an alias
-from stdnum.al import nipt as vat
+from stdnum.al import nipt as vat  # noqa: F401
diff --git a/stdnum/ar/__init__.py b/stdnum/ar/__init__.py
index 999da35..8a0ff08 100644
--- a/stdnum/ar/__init__.py
+++ b/stdnum/ar/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Argentinian numbers."""
 
 # provide vat as an alias
-from stdnum.ar import cuit as vat
+from stdnum.ar import cuit as vat  # noqa: F401
diff --git a/stdnum/at/__init__.py b/stdnum/at/__init__.py
index 5b7788f..34f7cbb 100644
--- a/stdnum/at/__init__.py
+++ b/stdnum/at/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Austrian numbers."""
 
 # provide vat as an alias
-from stdnum.at import uid as vat
+from stdnum.at import uid as vat  # noqa: F401
diff --git a/stdnum/be/__init__.py b/stdnum/be/__init__.py
index 5295496..83af30b 100644
--- a/stdnum/be/__init__.py
+++ b/stdnum/be/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Belgian numbers."""
 
 # provide businessid as an alias
-from stdnum.be import vat as businessid
+from stdnum.be import vat as businessid  # noqa: F401
diff --git a/stdnum/be/iban.py b/stdnum/be/iban.py
index c82b248..ca740db 100644
--- a/stdnum/be/iban.py
+++ b/stdnum/be/iban.py
@@ -49,7 +49,6 @@ True
 
 from stdnum import iban
 from stdnum.exceptions import *
-from stdnum.iso7064 import mod_97_10
 
 
 __all__ = ['compact', 'format', 'validate', 'is_valid']
diff --git a/stdnum/cl/__init__.py b/stdnum/cl/__init__.py
index 6a59365..1c7a834 100644
--- a/stdnum/cl/__init__.py
+++ b/stdnum/cl/__init__.py
@@ -21,5 +21,5 @@
 """Collection of Chilean numbers."""
 
 # provide vat and run as an alias
-from stdnum.cl import rut as vat
-from stdnum.cl import rut as run
+from stdnum.cl import rut as vat  # noqa: F401
+from stdnum.cl import rut as run  # noqa: F401
diff --git a/stdnum/co/__init__.py b/stdnum/co/__init__.py
index 687e210..a72d843 100644
--- a/stdnum/co/__init__.py
+++ b/stdnum/co/__init__.py
@@ -21,5 +21,5 @@
 """Collection of Colombian numbers."""
 
 # provide vat and rut as an alias
-from stdnum.co import nit as vat
-from stdnum.co import nit as rut
+from stdnum.co import nit as vat  # noqa: F401
+from stdnum.co import nit as rut  # noqa: F401
diff --git a/stdnum/cz/__init__.py b/stdnum/cz/__init__.py
index 3f28373..fc74901 100644
--- a/stdnum/cz/__init__.py
+++ b/stdnum/cz/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Czech numbers."""
 
 # provide vat as an alias
-from stdnum.cz import dic as vat
+from stdnum.cz import dic as vat  # noqa: F401
diff --git a/stdnum/dk/__init__.py b/stdnum/dk/__init__.py
index d003757..92d595c 100644
--- a/stdnum/dk/__init__.py
+++ b/stdnum/dk/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Danish numbers."""
 
 # provide vat as an alias
-from stdnum.dk import cvr as vat
+from stdnum.dk import cvr as vat  # noqa: F401
diff --git a/stdnum/do/__init__.py b/stdnum/do/__init__.py
index f60c1c0..aa210e5 100644
--- a/stdnum/do/__init__.py
+++ b/stdnum/do/__init__.py
@@ -20,4 +20,4 @@
 
 """Collection of Dominican Republic numbers."""
 
-from stdnum.do import rnc as vat
+from stdnum.do import rnc as vat  # noqa: F401
diff --git a/stdnum/ec/__init__.py b/stdnum/ec/__init__.py
index 18d02a8..6e91906 100644
--- a/stdnum/ec/__init__.py
+++ b/stdnum/ec/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Ecuadorian numbers."""
 
 # provide vat as an alias
-from stdnum.ec import ruc as vat
+from stdnum.ec import ruc as vat  # noqa: F401
diff --git a/stdnum/ee/__init__.py b/stdnum/ee/__init__.py
index f35e653..7728e2d 100644
--- a/stdnum/ee/__init__.py
+++ b/stdnum/ee/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Estonian numbers."""
 
 # provide vat as an alias
-from stdnum.ee import kmkr as vat
+from stdnum.ee import kmkr as vat  # noqa: F401
diff --git a/stdnum/es/__init__.py b/stdnum/es/__init__.py
index c648ca4..e74786c 100644
--- a/stdnum/es/__init__.py
+++ b/stdnum/es/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Spanish numbers."""
 
 # provide vat as an alias
-from stdnum.es import nif as vat
+from stdnum.es import nif as vat  # noqa: F401
diff --git a/stdnum/exceptions.py b/stdnum/exceptions.py
index 029b95e..dd2a695 100644
--- a/stdnum/exceptions.py
+++ b/stdnum/exceptions.py
@@ -32,6 +32,7 @@ class ValidationError(Exception):
     exception."""
 
     def __str__(self):
+        """Return the exception message."""
         return ''.join(self.args[:1]) or getattr(self, 'message', '')
 
 
diff --git a/stdnum/fi/__init__.py b/stdnum/fi/__init__.py
index 4659040..80129fc 100644
--- a/stdnum/fi/__init__.py
+++ b/stdnum/fi/__init__.py
@@ -21,6 +21,6 @@
 """Collection of Finnish numbers."""
 
 # provide vat as an alias
-from stdnum.fi import alv as vat
-from stdnum.fi import hetu as personalid
-from stdnum.fi import ytunnus as businessid
+from stdnum.fi import alv as vat  # noqa: F401
+from stdnum.fi import hetu as personalid  # noqa: F401
+from stdnum.fi import ytunnus as businessid  # noqa: F401
diff --git a/stdnum/fr/__init__.py b/stdnum/fr/__init__.py
index 67c6a3e..14abaa5 100644
--- a/stdnum/fr/__init__.py
+++ b/stdnum/fr/__init__.py
@@ -21,4 +21,4 @@
 """Collection of French numbers."""
 
 # provide vat as an alias
-from stdnum.fr import tva as vat
+from stdnum.fr import tva as vat  # noqa: F401
diff --git a/stdnum/hr/__init__.py b/stdnum/hr/__init__.py
index acd1734..54a21c2 100644
--- a/stdnum/hr/__init__.py
+++ b/stdnum/hr/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Croatian numbers."""
 
 # provide vat as an alias
-from stdnum.hr import oib as vat
+from stdnum.hr import oib as vat  # noqa: F401
diff --git a/stdnum/hu/__init__.py b/stdnum/hu/__init__.py
index 566734c..58735a0 100644
--- a/stdnum/hu/__init__.py
+++ b/stdnum/hu/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Hungarian numbers."""
 
 # provide vat as an alias
-from stdnum.hu import anum as vat
+from stdnum.hu import anum as vat  # noqa: F401
diff --git a/stdnum/is_/__init__.py b/stdnum/is_/__init__.py
index a4473c9..06abca8 100644
--- a/stdnum/is_/__init__.py
+++ b/stdnum/is_/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Icelandic numbers."""
 
 # provide vat as an alias
-from stdnum.is_ import vsk as vat
+from stdnum.is_ import vsk as vat  # noqa: F401
diff --git a/stdnum/it/__init__.py b/stdnum/it/__init__.py
index 9d10528..dbf2479 100644
--- a/stdnum/it/__init__.py
+++ b/stdnum/it/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Italian numbers."""
 
 # provide vat as an alias
-from stdnum.it import iva as vat
+from stdnum.it import iva as vat  # noqa: F401
diff --git a/stdnum/lt/__init__.py b/stdnum/lt/__init__.py
index 776f275..3a02b29 100644
--- a/stdnum/lt/__init__.py
+++ b/stdnum/lt/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Lithuanian numbers."""
 
 # provide vat as an alias
-from stdnum.lt import pvm as vat
+from stdnum.lt import pvm as vat  # noqa: F401
diff --git a/stdnum/lu/__init__.py b/stdnum/lu/__init__.py
index b3a3724..3c28de8 100644
--- a/stdnum/lu/__init__.py
+++ b/stdnum/lu/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Luxembourgian numbers."""
 
 # provide vat as an alias
-from stdnum.lu import tva as vat
+from stdnum.lu import tva as vat  # noqa: F401
diff --git a/stdnum/lv/__init__.py b/stdnum/lv/__init__.py
index ff98e82..e6de359 100644
--- a/stdnum/lv/__init__.py
+++ b/stdnum/lv/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Latvian numbers."""
 
 # provide vat as an alias
-from stdnum.lv import pvn as vat
+from stdnum.lv import pvn as vat  # noqa: F401
diff --git a/stdnum/mc/__init__.py b/stdnum/mc/__init__.py
index 835d258..33e9a33 100644
--- a/stdnum/mc/__init__.py
+++ b/stdnum/mc/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Monacan numbers."""
 
 # provide vat as an alias
-from stdnum.mc import tva as vat
+from stdnum.mc import tva as vat  # noqa: F401
diff --git a/stdnum/mx/__init__.py b/stdnum/mx/__init__.py
index 6c8c183..8cfc93d 100644
--- a/stdnum/mx/__init__.py
+++ b/stdnum/mx/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Mexican numbers."""
 
 # provide vat as an alias
-from stdnum.mx import rfc as vat
+from stdnum.mx import rfc as vat  # noqa: F401
diff --git a/stdnum/nl/__init__.py b/stdnum/nl/__init__.py
index aa4f68d..792e2c2 100644
--- a/stdnum/nl/__init__.py
+++ b/stdnum/nl/__init__.py
@@ -21,5 +21,5 @@
 """Collection of Dutch numbers."""
 
 # provide aliases
-from stdnum.nl import btw as vat
-from stdnum.nl import postcode as postcal_code
+from stdnum.nl import btw as vat  # noqa: F401
+from stdnum.nl import postcode as postcal_code  # noqa: F401
diff --git a/stdnum/no/__init__.py b/stdnum/no/__init__.py
index c92ea78..fff0eb3 100644
--- a/stdnum/no/__init__.py
+++ b/stdnum/no/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Norwegian numbers."""
 
 # provide vat as an alias
-from stdnum.no import mva as vat
+from stdnum.no import mva as vat  # noqa: F401
diff --git a/stdnum/pl/__init__.py b/stdnum/pl/__init__.py
index 101f56d..1b5e5db 100644
--- a/stdnum/pl/__init__.py
+++ b/stdnum/pl/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Polish numbers."""
 
 # provide vat as an alias
-from stdnum.pl import nip as vat
+from stdnum.pl import nip as vat  # noqa: F401
diff --git a/stdnum/pt/__init__.py b/stdnum/pt/__init__.py
index 893d4c4..7056654 100644
--- a/stdnum/pt/__init__.py
+++ b/stdnum/pt/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Portuguese numbers."""
 
 # provide vat as an alias
-from stdnum.pt import nif as vat
+from stdnum.pt import nif as vat  # noqa: F401
diff --git a/stdnum/ro/__init__.py b/stdnum/ro/__init__.py
index e16f2a2..b0ae7a2 100644
--- a/stdnum/ro/__init__.py
+++ b/stdnum/ro/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Romanian numbers."""
 
 # provide vat as an alias
-from stdnum.ro import cf as vat
+from stdnum.ro import cf as vat  # noqa: F401
diff --git a/stdnum/rs/__init__.py b/stdnum/rs/__init__.py
index c23d235..0591656 100644
--- a/stdnum/rs/__init__.py
+++ b/stdnum/rs/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Serbian numbers."""
 
 # provide vat as an alias
-from stdnum.rs import pib as vat
+from stdnum.rs import pib as vat  # noqa: F401
diff --git a/stdnum/si/__init__.py b/stdnum/si/__init__.py
index b0578e3..077165f 100644
--- a/stdnum/si/__init__.py
+++ b/stdnum/si/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Slovenian numbers."""
 
 # provide vat as an alias
-from stdnum.si import ddv as vat
+from stdnum.si import ddv as vat  # noqa: F401
diff --git a/stdnum/sk/__init__.py b/stdnum/sk/__init__.py
index a48fac2..c2e257e 100644
--- a/stdnum/sk/__init__.py
+++ b/stdnum/sk/__init__.py
@@ -21,4 +21,4 @@
 """Collection of Slovak numbers."""
 
 # provide vat as an alias
-from stdnum.sk import dph as vat
+from stdnum.sk import dph as vat  # noqa: F401
diff --git a/stdnum/sm/__init__.py b/stdnum/sm/__init__.py
index 59f8cce..28c385d 100644
--- a/stdnum/sm/__init__.py
+++ b/stdnum/sm/__init__.py
@@ -21,4 +21,4 @@
 """Collection of San Marino numbers."""
 
 # provide vat as an alias
-from stdnum.sm import coe as vat
+from stdnum.sm import coe as vat  # noqa: F401
diff --git a/tests/test_do_ncf.py b/tests/test_do_ncf.py
index 5f57bb0..dbd7039 100644
--- a/tests/test_do_ncf.py
+++ b/tests/test_do_ncf.py
@@ -27,7 +27,6 @@ import os
 import unittest
 
 from stdnum.do import ncf
-from stdnum.exceptions import *
 
 
 @unittest.skipIf(
diff --git a/tests/test_do_rnc.py b/tests/test_do_rnc.py
index 52e2393..fd2336a 100644
--- a/tests/test_do_rnc.py
+++ b/tests/test_do_rnc.py
@@ -27,7 +27,6 @@ import os
 import unittest
 
 from stdnum.do import rnc
-from stdnum.exceptions import *
 
 
 @unittest.skipIf(
diff --git a/update/be_banks.py b/update/be_banks.py
index 1708183..3c3a96b 100755
--- a/update/be_banks.py
+++ b/update/be_banks.py
@@ -24,9 +24,7 @@
 IBAN and BIC codes as published by the Belgian National Bank."""
 
 import os.path
-import sys
 import urllib
-from collections import defaultdict
 
 import xlrd
 
diff --git a/update/numlist.py b/update/numlist.py
index 8610d76..933cc8d 100755
--- a/update/numlist.py
+++ b/update/numlist.py
@@ -23,7 +23,6 @@
 suitable to be included in the README and stdnum package description."""
 
 import os.path
-import pydoc
 import sys
 
 # Ensure that we use our local stdnum implementation is used

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

Summary of changes:
 setup.cfg              | 8 +++++++-
 stdnum/al/__init__.py  | 2 +-
 stdnum/ar/__init__.py  | 2 +-
 stdnum/at/__init__.py  | 2 +-
 stdnum/be/__init__.py  | 2 +-
 stdnum/be/iban.py      | 1 -
 stdnum/cl/__init__.py  | 4 ++--
 stdnum/co/__init__.py  | 4 ++--
 stdnum/cz/__init__.py  | 2 +-
 stdnum/dk/__init__.py  | 2 +-
 stdnum/do/__init__.py  | 2 +-
 stdnum/ec/__init__.py  | 2 +-
 stdnum/ee/__init__.py  | 2 +-
 stdnum/es/__init__.py  | 2 +-
 stdnum/exceptions.py   | 1 +
 stdnum/fi/__init__.py  | 6 +++---
 stdnum/fr/__init__.py  | 2 +-
 stdnum/hr/__init__.py  | 2 +-
 stdnum/hu/__init__.py  | 2 +-
 stdnum/is_/__init__.py | 2 +-
 stdnum/it/__init__.py  | 2 +-
 stdnum/lt/__init__.py  | 2 +-
 stdnum/lu/__init__.py  | 2 +-
 stdnum/lv/__init__.py  | 2 +-
 stdnum/mc/__init__.py  | 2 +-
 stdnum/mx/__init__.py  | 2 +-
 stdnum/nl/__init__.py  | 4 ++--
 stdnum/no/__init__.py  | 2 +-
 stdnum/pl/__init__.py  | 2 +-
 stdnum/pt/__init__.py  | 2 +-
 stdnum/ro/__init__.py  | 2 +-
 stdnum/rs/__init__.py  | 2 +-
 stdnum/si/__init__.py  | 2 +-
 stdnum/sk/__init__.py  | 2 +-
 stdnum/sm/__init__.py  | 2 +-
 tests/test_do_ncf.py   | 1 -
 tests/test_do_rnc.py   | 1 -
 update/be_banks.py     | 2 --
 update/numlist.py      | 1 -
 39 files changed, 45 insertions(+), 44 deletions(-)


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-stdnum-commits/