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

21 lines
368 B
Bash
Executable file

#!/bin/sh
# script/lint: Run linting tools and apply formatting
set -e
cd "$(dirname "$0")/.."
if [ -z "$VIRTUAL_ENV" ]; then
. "$HOME/.venv/bin/activate"
fi
echo "==> Running linting tools..."
echo "==> Running Ruff format..."
uv run --active ruff format .
echo "==> Running Ruff check..."
uv run --active ruff check . --fix
echo "==> Linting completed!"