| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This stops using not as a function and hopefully also makes the logic
clearer.
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/193
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/180
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Ensure that regular expressions are r'' strings, avoid too long lines
and fix line wrapping. Also avoid catching toplevel Exception when
possible and use binascii for hex to binary conversion which is
available in both Python 2 and 3.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This module validates 16 digit Italian tax codes for individuals.
https://en.wikipedia.org/wiki/Italian_fiscal_code_card
It is based on the pycodicefiscale module that can be found here:
https://github.com/baxeico/pycodicefiscale
Functions have been renamed to follow the stdnum naming scheme:
isvalid() -> is_valid(), control_code -> calc_check_digit(),
get_birthday() -> get_birth_date(), get_sex() -> get_gender(). The
build() function for generating tax codes (based on name, birth place
and date) has been left out because this number cannot be uniquely
constructed with this information alone (numbers are issued by the
Italian tax office with a mechanism handle duplicates).
Addresses trac ticket #9.
|
| |
|
|
|
|
|
|
| |
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@138 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@126 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@124 9dea7c4f-944c-4273-ac1a-574ede026edc
|