| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The xlrd has dropped support for parsing XLSX files. We still use xlrd
for update/be_banks.py because they use the classic XLS format and
openpyxl does not support that format.
|
|
|
|
|
|
|
| |
It seems the old option wasn't working with all versions of setuptools
anyway.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
|
|
|
|
| |
This also fixes code style fixes in the Sphinx configuration file.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Nose hasn't seen a release since 2015 and sadly doesn't work with Python
3.10.
See https://github.com/nose-devs/nose/issues/1099
|
|
|
|
| |
It seems that flake8 now uses T201 instead of T001 for this check.
|
| |
|
| |
|
|
|
|
| |
Fixes test failures with recent flake8-quotes.
|
| |
|
|
|
|
| |
Recent versions of flake8 changed the defaults of the errors to ignore.
|
|
|
|
|
| |
This also fixes the name of the Dutch postal_code alias and tunes the
tests.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that the tests fail if 100% branch coverage is not
achieved. It also adds some pragma statements for code that cannot be
covered or is Python version dependent.
Furthermore, the get_module_list() function was removed from stdnum.util
and more tests were made from stdnum.util and stdnum.numdb. The
functionality to call format() in a country-specific IBAN implementation
was also dropped because it was not used.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This introduces a new module for switching the validation scheme. Instead of
using the is_valid() function that returns a boolean a validate() function
either returns the sanitised number or raises an exception that should
indicate the kind of validation failure.
This should make it easier for applications calling this library to present
more informative messages to the user.
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@162 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@93 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
hack) to get coverage to 100%
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@29 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
documentation
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@19 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
directories
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@9 9dea7c4f-944c-4273-ac1a-574ede026edc
|