From fdf595ea1998bc25896abc615d82f581cd8e8161 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Thu, 24 Sep 2026 00:05:36 +0000 Subject: [PATCH] ci(workflows): use autofix formatter presets (PLAT-222) (#216) * ci(workflows): use autofix formatter presets (PLAT-222) Point autofix at the presets commit so ruff and Terraform fmt use the org presets, and write the template Prettier and ESLint fixes CI checks. * style: add an unused import for autofix Deliberate F401 in week_keys so the ruff preset can remove it. * ci(workflows): pin autofix to v1.0.15 (PLAT-222) The previous pin was the pre-squash commit, which became unreachable when that branch was deleted, so CI failed before autofix started. * style: apply formatter --------- Co-authored-by: sea-haven-auto-fix[bot] <5037331+sea-haven-auto-fix[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1074aab..0289e29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,15 +12,16 @@ permissions: jobs: autofix: if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork - uses: Sea-Haven-Industries/.github/.github/workflows/ci-autofix.yaml@fd4113241058d4709f80d5c29f7d5c43030ae6fa # v1.0.14 + uses: Sea-Haven-Industries/.github/.github/workflows/ci-autofix.yaml@61f15d78b53e7f3f13dc21316c24bb27db472fd2 # v1.0.15 permissions: contents: write secrets: inherit with: - format-command: ruff format . - lint-fix-command: ruff check --fix . - extra-command: terraform fmt -recursive terraform + presets: ruff,terraform terraform-version: "1.9.8" + node-version: "24.19.0" + format-command: npm run format:templates:write + lint-fix-command: npx eslint "src/server/templates/*.js" --fix lint: needs: autofix