Files
x0x0b-ComfyUI-PromptHistory…/scripts/format.sh
T
x0x0b 8650c3da82 feat: add code formatter (#22)
* feat: add CI configuration for code formatting and linting

* style: apply consistent formatting

* fix

* fix

* style: update formatting instructions for Python and web assets

* feat: add script for automated code formatting with Ruff and Prettier

* fix: update Ruff dependency version in pyproject.toml
2025-12-17 08:22:01 +09:00

12 lines
336 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Run from repo root so paths resolve no matter where the script is called.
cd "$(dirname "$0")/.."
RUFF_SPEC="ruff==0.14.9"
pipx run --spec "$RUFF_SPEC" ruff format .
pipx run --spec "$RUFF_SPEC" ruff check --select I --fix .
npx prettier@3.7.4 -w "web/**/*.{js,jsx,ts,tsx,css,scss,html,json}"