Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/mx
Commit message (Collapse)AuthorAgeFilesLines
* Fix disabling check digit validation of Mexican CURPArthur de Jong2022-01-091-3/+3
| | | | | | | | | The validation functions supported an optional parameter to disable check digit validation in the number that didn't actually affect validation and was most likely accidentally copied from the RFC module. Fixes 50874a9 Closes https://github.com/arthurdejong/python-stdnum/issues/285
* Use HTTPS in URLs where possibleArthur de Jong2020-03-202-2/+2
|
* Add Mexican CURPArthur de Jong2019-02-062-2/+138
|
* Fix an issue with format of Mexican tax numbersArthur de Jong2018-05-011-11/+5
| | | | | Fix an issue where the format accepted a mix of personal and company numberer in validation causing in a raised ValueError exception.
* Make unicode conversion standardArthur de Jong2018-05-011-13/+15
| | | | | | 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.
* 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.
* Docstring improvementsArthur de Jong2017-09-111-3/+3
|
* Make more information links consistentArthur de Jong2016-04-111-4/+6
| | | | | Also fix a docstring in stdnum.nl.bsn and add a pointer to stdnum.nl.onderwijsnummer.
* Document accuracy of RFC check digit testArthur de Jong2016-04-011-2/+6
| | | | | | | | There is an online service that allows validating RFC numbers. It seems there are a lot of numbers that do not match the check digit algorithm which confirms disabling the check digit test by default is a good idea. Also see https://github.com/arthurdejong/python-stdnum/issues/32
* Add Mexican RFC numberArthur de Jong2015-10-052-0/+174
This adds support for the Mexican tax number RFC (Registro Federal de Contribuyentes). This module includes a number of checks on the number but the validation of the last check digit is disabled by default because a large number of numbers were found that were otherwise valid but had an invalid check digit.