From 2a10d9ffc23b4fb220f6f3c0bad3833768e2a9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 30 Jun 2020 08:41:25 +0200 Subject: [PATCH] Lint: Improve pylint configuration The continuation check is not compatible with what black formats, see https://github.com/PyCQA/pylint/issues/289 --- .pylintrc | 2 +- weblate/trans/widgets.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index 4fc492813a20..021cb2d294d4 100644 --- a/.pylintrc +++ b/.pylintrc @@ -54,7 +54,7 @@ confidence= # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use"--disable=all --enable=classes # --disable=W" -disable=missing-docstring,unused-argument,no-self-use,no-member,broad-except,locally-disabled,star-args,cyclic-import +disable=missing-docstring,unused-argument,no-self-use,no-member,broad-except,locally-disabled,star-args,cyclic-import,bad-continuation # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/weblate/trans/widgets.py b/weblate/trans/widgets.py index fe8cc87d6bf1..9812c40a5bb0 100644 --- a/weblate/trans/widgets.py +++ b/weblate/trans/widgets.py @@ -39,6 +39,7 @@ gi.require_version("PangoCairo", "1.0") gi.require_version("Pango", "1.0") +# pylint:disable=wrong-import-position,wrong-import-order from gi.repository import Pango, PangoCairo # noqa:E402,I001 isort:skip COLOR_DATA = {