Update dependency schwifty to v2026.11.4 #90

Merged
tux merged 1 commit from renovate/schwifty-2026.x into main 2026-11-23 18:17:33 +01:00
Collaborator

This PR contains the following updates:

Package Update Change
schwifty (changelog) patch ==2026.11.3 → ==2026.11.4

Release Notes

mdomke/schwifty (schwifty)

v2026.11.4

Compare Source

Added

* Added German checksum methods ``27`` and ``29``, used by Norddeutsche Landesbank (bank codes
  ``25050000`` and ``29050000``), Landesbank Saar (``59050000``), and Investitionsbank
  Sachsen-Anhalt (``81010400``). Method ``29`` uses iterated transformation table lookups, and
  method ``27`` selects method ``00`` for accounts under 1 000 000 000 and method ``29``
  otherwise. Account codes for these banks were not checked before.
* Added the German checksum method ``B2``, used by Kreissparkasse Birkenfeld (bank code
  ``56250030``) and Stadtsparkasse Landstuhl -alt- (bank code ``54051660``). Account codes starting
  with ``0`` to ``7`` are checked with method ``02``, those starting with ``8`` or ``9`` with
  method ``00``. Account codes for these banks were not checked before.
* Added the German checksum method ``B3``, used by BBBank (bank code ``66090800``). Account codes
  starting with ``0`` to ``8`` are checked with method ``32``, those starting with ``9`` with
  method ``06``. Account codes for this bank were not checked before.
* Added the German checksum methods ``30``, ``56``, ``59``, ``64``, ``65``, ``66``, ``67``,
  ``71``, ``78``, ``92``, ``94``, ``D7`` and ``E0``. Account codes for the banks that use them
  were not checked before, so invalid ones are now rejected:

  * ``30``: Piraeus Bank Frankfurt Branch (``52420600``)
  * ``56``: S Broker Wiesbaden (``30030100`` and ``51051000``) and HSBC Continental Europe,
    Germany (``30030880``)
  * ``59``: ZV Landesbank Baden-Württemberg (``55050000``)
  * ``64``: Volksbank Koblenz Mittelrhein -alt- (``57090000`` and ``57090010``)
  * ``65``: Baden-Württembergische Bank (``60020030`` and ``66020020``)
  * ``66``: Credit Suisse (Deutschland) (``50120500``)
  * ``67``: FNZ Bank (``70013000`` and ``70013010``)
  * ``71``: Internationales Bankhaus Bodensee (``65110200``)
  * ``78``: Sparkasse Essen (``36050105``)
  * ``92``: MLP Banking (``67230000`` and ``67230001``)
  * ``94``: Weberbank (``10120100``)
  * ``D7``: Oyak Anker Bank (``57020500``)
  * ``E0``: start:bausparkasse (``20120400``)
* Added the German checksum methods ``96``, ``98``, ``B1``, ``B8``, ``C2``, ``C7``, ``C8``,
  ``C9``, ``D2``, ``D6``, ``E3`` and ``E4``. Each checks the account code with existing methods
  in turn until one accepts it. Account codes for the banks that use them were not checked
  before, so invalid ones are now rejected:

  * ``96``: methods ``19`` and ``00``, then accounts 0001300000 to 0099399999 without check;
    Frankfurter Sparkasse (``50050201``)
  * ``98``: method ``01`` over positions 3 to 9, then method ``32``; CB Bank (``74290100``)
  * ``B1``: methods ``05``, ``01`` and ``00``; Stadtsparkasse Hildesheim -alt- (``25950001``)
    and Sparkasse Hildesheim Goslar Peine (``25950130``)
  * ``B8``: methods ``20`` and ``29``, then accounts 5100000000 to 5999999999 and 9010000000 to
    9109999999 without check; BSK 1818 - Berliner Sparkasse (``10050000``) and
    S-Kreditpartner, Berlin (``10050020``)
  * ``C2``: methods ``22``, ``00`` and ``04``; Sparkasse Mittelholstein (``21450000``)
  * ``C7``: methods ``63`` and ``06``; norisbank (``76026000``)
  * ``C8``: methods ``00``, ``04`` and ``07``; Nord-Ostsee Sparkasse (``21750000``)
  * ``C9``: methods ``00`` and ``07``; Sparkasse Neunkirchen (``59252046``)
  * ``D2``: methods ``95``, ``00`` and ``68``; CACEIS Bank, Germany Branch (``70120500``)
  * ``D6``: methods ``07``, ``03`` and ``00``; Stadtsparkasse Wedel (``22151730``)
  * ``E3``: methods ``00`` and ``21``; Sparkasse Saarbrücken (``59050101``)
  * ``E4``: methods ``02`` and ``00``; Sparkasse an Volme und Ruhr (``45050001``)
* Added the German checksum methods ``74``, ``A5``, ``A6``, ``B5``, ``B7`` and ``D0``. Account
  codes for the banks that use them were not checked before, so invalid ones are now rejected:

  * ``74``: method ``00``, where 6-digit account codes may also use the difference to the sum
    rounded up to a multiple of 5 as check digit, then method ``04``; Förde Sparkasse
    (``21050170``)
  * ``A5``: method ``00``, then method ``10`` for account codes not starting with 9; Sparkasse
    Mittelfranken-Süd (``76450000``)
  * ``A6``: method ``00`` for account codes with an 8 at position 2, method ``01`` otherwise;
    Sparkasse Bad Hersfeld-Rotenburg (``53250000``)
  * ``B5``: method ``05``, then method ``00`` for account codes not starting with 8 or 9;
    Kreissparkasse Köln (``37050299``)
  * ``B7``: method ``01`` for account codes 0001000000 to 0005999999 and 0700000000 to
    0899999999, no check otherwise; Oldenburgische Landesbank AG (``50010700``)
  * ``D0``: no check for account codes starting with 57, method ``20`` otherwise; Stadt- und
    Kreissparkasse Leipzig (``86055592``)
* Added the German checksum methods ``57``, ``81``, ``A4``, ``A8``, ``B6``, ``C3`` and ``C5``,
  and the methods ``51``, ``53``, ``58``, ``75`` and ``93`` they build on. With these, every
  German checksum method used by a bank in the registry is implemented. Account codes for the
  banks that use the new methods were not checked before, so invalid ones are now rejected:

  * ``57``: four variants picked by the first two digits; TARGOBANK (``30020900``)
  * ``81``: method ``32``, or the exception of method ``51`` for account codes with a 9 at
    position 3; Augsburger Aktienbank (netbank) (``20090500``)
  * ``A4``: methods ``32``, its modulus 7 version and ``93``, or methods ``33`` and ``93`` for
    account codes with 99 at positions 3-4; apoBank (``30060601``)
  * ``A8``: methods ``32`` and ``00`` over positions 4 to 9, or the exception of method ``51``
    for account codes with a 9 at position 3; Sparda-Bank Berlin (``12096597``)
  * ``B6``: method ``20`` for account codes starting with 1 to 9 or 02691 to 02699, method
    ``53`` otherwise; Saalesparkasse (``80053762``). Like ``C0``, this method needs the bank
    code.
  * ``C3``: method ``58`` for account codes starting with 9, method ``00`` otherwise; Marcard,
    Stein & Co Bankiers (``20030400``)
  * ``C5``: methods ``75``, ``29``, ``00`` or ``09``, picked by the length and leading digits
    of the account code; Hamburg Commercial Bank (``20050000``, ``21050000`` and
    ``23050000``)

Changed
  • German checksum methods that fall back to further variants now treat a variant that finds no
    valid check digit as a rejection and move on to the next variant. As a result, the validate
    method of the A2 checksum algorithm returns False instead of raising
    :exc:.InvalidBBANChecksum when its method 04 variant hits a remainder of 1. Validating a
    BBAN raises :exc:.InvalidBBANChecksum in both cases, as before.

Fixed

* :meth:`.BBAN.random` and :meth:`.IBAN.random` generate their values with ``rstr.Xeger``, which
  works with rstr 4.0.0. That release removed ``Rstr.xeger``, so both methods raised
  ``AttributeError`` on a fresh install.
* :meth:`.BBAN.from_components` and :meth:`.BBAN.random` only split a combined bank and branch
  code when no branch code was explicitly provided, avoiding overwriting caller-provided branch
  codes. Passing an oversized bank code alongside an explicit branch code now raises
  :exc:`.InvalidBankCode`, even when the branch codes match.
* :func:`schwifty.registry.get_banks_by_bic` finds the banks of a BIC given in lowercase, such as
  ``bkauatww`` or ``bkauatwwxxx``. It used to return an empty list for them, while
  :func:`schwifty.registry.get_sepa_schemes` already accepted lowercase BICs.

`2026.11.3`_ - 2026/11/17
-------------------------
Fixed
  • The German checksum method 23 (Augsburger Aktienbank, bank code 72020700) compares
    positions 6 and 7 when the remainder is 1, as the specification requires, instead of positions 9
    and 10 like method 16.
  • :meth:.BBAN.from_components validates the length of all national components against their
    specification, preventing oversized inputs for extended fields like account_id,
    account_type, account_holder_id, and currency_code from overflowing and corrupting
    the assembled BBAN.

Added

* Added the German checksum method ``D8``, used by Volkswagen Bank (bank code ``27020000``) and
  its branches Audi Bank, Skoda Bank, AutoEuropa Bank and Seat Bank. Account codes from
  ``1000000000`` on are checked with method ``00``, account codes from ``0010000000`` to
  ``0099999999`` are not checked (method ``09``), and all others are invalid. Account codes for
  these banks were not checked before.

`2026.11.2`_ - 2026/11/13
-------------------------
Added
  • The documentation describes how to validate and complete national account numbers without an
    IBAN, which national check digits are supported, and the registries that ship with schwifty:
    the bank registries and their sources, the SCL directory and the IBAN registry. The functions of
    :mod:schwifty.registry that query them are documented as part of the API.
  • Added :attr:.IBAN.sepa_schemes and :attr:.BBAN.sepa_schemes, the SEPA schemes that the bank
    of an account takes part in, e.g. to check whether a direct debit can be collected from it. They
    are the schemes of the account's BIC, and empty if its BIC is unknown.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [schwifty](https://github.com/mdomke/schwifty) ([changelog](https://github.com/mdomke/schwifty/blob/main/CHANGELOG.rst)) | patch | `==2026.11.3` → `==2026.11.4` | --- ### Release Notes <details> <summary>mdomke/schwifty (schwifty)</summary> ### [`v2026.11.4`](https://github.com/mdomke/schwifty/blob/HEAD/CHANGELOG.rst#2026114---20261123) [Compare Source](https://github.com/mdomke/schwifty/compare/2026.11.3...2026.11.4) Added ``` * Added German checksum methods ``27`` and ``29``, used by Norddeutsche Landesbank (bank codes ``25050000`` and ``29050000``), Landesbank Saar (``59050000``), and Investitionsbank Sachsen-Anhalt (``81010400``). Method ``29`` uses iterated transformation table lookups, and method ``27`` selects method ``00`` for accounts under 1 000 000 000 and method ``29`` otherwise. Account codes for these banks were not checked before. * Added the German checksum method ``B2``, used by Kreissparkasse Birkenfeld (bank code ``56250030``) and Stadtsparkasse Landstuhl -alt- (bank code ``54051660``). Account codes starting with ``0`` to ``7`` are checked with method ``02``, those starting with ``8`` or ``9`` with method ``00``. Account codes for these banks were not checked before. * Added the German checksum method ``B3``, used by BBBank (bank code ``66090800``). Account codes starting with ``0`` to ``8`` are checked with method ``32``, those starting with ``9`` with method ``06``. Account codes for this bank were not checked before. * Added the German checksum methods ``30``, ``56``, ``59``, ``64``, ``65``, ``66``, ``67``, ``71``, ``78``, ``92``, ``94``, ``D7`` and ``E0``. Account codes for the banks that use them were not checked before, so invalid ones are now rejected: * ``30``: Piraeus Bank Frankfurt Branch (``52420600``) * ``56``: S Broker Wiesbaden (``30030100`` and ``51051000``) and HSBC Continental Europe, Germany (``30030880``) * ``59``: ZV Landesbank Baden-Württemberg (``55050000``) * ``64``: Volksbank Koblenz Mittelrhein -alt- (``57090000`` and ``57090010``) * ``65``: Baden-Württembergische Bank (``60020030`` and ``66020020``) * ``66``: Credit Suisse (Deutschland) (``50120500``) * ``67``: FNZ Bank (``70013000`` and ``70013010``) * ``71``: Internationales Bankhaus Bodensee (``65110200``) * ``78``: Sparkasse Essen (``36050105``) * ``92``: MLP Banking (``67230000`` and ``67230001``) * ``94``: Weberbank (``10120100``) * ``D7``: Oyak Anker Bank (``57020500``) * ``E0``: start:bausparkasse (``20120400``) * Added the German checksum methods ``96``, ``98``, ``B1``, ``B8``, ``C2``, ``C7``, ``C8``, ``C9``, ``D2``, ``D6``, ``E3`` and ``E4``. Each checks the account code with existing methods in turn until one accepts it. Account codes for the banks that use them were not checked before, so invalid ones are now rejected: * ``96``: methods ``19`` and ``00``, then accounts 0001300000 to 0099399999 without check; Frankfurter Sparkasse (``50050201``) * ``98``: method ``01`` over positions 3 to 9, then method ``32``; CB Bank (``74290100``) * ``B1``: methods ``05``, ``01`` and ``00``; Stadtsparkasse Hildesheim -alt- (``25950001``) and Sparkasse Hildesheim Goslar Peine (``25950130``) * ``B8``: methods ``20`` and ``29``, then accounts 5100000000 to 5999999999 and 9010000000 to 9109999999 without check; BSK 1818 - Berliner Sparkasse (``10050000``) and S-Kreditpartner, Berlin (``10050020``) * ``C2``: methods ``22``, ``00`` and ``04``; Sparkasse Mittelholstein (``21450000``) * ``C7``: methods ``63`` and ``06``; norisbank (``76026000``) * ``C8``: methods ``00``, ``04`` and ``07``; Nord-Ostsee Sparkasse (``21750000``) * ``C9``: methods ``00`` and ``07``; Sparkasse Neunkirchen (``59252046``) * ``D2``: methods ``95``, ``00`` and ``68``; CACEIS Bank, Germany Branch (``70120500``) * ``D6``: methods ``07``, ``03`` and ``00``; Stadtsparkasse Wedel (``22151730``) * ``E3``: methods ``00`` and ``21``; Sparkasse Saarbrücken (``59050101``) * ``E4``: methods ``02`` and ``00``; Sparkasse an Volme und Ruhr (``45050001``) * Added the German checksum methods ``74``, ``A5``, ``A6``, ``B5``, ``B7`` and ``D0``. Account codes for the banks that use them were not checked before, so invalid ones are now rejected: * ``74``: method ``00``, where 6-digit account codes may also use the difference to the sum rounded up to a multiple of 5 as check digit, then method ``04``; Förde Sparkasse (``21050170``) * ``A5``: method ``00``, then method ``10`` for account codes not starting with 9; Sparkasse Mittelfranken-Süd (``76450000``) * ``A6``: method ``00`` for account codes with an 8 at position 2, method ``01`` otherwise; Sparkasse Bad Hersfeld-Rotenburg (``53250000``) * ``B5``: method ``05``, then method ``00`` for account codes not starting with 8 or 9; Kreissparkasse Köln (``37050299``) * ``B7``: method ``01`` for account codes 0001000000 to 0005999999 and 0700000000 to 0899999999, no check otherwise; Oldenburgische Landesbank AG (``50010700``) * ``D0``: no check for account codes starting with 57, method ``20`` otherwise; Stadt- und Kreissparkasse Leipzig (``86055592``) * Added the German checksum methods ``57``, ``81``, ``A4``, ``A8``, ``B6``, ``C3`` and ``C5``, and the methods ``51``, ``53``, ``58``, ``75`` and ``93`` they build on. With these, every German checksum method used by a bank in the registry is implemented. Account codes for the banks that use the new methods were not checked before, so invalid ones are now rejected: * ``57``: four variants picked by the first two digits; TARGOBANK (``30020900``) * ``81``: method ``32``, or the exception of method ``51`` for account codes with a 9 at position 3; Augsburger Aktienbank (netbank) (``20090500``) * ``A4``: methods ``32``, its modulus 7 version and ``93``, or methods ``33`` and ``93`` for account codes with 99 at positions 3-4; apoBank (``30060601``) * ``A8``: methods ``32`` and ``00`` over positions 4 to 9, or the exception of method ``51`` for account codes with a 9 at position 3; Sparda-Bank Berlin (``12096597``) * ``B6``: method ``20`` for account codes starting with 1 to 9 or 02691 to 02699, method ``53`` otherwise; Saalesparkasse (``80053762``). Like ``C0``, this method needs the bank code. * ``C3``: method ``58`` for account codes starting with 9, method ``00`` otherwise; Marcard, Stein & Co Bankiers (``20030400``) * ``C5``: methods ``75``, ``29``, ``00`` or ``09``, picked by the length and leading digits of the account code; Hamburg Commercial Bank (``20050000``, ``21050000`` and ``23050000``) Changed ``` - German checksum methods that fall back to further variants now treat a variant that finds no valid check digit as a rejection and move on to the next variant. As a result, the `validate` method of the `A2` checksum algorithm returns `False` instead of raising :exc:`.InvalidBBANChecksum` when its method `04` variant hits a remainder of 1. Validating a BBAN raises :exc:`.InvalidBBANChecksum` in both cases, as before. Fixed ``` * :meth:`.BBAN.random` and :meth:`.IBAN.random` generate their values with ``rstr.Xeger``, which works with rstr 4.0.0. That release removed ``Rstr.xeger``, so both methods raised ``AttributeError`` on a fresh install. * :meth:`.BBAN.from_components` and :meth:`.BBAN.random` only split a combined bank and branch code when no branch code was explicitly provided, avoiding overwriting caller-provided branch codes. Passing an oversized bank code alongside an explicit branch code now raises :exc:`.InvalidBankCode`, even when the branch codes match. * :func:`schwifty.registry.get_banks_by_bic` finds the banks of a BIC given in lowercase, such as ``bkauatww`` or ``bkauatwwxxx``. It used to return an empty list for them, while :func:`schwifty.registry.get_sepa_schemes` already accepted lowercase BICs. `2026.11.3`_ - 2026/11/17 ------------------------- Fixed ``` - The German checksum method `23` (Augsburger Aktienbank, bank code `72020700`) compares positions 6 and 7 when the remainder is 1, as the specification requires, instead of positions 9 and 10 like method `16`. - :meth:`.BBAN.from_components` validates the length of all national components against their specification, preventing oversized inputs for extended fields like `account_id`, `account_type`, `account_holder_id`, and `currency_code` from overflowing and corrupting the assembled BBAN. Added ``` * Added the German checksum method ``D8``, used by Volkswagen Bank (bank code ``27020000``) and its branches Audi Bank, Skoda Bank, AutoEuropa Bank and Seat Bank. Account codes from ``1000000000`` on are checked with method ``00``, account codes from ``0010000000`` to ``0099999999`` are not checked (method ``09``), and all others are invalid. Account codes for these banks were not checked before. `2026.11.2`_ - 2026/11/13 ------------------------- Added ``` - The documentation describes how to validate and complete national account numbers without an IBAN, which national check digits are supported, and the registries that ship with `schwifty`: the bank registries and their sources, the SCL directory and the IBAN registry. The functions of :mod:`schwifty.registry` that query them are documented as part of the API. - Added :attr:`.IBAN.sepa_schemes` and :attr:`.BBAN.sepa_schemes`, the SEPA schemes that the bank of an account takes part in, e.g. to check whether a direct debit can be collected from it. They are the schemes of the account's BIC, and empty if its BIC is unknown. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNTYuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjI1Ni4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Update dependency schwifty to v2026.11.4
All checks were successful
PyTest / build (pull_request) Successful in 5m44s
32b2af9c06
tux merged commit abbad69dcd into main 2026-11-23 18:17:33 +01:00
tux deleted branch renovate/schwifty-2026.x 2026-11-23 18:17:33 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Netz39_Vorstand/entities_validation_svc!90
No description provided.