From 330b1672811f249b4fc40a8e01052fc8bba083d1 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Mon, 1 Jun 2026 16:57:21 +0000 Subject: [PATCH] chore(scripts): set UV_PRERELEASE environment variable for formatting scripts 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. --- scripts/format | 1 + scripts/lint-check | 1 + scripts/lint-fix | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/format b/scripts/format index 4cc7812..82d45e6 100755 --- a/scripts/format +++ b/scripts/format @@ -25,6 +25,7 @@ if [[ -z ${VIRTUAL_ENV:-} ]]; then fi log_header "Running Ruff format" +export UV_PRERELEASE=allow uv run --active ruff format . # Clean up any accidental package installation from uv run diff --git a/scripts/lint-check b/scripts/lint-check index 4a88b1f..79dc4e7 100755 --- a/scripts/lint-check +++ b/scripts/lint-check @@ -25,6 +25,7 @@ if [[ -z ${VIRTUAL_ENV:-} ]]; then fi log_header "Checking code format" +export UV_PRERELEASE=allow uv run --active ruff format . --check log_header "Checking code with Ruff" diff --git a/scripts/lint-fix b/scripts/lint-fix index 830ced8..5c97ba7 100755 --- a/scripts/lint-fix +++ b/scripts/lint-fix @@ -25,6 +25,7 @@ if [[ -z ${VIRTUAL_ENV:-} ]]; then fi log_header "Running Ruff check with auto-fix" +export UV_PRERELEASE=allow uv run --active ruff check . --fix # Clean up any accidental package installation from uv run