Skip to content

Commit 791937b

Browse files
committed
black formatted 'build_board_info.py'
1 parent 10706e9 commit 791937b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tools/build_board_info.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def get_version_info():
139139
version = None
140140
sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8")
141141
try:
142-
version = git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip()
142+
version = (
143+
git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip()
144+
)
143145
except sh.ErrorReturnCode_128:
144146
# No exact match
145147
pass
@@ -206,7 +208,9 @@ def create_pr(changes, updated, git_info, user):
206208
)
207209

208210
create_branch = {"ref": "refs/heads/" + branch_name, "sha": commit_sha}
209-
response = github.post("/repos/{}/circuitpython-org/git/refs".format(user), json=create_branch)
211+
response = github.post(
212+
"/repos/{}/circuitpython-org/git/refs".format(user), json=create_branch
213+
)
210214
if not response.ok and response.json()["message"] != "Reference already exists":
211215
print("unable to create branch")
212216
print(response.text)
@@ -220,7 +224,8 @@ def create_pr(changes, updated, git_info, user):
220224
}
221225

222226
response = github.put(
223-
"/repos/{}/circuitpython-org/contents/_data/files.json".format(user), json=update_file
227+
"/repos/{}/circuitpython-org/contents/_data/files.json".format(user),
228+
json=update_file,
224229
)
225230
if not response.ok:
226231
print("unable to post new file")
@@ -269,7 +274,9 @@ def generate_download_info():
269274

270275
languages = get_languages()
271276

272-
support_matrix = shared_bindings_matrix.support_matrix_by_board(use_branded_name=False)
277+
support_matrix = shared_bindings_matrix.support_matrix_by_board(
278+
use_branded_name=False
279+
)
273280

274281
new_stable = "-" not in new_tag
275282

0 commit comments

Comments
 (0)