* 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
12 lines
336 B
Bash
Executable File
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}"
|