From 051c68f78592c316971234270c925e0357d942fb Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sun, 1 Mar 2026 23:28:13 +0100 Subject: [PATCH] [IMP] account_ebics: pre-commit auto fixes --- .pre-commit-config.yaml | 2 -- account_ebics/models/ebics_file.py | 3 +-- account_ebics/models/ebics_userid.py | 7 +++---- requirements.txt | 2 ++ 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f8d6c1..f1ae3dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,3 @@ - - exclude: | (?x) # NOT INSTALLABLE ADDONS diff --git a/account_ebics/models/ebics_file.py b/account_ebics/models/ebics_file.py index 44e341f..a929478 100644 --- a/account_ebics/models/ebics_file.py +++ b/account_ebics/models/ebics_file.py @@ -379,8 +379,7 @@ class EbicsFile(models.Model): file_data = base64.b64decode(self.data).replace(b"\n", b"").replace(b"\r", b"") if len(file_data) % 120: message = self.env._( - "Incorrect CFONB120 file:\n" - "the file is not divisible in 120 char lines" + "Incorrect CFONB120 file:\nthe file is not divisible in 120 char lines" ) res["notifications"].append({"type": "error", "message": message}) return datas diff --git a/account_ebics/models/ebics_userid.py b/account_ebics/models/ebics_userid.py index cdbdb76..9a943c6 100644 --- a/account_ebics/models/ebics_userid.py +++ b/account_ebics/models/ebics_userid.py @@ -69,8 +69,7 @@ class EbicsUserID(models.Model): string="Users", required=True, domain=[("share", "=", False)], - help="Users who are allowed to use this EBICS UserID for " - " bank transactions.", + help="Users who are allowed to use this EBICS UserID for bank transactions.", ) signature_class = fields.Selection( selection=[("E", "Single signature"), ("T", "Transport signature")], @@ -149,7 +148,7 @@ class EbicsUserID(models.Model): # create self-signed X.509 certificates ebics_key_x509 = fields.Boolean( string="X509 support", - help="Set this flag in order to work with " "self-signed X.509 certificates", + help="Set this flag in order to work with self-signed X.509 certificates", ) ebics_key_x509_dn_cn = fields.Char( string="Common Name [CN]", @@ -417,7 +416,7 @@ class EbicsUserID(models.Model): if not ebics_config_bank: raise UserError( self.env._( - "No bank defined for the financial journal " "of the EBICS Config" + "No bank defined for the financial journal of the EBICS Config" ) ) try: diff --git a/requirements.txt b/requirements.txt index 9cd1629..6c420f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,3 @@ # generated from manifests external_dependencies +cryptography +fintech