diff --git a/.copier-answers.yml b/.copier-answers.yml index aaec2435e0..dc30900579 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.19 +_commit: v1.20 _src_path: gh:oca/oca-addons-repo-template additional_ruff_rules: [] ci: GitHub diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5c8a3a7998..e672d8bbbf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: hooks: - id: whool-init - repo: https://github.com/oca/maintainer-tools - rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60 + rev: 9a170331575a265c092ee6b24b845ec508e8ef75 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons @@ -110,7 +110,7 @@ repos: args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/OCA/pylint-odoo - rev: v8.0.19 + rev: v9.0.4 hooks: - id: pylint_odoo name: pylint with optional checks diff --git a/.ruff.toml b/.ruff.toml index 634db8e79b..0240c75f6a 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -6,6 +6,7 @@ fix = true extend-select = [ "B", "C90", + "E501", # line too long (default 88) "I", # isort "UP", # pyupgrade ] diff --git a/mail_activity_board/__manifest__.py b/mail_activity_board/__manifest__.py index 84789c1172..f8da9e1f71 100644 --- a/mail_activity_board/__manifest__.py +++ b/mail_activity_board/__manifest__.py @@ -8,7 +8,8 @@ "development_status": "Beta", "category": "Social Network", "website": "https://github.com/OCA/social", - "author": "SDi, David Juaneda, Sodexis, ACSONE SA/NV, Odoo Community Association (OCA)", + "author": "SDi, David Juaneda, Sodexis, ACSONE SA/NV," + " Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "depends": ["calendar", "spreadsheet_dashboard"], diff --git a/mail_outbound_static/tests/test_ir_mail_server.py b/mail_outbound_static/tests/test_ir_mail_server.py index 7b7fbde373..66bbe6e2dc 100644 --- a/mail_outbound_static/tests/test_ir_mail_server.py +++ b/mail_outbound_static/tests/test_ir_mail_server.py @@ -159,7 +159,10 @@ def test_01_from_outgoing_server_domainone(self): self.assertEqual( used_mail_server, expected_mail_server, - f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}", + ( + f"It using {used_mail_server.name}" + f" but we expect to use {expected_mail_server.name}" + ), ) def test_02_from_outgoing_server_domaintwo(self): @@ -179,7 +182,10 @@ def test_02_from_outgoing_server_domaintwo(self): self.assertEqual( used_mail_server, expected_mail_server, - f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}", + ( + f"It using {used_mail_server.name}" + f" but we expect to use {expected_mail_server.name}" + ), ) def test_03_from_outgoing_server_another(self): @@ -201,7 +207,10 @@ def test_03_from_outgoing_server_another(self): self.assertEqual( used_mail_server, expected_mail_server, - f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}", + ( + f"It using {used_mail_server.name}" + f" but we expect to use {expected_mail_server.name}" + ), ) def test_04_from_outgoing_server_none_use_config(self): @@ -277,7 +286,10 @@ def test_06_from_outgoing_server_no_name_from(self): self.assertEqual( used_mail_server, expected_mail_server, - f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}", + ( + f"It using {used_mail_server.name}" + f" but we expect to use {expected_mail_server.name}" + ), ) def test_07_from_outgoing_server_multidomain_1(self): @@ -297,7 +309,10 @@ def test_07_from_outgoing_server_multidomain_1(self): self.assertEqual( used_mail_server, expected_mail_server, - f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}", + ( + f"It using {used_mail_server.name}" + f" but we expect to use {expected_mail_server.name}" + ), ) def test_08_from_outgoing_server_multidomain_3(self): @@ -317,7 +332,10 @@ def test_08_from_outgoing_server_multidomain_3(self): self.assertEqual( used_mail_server, expected_mail_server, - f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}", + ( + f"It using {used_mail_server.name}" + f" but we expect to use {expected_mail_server.name}" + ), ) def test_09_not_valid_domain_whitelist(self): diff --git a/mail_partner_forwarding/models/res_partner.py b/mail_partner_forwarding/models/res_partner.py index dd8881fd1b..391677d825 100644 --- a/mail_partner_forwarding/models/res_partner.py +++ b/mail_partner_forwarding/models/res_partner.py @@ -8,5 +8,6 @@ class ResPartner(models.Model): "res.partner", string="Forwarding Partner", help="Messages will be forwarded only for partners that are followers but no " - "partners being notify because they belong to channel that is following the thread", + """partners being notify because they belong to channel that is following + the thread""", )