hass.tibber_prices/scripts/lint-all
Julian Pawlowski b2d63c2b6d chore(scripts): add explicit format/fix/check modes for all file types
Split lint workflow into three clearly separated modes:

- scripts/format: Python-only formatting (Ruff format)
- scripts/lint-fix: Python-only lint auto-fixes (Ruff check --fix)
- scripts/lint: convenience wrapper (delegates to format + lint-fix)

Add all-in-one scripts covering Python and non-Python files (Prettier for
JSON/JSONC/Markdown/YAML, shfmt for shell scripts):

- scripts/format-all: format all file types
- scripts/check-all: check-only for all file types (CI/CD parity)
- scripts/lint-all: format-all + lint-fix in one command

Release-Notes: skip
User-Impact: none
2026-04-12 12:11:38 +00:00

19 lines
363 B
Bash
Executable file

#!/bin/bash
# script/lint-all: Apply lint and formatting fixes across file types
#
# Runs Python lint/format workflow and then applies non-Python formatting.
#
# Usage:
# ./scripts/lint-all
#
# Examples:
# ./scripts/lint-all
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR/.."
"$SCRIPT_DIR/format-all"
"$SCRIPT_DIR/lint-fix"