diff --git a/tools/documentation_crawler/documentation_crawler/settings.py b/tools/documentation_crawler/documentation_crawler/settings.py index c396a6d1ef..717a555715 100644 --- a/tools/documentation_crawler/documentation_crawler/settings.py +++ b/tools/documentation_crawler/documentation_crawler/settings.py @@ -18,7 +18,9 @@ LOG_LEVEL = 'ERROR' # Crawl responsibly by identifying yourself (and your website) on the user-agent -USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36' +USER_AGENT = ('Mozilla/5.0 (X11; Linux x86_64) ' + 'AppleWebKit/537.36 (KHTML, like Gecko) ' + 'Chrome/54.0.2840.59 Safari/537.36') # Obey robots.txt rules ROBOTSTXT_OBEY = False diff --git a/tools/droplets/create.py b/tools/droplets/create.py index 9cc1d040fa..10824ce5e7 100644 --- a/tools/droplets/create.py +++ b/tools/droplets/create.py @@ -194,7 +194,8 @@ Your remote Zulip dev server has been created! - There is no password; your account is configured to use your ssh keys. - Once you log in, you should see `(zulip-venv) ~$`. - To start the dev server, `cd zulip` and then run `./tools/run-dev.py`. -- While the dev server is running, you can see the Zulip server in your browser at http://{0}.zulipdev.org:9991. +- While the dev server is running, you can see the Zulip server in your browser at + http://{0}.zulipdev.org:9991. """.format(username)) print("See [Developing remotely](http://zulip.readthedocs.io/en/latest/dev-remote.html) " diff --git a/tools/lister.py b/tools/lister.py index 003cc94709..95d3a49453 100755 --- a/tools/lister.py +++ b/tools/lister.py @@ -114,9 +114,11 @@ if __name__ == "__main__": parser.add_argument('targets', nargs='*', default=[], help='''files and directories to include in the result. If this is not specified, the current directory is used''') - parser.add_argument('-m', '--modified', action='store_true', default=False, help='list only modified files') + parser.add_argument('-m', '--modified', action='store_true', default=False, + help='list only modified files') parser.add_argument('-f', '--ftypes', nargs='+', default=[], - help="list of file types to filter on. All files are included if this option is absent") + help="list of file types to filter on. " + "All files are included if this option is absent") parser.add_argument('--ext-only', dest='extonly', action='store_true', default=False, help='only use extension to determine file type') parser.add_argument('--exclude', nargs='+', default=[], diff --git a/tools/replace-tarball-shebang b/tools/replace-tarball-shebang index bb450dfb78..587be65fce 100755 --- a/tools/replace-tarball-shebang +++ b/tools/replace-tarball-shebang @@ -17,7 +17,8 @@ old_shebang_bytes = old_shebang.encode() new_shebang_bytes = new_shebang.encode() with tarfile.open(fileobj=stdin, mode='r|*') as in_tar, \ - tarfile.open(fileobj=stdout, mode='w', format=tarfile.PAX_FORMAT, pax_headers=in_tar.pax_headers) as out_tar: + tarfile.open(fileobj=stdout, mode='w', + format=tarfile.PAX_FORMAT, pax_headers=in_tar.pax_headers) as out_tar: for info in in_tar: if info.isfile(): file = in_tar.extractfile(info) diff --git a/tools/setup/emoji/build_emoji b/tools/setup/emoji/build_emoji index 49ebe0894b..6bf3b5b91b 100755 --- a/tools/setup/emoji/build_emoji +++ b/tools/setup/emoji/build_emoji @@ -236,7 +236,8 @@ def dump_emojis(cache_path): emoji_data = ujson.load(emoji_data_file) emoji_catalog = generate_emoji_catalog(emoji_data) - UNIFIED_REACTIONS_PATH = os.path.join(ZULIP_PATH, 'zerver', 'management', 'data', 'unified_reactions.json') + UNIFIED_REACTIONS_PATH = os.path.join(ZULIP_PATH, 'zerver', + 'management', 'data', 'unified_reactions.json') with open(UNIFIED_REACTIONS_PATH) as unified_reactions_file: unified_reactions_data = ujson.load(unified_reactions_file)