From ff669b68cbf82b0666e6b629a9034f23e1499f52 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 24 Jun 2020 08:08:47 +0000 Subject: [PATCH] [IMP] test_lint: disable deprecated-method It's not super useful as we've re-enabled DeprecationWarnings though logging, and it turns out to be a *very* expensive lint, as it more than doubles the runtime of pylint locally: Before: odoo.addons.test_lint.tests.test_pylint ran 1 tests in 376.27s, 2 queries after: odoo.addons.test_lint.tests.test_pylint ran 1 tests in 114.05s, 2 queries It also seems to significantly increase peak memory consumption (by ~60% though that's not a precise measurement), which can lead to non-deterministic memory errors. Also disable mixed-indentation since it doesn't do anything (mixed indentation is illegal in Python 3). closes odoo/odoo#53562 X-original-commit: 8062098d0586048a9e91543290c6ab1c8d8d7009 Signed-off-by: Xavier Morel (xmo) --- odoo/addons/test_lint/tests/test_pylint.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/odoo/addons/test_lint/tests/test_pylint.py b/odoo/addons/test_lint/tests/test_pylint.py index 844927fabf5..f55319c6d64 100644 --- a/odoo/addons/test_lint/tests/test_pylint.py +++ b/odoo/addons/test_lint/tests/test_pylint.py @@ -29,8 +29,6 @@ class TestPyLint(TransactionCase): 'eval-used', 'unreachable', - 'mixed-indentation', - 'deprecated-method', # custom checkers 'sql-injection', ]