tools: Text-wrap long lines exceeding 110.

This commit is contained in:
rht 2017-11-08 03:41:48 +01:00 committed by Tim Abbott
parent 7a96b8c7ad
commit f397e15128
5 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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) "

View File

@ -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=[],

View File

@ -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)

View File

@ -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)