Skip to content

Commit adde3d4

Browse files
committed
PEP8 format spacing
1 parent 6ce8d2b commit adde3d4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/tools/publish_toolstate.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
## This script publishes the new "current" toolstate in the toolstate repo (not to be
5-
## confused with publishing the test results, which happens in
6-
## `src/ci/docker/x86_64-gnu-tools/checktools.sh`).
7-
## It is set as callback for `src/ci/docker/x86_64-gnu-tools/repo.sh` by the CI scripts
8-
## when a new commit lands on `master` (i.e., after it passed all checks on `auto`).
4+
# This script publishes the new "current" toolstate in the toolstate repo (not to be
5+
# confused with publishing the test results, which happens in
6+
# `src/ci/docker/x86_64-gnu-tools/checktools.sh`).
7+
# It is set as callback for `src/ci/docker/x86_64-gnu-tools/repo.sh` by the CI scripts
8+
# when a new commit lands on `master` (i.e., after it passed all checks on `auto`).
99

1010
from __future__ import print_function
1111

@@ -103,6 +103,7 @@ def validate_maintainers(repo, github_token):
103103
print("The build will fail due to this.")
104104
exit(1)
105105

106+
106107
def read_current_status(current_commit, path):
107108
'''Reads build status of `current_commit` from content of `history/*.tsv`
108109
'''
@@ -113,14 +114,17 @@ def read_current_status(current_commit, path):
113114
return json.loads(status)
114115
return {}
115116

117+
116118
def gh_url():
117119
return os.environ['TOOLSTATE_ISSUES_API_URL']
118120

121+
119122
def maybe_delink(message):
120123
if os.environ.get('TOOLSTATE_SKIP_MENTIONS') is not None:
121124
return message.replace("@", "")
122125
return message
123126

127+
124128
def issue(
125129
tool,
126130
status,
@@ -164,6 +168,7 @@ def issue(
164168
))
165169
response.read()
166170

171+
167172
def update_latest(
168173
current_commit,
169174
relevant_pr_number,
@@ -194,7 +199,7 @@ def update_latest(
194199
for status in latest:
195200
tool = status['tool']
196201
changed = False
197-
create_issue_for_status = None # set to the status that caused the issue
202+
create_issue_for_status = None # set to the status that caused the issue
198203

199204
for os, s in current_status.items():
200205
old = status[os]

0 commit comments

Comments
 (0)