mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
21 lines
350 B
Bash
Executable file
21 lines
350 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 ruff format .
|
|
|
|
echo "==> Running Ruff check..."
|
|
uv run ruff check . --fix
|
|
|
|
echo "==> Linting completed!"
|