Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Aug 16, 2023
1 parent 0609938 commit f2bc536
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
import requests

response = requests.get("https://api.github.com/repos/nasa/fprime/releases/latest")
latest_tag_name = response.json()['tag_name']
latest_tag_name = response.json()["tag_name"]

PRINT_VENV_WARNING = False

# Add F' as a submodule
subprocess.run(["git", "init"])
print(
f"[INFO] Checking out F' submodule at latest release: {latest_tag_name}"
)
print(f"[INFO] Checking out F' submodule at latest release: {latest_tag_name}")
subprocess.run(
[
"git",
Expand All @@ -46,9 +44,7 @@
)

if res.returncode != 0:
print(
f"[ERROR] Unable to checkout tag: {latest_tag_name}. Exit..."
)
print(f"[ERROR] Unable to checkout tag: {latest_tag_name}. Exit...")
sys.exit(1) # sys.exit(1) indicates failure to cookiecutter

# Install venv if requested
Expand Down

0 comments on commit f2bc536

Please sign in to comment.