Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/ec
Commit message (Collapse)AuthorAgeFilesLines
* Docstring improvementsArthur de Jong2017-09-112-8/+8
|
* Use a slightly more readable weight alternationArthur de Jong2017-04-071-2/+2
| | | | | Switch to a slightly more readable syntax for alternating between two weights in checksums calculations.
* Use zip() instead of enumerate()Arthur de Jong2015-10-051-2/+2
| | | | Makes the code slightly simpler and more compact.
* Validate parts of numbersArthur de Jong2014-10-172-0/+12
| | | | | This raises exceptions when the provice or establishment number part of the number contains invalid values.
* Refactor checksum functionsArthur de Jong2014-10-172-47/+23
| | | | | | Use the CI checks from within the RUC module for natural RUC numbers (thereby eliminating a bug in the RUC checksum calculation) and simplify the checksum functions.
* Use dedicated doctestsArthur de Jong2014-10-172-15/+7
| | | | | | | This moves a number of the existing test cases to dedicated doctest files and extend the tests with more numbers and corner cases. This also fixes a few docstrings.
* Add Ecuadorian CI and RUC numbersJonathan Finlay2014-10-143-0/+215
Add modules for Ecuadorian Identification Card (CI - Cédula de identidad) and Fiscal Numbers (RUC - Registro Único de Contribuyentes)