Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/it
Commit message (Collapse)AuthorAgeFilesLines
* Put long line flake8 ignores in files instead of globallyArthur de Jong2022-08-131-1/+1
| | | | | | | | 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
* Fix flake8 errorArthur de Jong2022-08-121-2/+1
| | | | | This stops using not as a function and hopefully also makes the logic clearer.
* Add Italian AIC codesFabrizioMontanari2020-03-141-0/+132
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/193
* The Italian IVA is also a Codice FiscaleArthur de Jong2020-01-051-11/+31
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/180
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-2/+2
| | | | | | | | | | | 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
* Update the flake8 ignore listArthur de Jong2018-02-141-1/+1
| | | | | | | | | | | | 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.
* Minor code improvements (mostly PEP8)Arthur de Jong2017-09-111-1/+1
|
* Make import ordering consistentArthur de Jong2017-09-111-1/+1
|
* Docstring improvementsArthur de Jong2017-09-112-10/+8
|
* Code style improvementsArthur de Jong2015-10-111-3/+3
| | | | | | | 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.
* Small typo and code style fixesArthur de Jong2015-08-161-2/+2
|
* Add an Italian Codice Fiscale moduleArthur de Jong2014-02-021-0/+152
| | | | | | | | | | | | | | | | | | 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.
* Implement validate() for Italian numbersArthur de Jong2013-06-081-14/+26
|
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-7/+6
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* for all countries, provide vat as an alias for the local ↵Arthur de Jong2012-02-191-0/+3
| | | | | | vat identifier git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@153 9dea7c4f-944c-4273-ac1a-574ede026edc
* give all packages a descriptionArthur de Jong2012-02-191-0/+21
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@152 9dea7c4f-944c-4273-ac1a-574ede026edc
* strip a few more separatorsArthur de Jong2012-02-171-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@138 9dea7c4f-944c-4273-ac1a-574ede026edc
* use the luhn module where possibleArthur de Jong2012-02-121-9/+3
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@126 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a Partita IVA (Italian VAT number) moduleArthur de Jong2012-02-122-0/+68
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@124 9dea7c4f-944c-4273-ac1a-574ede026edc