From 791937b149626a4459af5b980b17cfc68c7f40be Mon Sep 17 00:00:00 2001 From: sommersoft Date: Sun, 5 Sep 2021 18:42:05 -0500 Subject: [PATCH] black formatted 'build_board_info.py' --- tools/build_board_info.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tools/build_board_info.py b/tools/build_board_info.py index eed136c545..ba6a44600f 100644 --- a/tools/build_board_info.py +++ b/tools/build_board_info.py @@ -139,7 +139,9 @@ def get_version_info(): version = None sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8") try: - version = git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip() + version = ( + git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip() + ) except sh.ErrorReturnCode_128: # No exact match pass @@ -206,7 +208,9 @@ def create_pr(changes, updated, git_info, user): ) create_branch = {"ref": "refs/heads/" + branch_name, "sha": commit_sha} - response = github.post("/repos/{}/circuitpython-org/git/refs".format(user), json=create_branch) + response = github.post( + "/repos/{}/circuitpython-org/git/refs".format(user), json=create_branch + ) if not response.ok and response.json()["message"] != "Reference already exists": print("unable to create branch") print(response.text) @@ -220,7 +224,8 @@ def create_pr(changes, updated, git_info, user): } response = github.put( - "/repos/{}/circuitpython-org/contents/_data/files.json".format(user), json=update_file + "/repos/{}/circuitpython-org/contents/_data/files.json".format(user), + json=update_file, ) if not response.ok: print("unable to post new file") @@ -269,7 +274,9 @@ def generate_download_info(): languages = get_languages() - support_matrix = shared_bindings_matrix.support_matrix_by_board(use_branded_name=False) + support_matrix = shared_bindings_matrix.support_matrix_by_board( + use_branded_name=False + ) new_stable = "-" not in new_tag