From 65f857aa1d85e87d10f00a0e975c06b27425cf68 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 28 Mar 2026 14:37:21 -0400 Subject: [PATCH] ci: fix nix fmt flag and prettier formatting Problem: `nix fmt -- --check .` fails because treefmt uses `--ci` not `--check`. `bug_report.yaml` had a pre-existing prettier issue. Solution: use `--ci` flag for treefmt, format `bug_report.yaml`. --- .github/ISSUE_TEMPLATE/bug_report.yaml | 3 ++- scripts/ci.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 7ef11ff..31eca3c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -56,7 +56,8 @@ body: - type: textarea attributes: label: 'Forge CLI version' - description: 'Output of `gh --version`, `glab --version`, or `tea --version`' + description: + 'Output of `gh --version`, `glab --version`, or `tea --version`' render: text - type: textarea diff --git a/scripts/ci.sh b/scripts/ci.sh index 86cc65d..30a5215 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -4,6 +4,6 @@ set -eu nix develop .#ci --command stylua --check . git ls-files '*.lua' | xargs nix develop .#ci --command selene --display-style quiet nix develop .#ci --command prettier --check . -nix fmt -- --check . +nix fmt -- --ci nix develop .#ci --command lua-language-server --check lua --configpath "$(pwd)/.luarc.json" --checklevel=Warning nix develop .#ci --command vimdoc-language-server check doc/