hass.tibber_prices/scripts/lint-check
Julian Pawlowski 0a245a0e12 fix linter
2025-11-03 17:33:01 +00:00

19 lines
332 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 ruff format . --check
echo "==> Checking code with Ruff..."
uv run ruff check .
echo "==> Linting check completed!"