Skip to content

Commit

Permalink
Fix style with autolint
Browse files Browse the repository at this point in the history
  • Loading branch information
agjohnson committed Dec 5, 2017
1 parent d70e44e commit 3e2f522
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ def prepare(ctx, version):
'-o rtfd -r readthedocs.org '
'--file {changelog_path} '
'--template {template_path} '
'--header "Version {version}"'
).format(
version=version,
template_path=template_path,
changelog_path=changelog_path,
)
'--header "Version {version}"').format(
version=version,
template_path=template_path,
changelog_path=changelog_path,
)
try:
token = os.environ['GITHUB_TOKEN']
cmd += '--token ' + token + ' '
except KeyError:
print('')
print('\n'.join(
textwrap.wrap(
'In order to avoid rate limiting on the GitHub API, you can specify '
'an environment variable `GITHUB_TOKEN` with a personal access token. '
'There is no need for the token to have any permissions unless the '
'repoistory is private.')))
print(
'\n'.join(
textwrap.wrap(
'In order to avoid rate limiting on the GitHub API, you can specify '
'an environment variable `GITHUB_TOKEN` with a personal access token. '
'There is no need for the token to have any permissions unless the '
'repoistory is private.')))
print('')
print('Updating changelog')
ctx.run(cmd)
Expand Down

0 comments on commit 3e2f522

Please sign in to comment.