@@ -139,7 +139,9 @@ def get_version_info():
139
139
version = None
140
140
sha = git ("rev-parse" , "--short" , "HEAD" ).stdout .decode ("utf-8" )
141
141
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
+ )
143
145
except sh .ErrorReturnCode_128 :
144
146
# No exact match
145
147
pass
@@ -206,7 +208,9 @@ def create_pr(changes, updated, git_info, user):
206
208
)
207
209
208
210
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
+ )
210
214
if not response .ok and response .json ()["message" ] != "Reference already exists" :
211
215
print ("unable to create branch" )
212
216
print (response .text )
@@ -220,7 +224,8 @@ def create_pr(changes, updated, git_info, user):
220
224
}
221
225
222
226
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 ,
224
229
)
225
230
if not response .ok :
226
231
print ("unable to post new file" )
@@ -269,7 +274,9 @@ def generate_download_info():
269
274
270
275
languages = get_languages ()
271
276
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
+ )
273
280
274
281
new_stable = "-" not in new_tag
275
282
0 commit comments