Skip to content

Commit f583b7c

Browse files
committed
ruff fmt, shellcheck
1 parent 3a835ec commit f583b7c

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

tools/generate.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ def format_row(row):
7272
"_internal-strict-mode",
7373
]
7474

75-
discard_inputs = [
76-
"use-flakehub"
77-
78-
]
75+
discard_inputs = ["use-flakehub"]
7976

8077
result = {
8178
"name": "FlakeHub Cache",
@@ -109,10 +106,10 @@ def format_row(row):
109106
with open(state_file) as fp:
110107
state = json.load(fp)
111108
eprintln(f"State: {state}")
112-
checkout_action_tag = state['checkout_action_tag']
113-
upstream_action_revision = state['upstream_action_revision']
114-
binary_revision = state['binary_revision']
115-
self_version_minor = state['self_version']
109+
checkout_action_tag = state["checkout_action_tag"]
110+
upstream_action_revision = state["upstream_action_revision"]
111+
binary_revision = state["binary_revision"]
112+
self_version_minor = state["self_version"]
116113
self_version_major = self_version_minor.split(".")[0]
117114

118115
# these are printed in argument order
@@ -125,8 +122,6 @@ def format_row(row):
125122
eprintln(f"Target readme: {output_readme}")
126123

127124

128-
129-
130125
with open(source_file) as fp:
131126
source = json.load(fp)
132127

@@ -185,7 +180,9 @@ def format_row(row):
185180
result["inputs"]["source-revision"]["default"] = binary_revision
186181
except KeyError as e:
187182
pprint(e)
188-
faults.append(f"Input action has no source-revision input, or it is not in the keep_inputs list: {e}")
183+
faults.append(
184+
f"Input action has no source-revision input, or it is not in the keep_inputs list: {e}"
185+
)
189186

190187
# Generate a README from the inputs
191188
table = make_inputs_table(result["inputs"])

tools/update-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ magic_nix_cache_binary_rev() {
3131
echo "Checking to see if $sha for magic-nix-cache has binaries yet..."
3232
for arch in ARM64-macOS X64-macOS X64-Linux ARM64-Linux; do
3333
curl -LI --fail \
34-
https://install.determinate.systems/magic-nix-cache/rev/$sha/$arch
34+
"https://install.determinate.systems/magic-nix-cache/rev/$sha/$arch"
3535
done
3636
) >&2
3737

0 commit comments

Comments
 (0)