summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-11-30 10:24:18 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-11-30 10:24:18 +0100
commite1274010ff7725e2789b3755e9dc679cbab1f329 (patch)
treee5a2a66b913d50fcdb2ae55059d9cecde6f662ac /doc
parenta99b01bc5e55ec0477cf3dfa64a7e09e1be69060 (diff)
downloadweechat-e1274010ff7725e2789b3755e9dc679cbab1f329.zip
core: disable some pylint errors (Travis CI)
Diffstat (limited to 'doc')
-rw-r--r--doc/docgen.py16
1 files 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: