hass.tibber_prices/scripts/lint-check
2025-11-03 20:52:10 +00:00

19 lines
350 B
Bash
Executable file

#!/bin/sh
# script/lint-check: Check linting without making changes.
set -e
cd "$(dirname "$0")/.."
if [ -z "$VIRTUAL_ENV" ]; then
. "$HOME/.venv/bin/activate"
fi
echo "==> Checking code format..."
uv run --active ruff format . --check
echo "==> Checking code with Ruff..."
uv run --active ruff check .
echo "==> Linting check completed!"