Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/no
Commit message (Collapse)AuthorAgeFilesLines
* Use str.zfill() for padding leading zerosArthur de Jong2022-08-151-2/+1
|
* Add documentation for Norwegian OrganisasjonsnummerArthur de Jong2021-10-031-0/+5
|
* Simplify range checking in Norwegian birth numbersDimitri Papadopoulos2021-08-101-2/+2
| | | | | | LGTM alert: Test is always true See: https://lgtm.com/rules/900073/ Closes https://github.com/arthurdejong/python-stdnum/pull/270
* Implement get_birth_date() for no.fodselsnummerLeon Sandøy2020-03-011-7/+49
| | | | | | | | | | | | | | | | | | | | | This adds a function that allows you to determine a persons birth date from a Norwegian fødselsnummer. This also accounts for D-numbers, H-numbers, and FH-numbers, which contain special exceptions and modifications to the birthdate portion of the number. Most of the information this is based on was found here: https://no.wikipedia.org/wiki/F%C3%B8dselsnummer#H-nummer It also updates the list of valid fødselsnummer in the tests, since this list contained many numbers that are not valid by this new validation that now accounts for dates. Additionally, this updates all tests that were failing under the new validation, and adds a few new tests to bring the coverage to 100%. Closes https://github.com/arthurdejong/python-stdnum/pull/187
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-293-6/+6
| | | | | | | | | | | 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
* Add Norwegian FødselsnummerIlya Vihtinsky2018-12-242-1/+102
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/88
* Add Norwegian bank account numberArthur de Jong2018-08-222-0/+184
| | | | | | | This includes validation of Norwegian bank account numbers and conversion to IBAN. Closes https://github.com/arthurdejong/python-stdnum/issues/79
* 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-112-10/+8
|
* Use zip() instead of enumerate()Arthur de Jong2015-10-051-1/+1
| | | | Makes the code slightly simpler and more compact.
* Add support for Norwegian organisation and VAT numbersTuomas Toivonen2015-04-173-0/+176
This commit also includes changes from Tomas Thor Jonsson <benregn@gmail.com>.