lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.17-18-g7ee0563

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

python-stdnum branch master updated. 1.17-18-g7ee0563



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  7ee0563d154fc831f292cc275ce36aa13b9ecbd6 (commit)
      from  351be74e0d0da0e1ac5062a04fa161df12ca6c31 (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=7ee0563d154fc831f292cc275ce36aa13b9ecbd6

commit 7ee0563d154fc831f292cc275ce36aa13b9ecbd6
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Aug 13 17:14:32 2022 +0200

    Put long line flake8 ignores in files instead of globally
    
    We have some long URLs in the code (mostly in docstrings) and wrapping
    them does not improve readability (and is difficult in docstrings) so
    the E501 ignore is now put inside each file instead of globally.
    
    Closes https://github.com/arthurdejong/python-stdnum/pull/302

diff --git a/setup.cfg b/setup.cfg
index 197450a..f7246a8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -29,7 +29,6 @@ all_files  = 1
 ignore =
   D205,D209,D400  # our docstrings are multi-line blobs
   D302  # We don't care about Unicode docstrings
-  E501  # ignore long lines
   E731  # we occasionally use lambda
   F403,F405  # we use * imports
   Q001  # we use '''...''' multi-line strings
diff --git a/stdnum/ad/nrt.py b/stdnum/ad/nrt.py
index 50e53ca..90c1044 100644
--- a/stdnum/ad/nrt.py
+++ b/stdnum/ad/nrt.py
@@ -42,7 +42,7 @@ Traceback (most recent call last):
 InvalidComponent: ...
 >>> format('D059888N')
 'D-059888-N'
-"""
+"""  # noqa: E501
 
 from stdnum.exceptions import *
 from stdnum.util import clean, isdigits
diff --git a/stdnum/cr/cpj.py b/stdnum/cr/cpj.py
index c713a85..2df838b 100644
--- a/stdnum/cr/cpj.py
+++ b/stdnum/cr/cpj.py
@@ -47,7 +47,7 @@ Traceback (most recent call last):
 InvalidLength: ...
 >>> format('4 000 042138')
 '4-000-042138'
-"""
+"""  # noqa: E501
 
 from stdnum.exceptions import *
 from stdnum.util import clean, isdigits
diff --git a/stdnum/eu/nace.py b/stdnum/eu/nace.py
index 91fc2a4..ac72548 100644
--- a/stdnum/eu/nace.py
+++ b/stdnum/eu/nace.py
@@ -50,7 +50,7 @@ Traceback (most recent call last):
 InvalidLength: ...
 >>> format('6201')
 '62.01'
-"""
+"""  # noqa: E501
 
 import warnings
 
diff --git a/stdnum/id/npwp.py b/stdnum/id/npwp.py
index de14a54..cfa668c 100644
--- a/stdnum/id/npwp.py
+++ b/stdnum/id/npwp.py
@@ -45,7 +45,7 @@ Traceback (most recent call last):
 InvalidLength: ...
 >>> format('013000666091000')
 '01.300.066.6-091.000'
-"""
+"""  # noqa: E501
 
 from stdnum import luhn
 from stdnum.exceptions import *
diff --git a/stdnum/il/hp.py b/stdnum/il/hp.py
index 28386c5..a396c15 100644
--- a/stdnum/il/hp.py
+++ b/stdnum/il/hp.py
@@ -46,7 +46,7 @@ InvalidLength: ...
 Traceback (most recent call last):
     ...
 InvalidComponent: ...
-"""
+"""  # noqa: E501
 
 from stdnum import luhn
 from stdnum.exceptions import *
diff --git a/stdnum/it/aic.py b/stdnum/it/aic.py
index 4c6afc7..777f98d 100644
--- a/stdnum/it/aic.py
+++ b/stdnum/it/aic.py
@@ -45,7 +45,7 @@ More information:
 '009CVD'
 >>> from_base32('009CVD')
 '000307052'
-"""
+"""  # noqa: E501
 
 from stdnum.exceptions import *
 from stdnum.util import clean, isdigits
diff --git a/stdnum/li/peid.py b/stdnum/li/peid.py
index 987db9f..4ed228c 100644
--- a/stdnum/li/peid.py
+++ b/stdnum/li/peid.py
@@ -37,7 +37,7 @@ More information:
 Traceback (most recent call last):
     ...
 InvalidLength: The number has an invalid length.
-"""
+"""  # noqa: E501
 
 from stdnum.exceptions import *
 from stdnum.util import clean, isdigits
diff --git a/stdnum/nz/ird.py b/stdnum/nz/ird.py
index 50b6d01..0e9307a 100644
--- a/stdnum/nz/ird.py
+++ b/stdnum/nz/ird.py
@@ -44,7 +44,7 @@ Traceback (most recent call last):
 InvalidLength: ...
 >>> format('49098576')
 '49-098-576'
-"""
+"""  # noqa: E501
 
 from stdnum.exceptions import *
 from stdnum.util import clean, isdigits
diff --git a/stdnum/sg/uen.py b/stdnum/sg/uen.py
index 2b49be1..4f59750 100644
--- a/stdnum/sg/uen.py
+++ b/stdnum/sg/uen.py
@@ -54,7 +54,7 @@ More information:
 Traceback (most recent call last):
     ...
 InvalidLength: ...
-"""
+"""  # noqa: E501
 
 # There are some references to special 10-digit (or 7-digit) numbers that
 # start with an F for foreign companies but it is unclear whether this is
diff --git a/stdnum/sv/nit.py b/stdnum/sv/nit.py
index ed2f5f9..24124e9 100644
--- a/stdnum/sv/nit.py
+++ b/stdnum/sv/nit.py
@@ -59,7 +59,7 @@ Traceback (most recent call last):
 InvalidLength: ...
 >>> format('06140507071048')
 '0614-050707-104-8'
-"""
+"""  # noqa: E501
 
 from stdnum.exceptions import *
 from stdnum.util import clean, isdigits
diff --git a/stdnum/za/tin.py b/stdnum/za/tin.py
index cde0fdf..9ec400c 100644
--- a/stdnum/za/tin.py
+++ b/stdnum/za/tin.py
@@ -41,7 +41,7 @@ Traceback (most recent call last):
 InvalidLength: ...
 >>> format('084308984-8')
 '0843089848'
-"""
+"""  # noqa: E501
 
 from stdnum import luhn
 from stdnum.exceptions import *
diff --git a/update/eu_nace.py b/update/eu_nace.py
index ec53095..ec54c30 100755
--- a/update/eu_nace.py
+++ b/update/eu_nace.py
@@ -30,7 +30,7 @@ import requests
 
 
 # the location of the Statistical Classification file
-download_url = 
'https://ec.europa.eu/eurostat/ramon/nomenclatures/index.cfm?TargetUrl=ACT_OTH_CLS_DLD&StrNom=NACE_REV2&StrFormat=XML&StrLanguageCode=EN'
+download_url = 
'https://ec.europa.eu/eurostat/ramon/nomenclatures/index.cfm?TargetUrl=ACT_OTH_CLS_DLD&StrNom=NACE_REV2&StrFormat=XML&StrLanguageCode=EN'
  # noqa: E501
 
 
 if __name__ == '__main__':

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

Summary of changes:
 setup.cfg         | 1 -
 stdnum/ad/nrt.py  | 2 +-
 stdnum/cr/cpj.py  | 2 +-
 stdnum/eu/nace.py | 2 +-
 stdnum/id/npwp.py | 2 +-
 stdnum/il/hp.py   | 2 +-
 stdnum/it/aic.py  | 2 +-
 stdnum/li/peid.py | 2 +-
 stdnum/nz/ird.py  | 2 +-
 stdnum/sg/uen.py  | 2 +-
 stdnum/sv/nit.py  | 2 +-
 stdnum/za/tin.py  | 2 +-
 update/eu_nace.py | 2 +-
 13 files changed, 12 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
python-stdnum