1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: disable some pylint errors (Travis CI)

This commit is contained in:
Sébastien Helleu
2015-11-30 10:24:18 +01:00
parent a99b01bc5e
commit e1274010ff
+9 -7
View File
@@ -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: