mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-07-27 17:26:48 +00:00
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.
This commit is contained in:
parent
e39d0be162
commit
330b167281
3 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue