mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 13:23:41 +00:00
19 lines
332 B
Bash
Executable file
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!"
|