diff options
author | Franck Cuny <franck@fcuny.net> | 2024-07-22 17:46:36 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-07-22 17:46:36 -0700 |
commit | d4b6d2b2053e335e5457e34c128ec8a1a156671d (patch) | |
tree | 95dc405071eed3c61142754249b9de9326f4285d /src | |
parent | delete github actions (diff) | |
download | world-d4b6d2b2053e335e5457e34c128ec8a1a156671d.tar.gz |
add lint as a target and reformat
Diffstat (limited to '')
-rw-r--r-- | src/cli/gha_billing.py | 1 | ||||
-rwxr-xr-x | src/cli/nomad_allocs.py | 2 | ||||
-rw-r--r-- | src/term/link.py | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/cli/gha_billing.py b/src/cli/gha_billing.py index 00dd5e3..a501890 100644 --- a/src/cli/gha_billing.py +++ b/src/cli/gha_billing.py @@ -6,6 +6,7 @@ The API for this is documented [here](https://docs.github.com/en/rest/billing/bi For this you need a [token](https://github.com/settings/personal-access-tokens) with the following permissions: - [plan](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#user-permissions-for-plan) """ + import sys import click diff --git a/src/cli/nomad_allocs.py b/src/cli/nomad_allocs.py index 868fea9..cc7e648 100755 --- a/src/cli/nomad_allocs.py +++ b/src/cli/nomad_allocs.py @@ -19,7 +19,7 @@ def cli(job, dc, token): url = f"https://{dc}-nomad.simulprod.com/v1/job/{job}/allocations" try: resp = requests.get(url, headers=headers) - resp.raise_for_status + resp.raise_for_status() except Exception as e: print("return {}".format(str(e))) diff --git a/src/term/link.py b/src/term/link.py index cd75b16..d545d05 100644 --- a/src/term/link.py +++ b/src/term/link.py @@ -6,4 +6,4 @@ def link(text: str, url: str) -> str: For more information on the escape sequence, refer to: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#the-escape-sequence """ - return f""\x1b]8;;{url}\x07{text}\x1b]8;;\x07\u001b[0m"" + return f"\x1b]8;;{url}\x07{text}\x1b]8;;\x07\u001b[0m" |