diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 419c962b9..455d6a1e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,6 +53,7 @@ repos: hooks: - id: oca-checks-odoo-module - id: oca-checks-po + files: '/i18n/[a-zA-Z0-9_]*\.(po|pot)$' - repo: https://github.com/myint/autoflake rev: v1.4 hooks: diff --git a/component/tests/test_build_component.py b/component/tests/test_build_component.py index d9547cb9c..d3883b352 100644 --- a/component/tests/test_build_component.py +++ b/component/tests/test_build_component.py @@ -55,6 +55,7 @@ def test_inherit_bases(self): class Component1(Component): _name = "component1" + # pylint: disable=R7980 class Component2(Component): _inherit = "component1" @@ -177,7 +178,7 @@ class Component2(Component): def test_no_parent(self): """Ensure we can't _inherit a non-existent component""" - + # pylint: disable=R7980 class Component1(Component): _name = "component1" _inherit = "component1" diff --git a/connector/components/locker.py b/connector/components/locker.py index bbc529ccd..259c3b838 100644 --- a/connector/components/locker.py +++ b/connector/components/locker.py @@ -6,6 +6,8 @@ import psycopg2 from odoo.addons.component.core import Component + +# pylint: disable=W7950 from odoo.addons.connector.exception import RetryableJobError _logger = logging.getLogger(__name__) diff --git a/connector/components/synchronizer.py b/connector/components/synchronizer.py index 61cfe2dee..83a4f3118 100644 --- a/connector/components/synchronizer.py +++ b/connector/components/synchronizer.py @@ -24,6 +24,8 @@ from odoo import _ from odoo.addons.component.core import AbstractComponent + +# pylint: disable=W7950 from odoo.addons.connector.exception import IDMissingInBackend, RetryableJobError _logger = logging.getLogger(__name__) diff --git a/connector/doc/conf.py b/connector/doc/conf.py index c8b4607a8..86752524d 100644 --- a/connector/doc/conf.py +++ b/connector/doc/conf.py @@ -15,6 +15,7 @@ import os import sys +# pylint: disable=W7936 import sphinx_bootstrap_theme # If extensions (or modules to document with autodoc) are in another directory, diff --git a/connector/tests/test_mapper.py b/connector/tests/test_mapper.py index ed0cb726f..4f86aa7e0 100644 --- a/connector/tests/test_mapper.py +++ b/connector/tests/test_mapper.py @@ -112,6 +112,7 @@ class FryMapper(Component): def name(self): pass + # pylint: disable=R7980 class FryMapperInherit(Component): _inherit = "fry.mapper"