From 003a9443a93a6609bfa0d93755626a3f810a3584 Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Mon, 3 Sep 2018 10:00:27 +0200 Subject: [PATCH] Global pylint cleanup --- module_auto_update/addon_hash.py | 1 - module_auto_update/migrations/10.0.2.0.0/pre-migrate.py | 1 - module_auto_update/models/module.py | 1 - module_auto_update/models/module_deprecated.py | 1 + module_auto_update/tests/sample_module/static/src/some.js | 2 +- module_auto_update/tests/test_addon_hash.py | 1 - module_auto_update/tests/test_module.py | 1 - module_auto_update/tests/test_module_deprecated.py | 3 +-- 8 files changed, 3 insertions(+), 8 deletions(-) diff --git a/module_auto_update/addon_hash.py b/module_auto_update/addon_hash.py index dea52b4f2..6bcbebf5a 100644 --- a/module_auto_update/addon_hash.py +++ b/module_auto_update/addon_hash.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2018 ACSONE SA/NV. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). diff --git a/module_auto_update/migrations/10.0.2.0.0/pre-migrate.py b/module_auto_update/migrations/10.0.2.0.0/pre-migrate.py index 92135d174..da98ab3ca 100644 --- a/module_auto_update/migrations/10.0.2.0.0/pre-migrate.py +++ b/module_auto_update/migrations/10.0.2.0.0/pre-migrate.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging diff --git a/module_auto_update/models/module.py b/module_auto_update/models/module.py index e561abe5a..aee072ac6 100644 --- a/module_auto_update/models/module.py +++ b/module_auto_update/models/module.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 LasLabs Inc. # Copyright 2018 ACSONE SA/NV. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). diff --git a/module_auto_update/models/module_deprecated.py b/module_auto_update/models/module_deprecated.py index 0cb9defaa..7383a8ac5 100644 --- a/module_auto_update/models/module_deprecated.py +++ b/module_auto_update/models/module_deprecated.py @@ -1,5 +1,6 @@ # Copyright 2017 LasLabs Inc. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# pylint: disable=consider-merging-classes-inherited from odoo import api, fields, models diff --git a/module_auto_update/tests/sample_module/static/src/some.js b/module_auto_update/tests/sample_module/static/src/some.js index 64797d825..896fe66fe 100644 --- a/module_auto_update/tests/sample_module/static/src/some.js +++ b/module_auto_update/tests/sample_module/static/src/some.js @@ -1 +1 @@ -/* javascript */ +/* Javascript */ diff --git a/module_auto_update/tests/test_addon_hash.py b/module_auto_update/tests/test_addon_hash.py index 290375762..884645168 100644 --- a/module_auto_update/tests/test_addon_hash.py +++ b/module_auto_update/tests/test_addon_hash.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2018 ACSONE SA/NV. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). diff --git a/module_auto_update/tests/test_module.py b/module_auto_update/tests/test_module.py index 493f75dfe..e424f7701 100644 --- a/module_auto_update/tests/test_module.py +++ b/module_auto_update/tests/test_module.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 LasLabs Inc. # Copyright 2018 ACSONE SA/NV. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). diff --git a/module_auto_update/tests/test_module_deprecated.py b/module_auto_update/tests/test_module_deprecated.py index a83881d11..ca0434fc8 100644 --- a/module_auto_update/tests/test_module_deprecated.py +++ b/module_auto_update/tests/test_module_deprecated.py @@ -9,8 +9,7 @@ from odoo.modules import get_module_path from odoo.tests.common import TransactionCase from odoo.tools import mute_logger -from odoo.addons.module_auto_update.addon_hash import addon_hash - +from .. addon_hash import addon_hash from ..models.module_deprecated import PARAM_DEPRECATED