From e1274010ff7725e2789b3755e9dc679cbab1f329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 30 Nov 2015 10:24:18 +0100 Subject: core: disable some pylint errors (Travis CI) --- doc/docgen.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/docgen.py b/doc/docgen.py index e9f31eee8..4e1f6c891 100644 --- a/doc/docgen.py +++ b/doc/docgen.py @@ -45,13 +45,7 @@ SCRIPT_COMMAND = 'docgen' IMPORT_OK = True -try: - import weechat # pylint: disable=import-error -except ImportError: - print('This script must be run under WeeChat.') - print('Get WeeChat now at: https://weechat.org/') - IMPORT_OK = False - +# pylint: disable=wrong-import-position try: import gettext import hashlib @@ -63,6 +57,13 @@ except ImportError as message: print('Missing package(s) for {0}: {1}'.format(SCRIPT_NAME, message)) IMPORT_OK = False +try: + import weechat # pylint: disable=import-error +except ImportError: + print('This script must be run under WeeChat.') + print('Get WeeChat now at: https://weechat.org/') + IMPORT_OK = False + # default path where doc files will be written (should be doc/ in sources # package tree) # path must have subdirectories with languages and autogen directory: @@ -420,6 +421,7 @@ def get_plugins_priority(): # pylint: disable=too-many-locals, too-many-branches, too-many-statements +# pylint: disable=too-many-nested-blocks def docgen_cmd_cb(data, buf, args): """Callback for /docgen command.""" if args: -- cgit v1.2.3