| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/401
|
| |
|
| |
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/169
|
|
|
|
|
|
|
|
|
|
|
| |
The problem with the latter is that it will also accept all kinds of
unicode digits that are not the ASCII 0-9 digits causing all kinds of
problems in check digit calculations.
Some of these unicode characters are also considered digits by int() but
some are not (such as the SUPERSCRIPT TWO unicode character).
Closes https://github.com/arthurdejong/python-stdnum/issues/96
|
|
|
|
|
|
|
|
| |
NIF starting with K, L or M are NIF instead of CIF.
This also adds NIF-DNI-CIF-NIE classification tests.
Closes https://github.com/arthurdejong/python-stdnum/pull/81
|
|
|
|
|
|
| |
A few modules use non-ASCII characters in numbers. This introduces a
to_unicode() function in util so that it can be used by multiple
modules.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This supports the Referencia Catastral with an Ñ in it for both byte
strings (Python 2) and unicode strings (Python 2 and 3). Support for
literal unicode strings in Python 2 doctests is flaky so the test is a
bit ugly.
This also adds a few numbers that were found online. Sadly no real
numbers with an Ñ in it have been found so the one in the test was
constructed.
|
| |
|
|
|
|
|
|
|
|
| |
The control digit check algorithm is based on Javascript implementation
by Vicente Sancho that can be found at
http://trellat.es/validar-la-referencia-catastral-en-javascript/
See https://github.com/arthurdejong/python-stdnum/pull/38
|
|
|
|
| |
This validates the country-specific part of the IBAN.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
usable format
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
vat identifier
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@153 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@152 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@126 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
VAT number) module
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@115 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
Spanish tax identification number) module
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@114 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@112 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
Spanish identification number for foreigners) module
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@111 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
personal identity codes) module
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@110 9dea7c4f-944c-4273-ac1a-574ede026edc
|