Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions fmt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ fmt-check: fmt-prettier-check fmt-shell-check fmt-python-check fmt-nix-check

fmt-prettier:
@echo "Formatting TypeScript/JSON/Markdown files..."
@$(PRETTIER) --write $(PRETTIER_PATTERNS)
@$(PRETTIER) --log-level error --write $(PRETTIER_PATTERNS)

fmt-prettier-check:
@echo "Checking TypeScript/JSON/Markdown formatting..."
@$(PRETTIER) --check $(PRETTIER_PATTERNS)
@$(PRETTIER) --log-level log --check $(PRETTIER_PATTERNS)

fmt-shell:
ifeq ($(SHFMT),)
@echo "Error: shfmt not found. Install with: brew install shfmt"
@exit 1
else
@echo "Formatting shell scripts..."
@shfmt -i 2 -ci -bn -w $(SHELL_SCRIPTS)
@shfmt -i 2 -ci -bn -w $(SHELL_SCRIPTS) >/dev/null
endif

fmt-shell-check:
Expand All @@ -59,11 +59,11 @@ endif

fmt-python: .check-uvx
@echo "Formatting Python files..."
@$(UVX) ruff format $(PYTHON_DIRS)
@$(UVX) ruff format --quiet $(PYTHON_DIRS)

fmt-python-check: .check-uvx
@echo "Checking Python formatting..."
@$(UVX) ruff format --check $(PYTHON_DIRS)
@$(UVX) ruff format --quiet --check $(PYTHON_DIRS)

fmt-nix:
ifeq ($(NIX),)
Expand Down