chore(scripts): set UV_PRERELEASE environment variable for formatting scripts
Some checks failed
Lint / Ruff (push) Has been cancelled
Validate / Hassfest validation (push) Has been cancelled
Validate / HACS validation (push) Has been cancelled

Add UV_PRERELEASE=allow to the format, lint-check, and lint-fix scripts to enable pre-release features in Ruff.

Impact: Users can now utilize pre-release features during code formatting and linting processes.
This commit is contained in:
Julian Pawlowski 2026-06-01 16:57:21 +00:00
parent e39d0be162
commit 330b167281
3 changed files with 3 additions and 0 deletions

View file

@ -25,6 +25,7 @@ if [[ -z ${VIRTUAL_ENV:-} ]]; then
fi fi
log_header "Running Ruff format" log_header "Running Ruff format"
export UV_PRERELEASE=allow
uv run --active ruff format . uv run --active ruff format .
# Clean up any accidental package installation from uv run # Clean up any accidental package installation from uv run

View file

@ -25,6 +25,7 @@ if [[ -z ${VIRTUAL_ENV:-} ]]; then
fi fi
log_header "Checking code format" log_header "Checking code format"
export UV_PRERELEASE=allow
uv run --active ruff format . --check uv run --active ruff format . --check
log_header "Checking code with Ruff" log_header "Checking code with Ruff"

View file

@ -25,6 +25,7 @@ if [[ -z ${VIRTUAL_ENV:-} ]]; then
fi fi
log_header "Running Ruff check with auto-fix" log_header "Running Ruff check with auto-fix"
export UV_PRERELEASE=allow
uv run --active ruff check . --fix uv run --active ruff check . --fix
# Clean up any accidental package installation from uv run # Clean up any accidental package installation from uv run