From c70961ec50e32aa14038ce9ad155c9c3678122bd Mon Sep 17 00:00:00 2001 From: Lilith Hafner Date: Mon, 16 Oct 2023 11:02:13 -0500 Subject: [PATCH] indentation --- .github/workflows/SpellCheck.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index 82bdafe615900..128797e4ebedb 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -36,10 +36,10 @@ jobs: git checkout FETCH_HEAD -- $OLD_FILES OLD_TYPOS=$(echo -n $OLD_FILES | xargs -0 "${{ runner.temp }}/typos/typos" --format json) python -c ' -import sys, json -existing = set(typo["typo"] for typo in json.loads("["+sys.argv[1].replace("\n", ",")+"]")) -for new in json.loads("["+sys.argv[2].replace("\n", ",")+"]"): - if new["typo"] not in existing: - print("::warning file={},line={},col={}::perhaps \"{}\" should be \"{}\".".format( - new["path"], new["line_num"], new["byte_offset"], - new["typo"], " or ".join(new["corrections"])))' "$OLD_TYPOS" "$NEW_TYPOS" + import sys, json + existing = set(typo["typo"] for typo in json.loads("["+sys.argv[1].replace("\n", ",")+"]")) + for new in json.loads("["+sys.argv[2].replace("\n", ",")+"]"): + if new["typo"] not in existing: + print("::warning file={},line={},col={}::perhaps \"{}\" should be \"{}\".".format( + new["path"], new["line_num"], new["byte_offset"], + new["typo"], " or ".join(new["corrections"])))' "$OLD_TYPOS" "$NEW_TYPOS"