Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typoHEADmastervaleriko20 hours1-1/+1
| | | | Clocses https://github.com/arthurdejong/python-stdnum/pull/341
* Avoid newer flake8Arthur de Jong6 days1-1/+1
| | | | | | | | | The new 6.0.0 contains a number of backwards incompatible changes for which plugins need to be updated and configuration needs to be updated. Sadly the maintainer no longer accepts contributions or discussion See https://github.com/PyCQA/flake8/issues/1760
* Get files ready for 1.18 release1.18Arthur de Jong2022-11-1320-10/+653
|
* Update database filesArthur de Jong2022-11-139-240/+622
|
* Update German OffeneRegister lookup data formatArthur de Jong2022-11-132-29/+20
| | | | | It appears that the data structure at OffeneRegister has changed which requires a different query. Data is returned in a different structure.
* Increase timeout for CN Open Data downloadArthur de Jong2022-11-131-2/+2
| | | | It seems that raw.githubusercontent.com can be extremely slow.
* Pick up custom certificate from script pathArthur de Jong2022-11-131-2/+4
| | | | | | This ensures that the script can be run from any directory. Fixes c4ad714
* vatin: Add a few more tests for is_validLeandro Regueiro2022-11-131-0/+18
| | | | See https://github.com/arthurdejong/python-stdnum/pull/316
* Add Pakistani ID card numberArthur de Jong2022-11-133-0/+173
| | | | | | | | Based on the implementation provided by Quantum Novice (Syed Haseeb Shah). Closes https://github.com/arthurdejong/python-stdnum/pull/306 Closes https://github.com/arthurdejong/python-stdnum/issues/304
* Add support for Slovenian EMŠO (Unique Master Citizen ↵Blaž Bregar2022-11-133-0/+196
| | | | | | Number) Closes https://github.com/arthurdejong/python-stdnum/pull/338
* Ensure we always run flake8-bugbearArthur de Jong2022-11-134-4/+4
| | | | | This assumes that we no longer use Python 2.7 for running the flake8 tests any more.
* Use HTTPS in URLs where possibleArthur de Jong2022-11-134-5/+5
|
* Pad with zeroes in a more readable mannerLeandro Regueiro2022-11-131-3/+3
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/340
* Make all exceptions inherit from ValueErrorArthur de Jong2022-11-121-2/+2
| | | | | All the validation exceptions (subclasses of ValidationError) are raised when a number is provided with an inappropriate value.
* Add a check_uid() function to the stdnum.ch.uid moduleArthur de Jong2022-11-122-2/+104
| | | | | | | This function can be used to performa a lookup of organisation information by the Swiss Federal Statistical Office web service. Related to https://github.com/arthurdejong/python-stdnum/issues/336
* Support "I" and "O" in CUSIP numberArthur de Jong2022-11-122-114/+9
| | | | | | | | | It is unclear why these letters were considered invalid at the time of the implementation. This also reduces the test set a bit while still covering most cases. Closes https://github.com/arthurdejong/python-stdnum/issues/337
* Switch to escape() from htmlArthur de Jong2022-10-231-5/+6
| | | | The function was removed from the cgi module in Python 3.8.
* Switch to parse_qs() from urllib.parseArthur de Jong2022-10-231-2/+2
| | | | The function was removed from the cgi module in Python 3.8.
* Remove unused importArthur de Jong2022-10-191-1/+1
| | | | Fixes 09d595b
* Improve validation of CAS Registry NumberArthur de Jong2022-10-191-4/+11
| | | | This ensures that a leading 0 is treated as invalid.
* Remove duplicate CAS Registry NumberArthur de Jong2022-10-191-82/+0
| | | | | | | The recently added stdnum.cas module was already available as teh stdnum.casrn module. Reverts acb6934
* Update Fødselsnummer test case for date in futureArthur de Jong2022-10-191-2/+2
| | | | The future was now. This problem was pushed forwards to October 2039.
* Support running tests with PyPy 2.7Arthur de Jong2022-10-151-2/+2
| | | | This also applies the fix from cfc80c8 from Python 2.7 to PyPy.
* Add support for Ghana TINLeandro Regueiro2022-10-153-0/+221
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/326 Closes https://github.com/arthurdejong/python-stdnum/issues/262
* Add CAS Registry NumberArthur de Jong2022-10-151-0/+82
|
* Add support for Montenegro TINLeandro Regueiro2022-10-093-0/+265
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/331 Closes https://github.com/arthurdejong/python-stdnum/issues/223
* Add Faroe Islands V-numberLeandro Regueiro2022-09-253-0/+275
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/323 Closes https://github.com/arthurdejong/python-stdnum/issues/219
* Add North Macedonian ЕДБLeandro Regueiro2022-09-253-0/+298
| | | | | | | | | | | | | | Note that this is implementation is mostly based on unofficial sources describing the format, which match the hundreds of examples found online. https://forum.it.mk/threads/modularna-kontrola-na-embg-edb-dbs-itn.15663/?__cf_chl_tk=Op2PaEIauip6Z.ZjvhP897O8gRVAwe5CDAVTpjx1sEo-1663498930-0-gaNycGzNCRE#post-187048 Also note that the algorithm for the check digit was tested on all found examples, and it doesn't work for all of them, despite those failing examples don't seem to be valid according to the official online search. Closes https://github.com/arthurdejong/python-stdnum/pull/330 Closes https://github.com/arthurdejong/python-stdnum/issues/222
* Fix a couple typos found by codespellDimitri Papadopoulos2022-09-242-2/+2
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/333
* Add Algerian NIF numberLeandro Regueiro2022-09-243-0/+282
| | | | | | | | | This currently only checks the length and whether it only contains digits because little could be found on the structure of the number of whether there are any check digits. Closes https://github.com/arthurdejong/python-stdnum/pull/313 Closes https://github.com/arthurdejong/python-stdnum/issues/307
* Add support for Morocco TINLeandro Regueiro2022-09-113-0/+279
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/226 Closes https://github.com/arthurdejong/python-stdnum/pull/312
* Add Kenyan TINLeandro Regueiro2022-09-113-0/+272
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/300 Closes https://github.com/arthurdejong/python-stdnum/pull/310
* Add support for Tunisia TINLeandro Regueiro2022-09-113-0/+409
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/317 Closes https://github.com/arthurdejong/python-stdnum/issues/309
* Update EU VAT Vies test with new numberArthur de Jong2022-08-151-6/+8
| | | | The number used before was apparently no longer valid.
* Fix German OffeneRegister company registry URLArthur de Jong2022-08-151-2/+2
|
* Update database filesArthur de Jong2022-08-1513-768/+2143
|
* Do not print trailing spaceArthur de Jong2022-08-151-1/+1
|
* Ignore invalid downloaded country codesArthur de Jong2022-08-151-8/+9
| | | | | | The page currently lists a country without a country code (is listed as "-"). This also ensures that lists of country codes are handled consistently.
* Update names of Wikipedia pages with IMSI codesArthur de Jong2022-08-151-7/+7
|
* Provide a timeout to all download scriptsArthur de Jong2022-08-1515-17/+17
|
* Update ISIL download URLArthur de Jong2022-08-152-2/+2
|
* Remove redundant steps with tox_jobChristian Clauss2022-08-151-17/+9
| | | | | | | This also switches the other Tox jobs to use the latest Python 3.x interpreter. Closes https://github.com/arthurdejong/python-stdnum/pull/305
* Add extra court alias for german HandelsregisternummerRomuald R2022-08-152-0/+2
| | | | | | | | | Charlottenburg (Berlin) is a valid court representation for Berlin (Charlottenburg). See https://www.northdata.com/VRB+Service+GmbH,+Berlin/Amtsgericht+Charlottenburg+%28Berlin%29+HRB+103587+B Closes https://github.com/arthurdejong/python-stdnum/pull/298
* Use str.zfill() for padding leading zerosArthur de Jong2022-08-157-14/+7
|
* Add Czech bank account numberspetr.prikryl2022-08-144-0/+315
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/295 Closes https://github.com/arthurdejong/python-stdnum/pull/296
* Fix small typovovavili2022-08-131-1/+1
| | | | | | Improper inflection of plurals. Closes https://github.com/arthurdejong/python-stdnum/pull/299
* Put long line flake8 ignores in files instead of globallyArthur de Jong2022-08-1313-13/+12
| | | | | | | | 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
* Add support for Python 3.10Arthur de Jong2022-08-133-2/+3
|
* Upgrade GitHub ActionsChristian Clauss2022-08-131-10/+10
| | | | | Update checkout to v3 (no relevant changes) and setup-python to v4 (changes the names for pypy versions).
* Fix flake8 errorArthur de Jong2022-08-122-3/+2
| | | | | This stops using not as a function and hopefully also makes the logic clearer.