Skip to content

Commit

Permalink
*: Fixing pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed Nov 1, 2023
1 parent 59a6a08 commit 64fe870
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion component/tests/test_build_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def test_inherit_bases(self):
class Component1(Component):
_name = "component1"

# pylint: disable=R7980
class Component2(Component):
_inherit = "component1"

Expand Down Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions connector/components/locker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
2 changes: 2 additions & 0 deletions connector/components/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
1 change: 1 addition & 0 deletions connector/doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions connector/tests/test_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class FryMapper(Component):
def name(self):
pass

# pylint: disable=R7980
class FryMapperInherit(Component):
_inherit = "fry.mapper"

Expand Down

0 comments on commit 64fe870

Please sign in to comment.